{"id":38656420,"url":"https://github.com/wr1/cfold","last_synced_at":"2026-01-17T09:28:21.848Z","repository":{"id":285407668,"uuid":"957972986","full_name":"wr1/cfold","owner":"wr1","description":"CLI tool for folding files into prompt/json","archived":false,"fork":false,"pushed_at":"2025-12-01T11:41:34.000Z","size":2171,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T23:41:23.717Z","etag":null,"topics":["grok-api","vibecoding"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wr1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-31T12:42:27.000Z","updated_at":"2025-10-16T08:51:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d092b39-157f-45ec-8021-cb2000ce14d8","html_url":"https://github.com/wr1/cfold","commit_stats":null,"previous_names":["wr1/cfold"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/wr1/cfold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr1%2Fcfold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr1%2Fcfold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr1%2Fcfold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr1%2Fcfold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wr1","download_url":"https://codeload.github.com/wr1/cfold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr1%2Fcfold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grok-api","vibecoding"],"created_at":"2026-01-17T09:28:21.772Z","updated_at":"2026-01-17T09:28:21.834Z","avatar_url":"https://github.com/wr1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Coverage](https://codecov.io/gh/wr1/cfold/branch/master/graph/badge.svg)![Tests](https://github.com/wr1/cfold/actions/workflows/tests.yml/badge.svg)![Version](https://img.shields.io/github/v/release/wr1/cfold)\n# cfold\n\n\u003c!-- `cfold` is a command-line tool that helps you prepare codebases for interaction with Large Language Models (LLMs). It can `fold` a directory of code into a single JSON file and `unfold` a modified version back into a directory structure. --\u003e\n\n- Fold files and instructions into json\n- Unfold LLM return jsons in same format\n- Intended to let LLM's produce codebase changes in a controlled manner\n\n\n## Installation\n\n```bash\nuv pip install https://github.com/wr1/cfold.git\n```\n\n## Usage\n\n\u003c!-- ![Help](docs/assets/help1.svg) --\u003e\n\n\n### CLI help\n![Help](docs/assets/help.svg)\n\n### Example output\n![Output](docs/assets/output.svg)\n\n\n\n## Fold File Format\n\n- JSON structure with keys: `instructions` (list of objects), `files`.\n- Each instruction object: `{type: 'system'|'user'|'assistant', content: string, name: string (optional)}`.\n- `files`: Array of objects with `path` (relative to CWD), `content` (full file content, optional if deleting), and `delete` (bool, default false).\n- Modify files by updating `content` (with `delete: false`).\n- Delete files with `delete: true` (content optional).\n- Add new files by adding new objects with `path` and `content`.\n- Move/rename: Delete old (`delete: true`) and add new with updated path and content.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwr1%2Fcfold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwr1%2Fcfold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwr1%2Fcfold/lists"}