{"id":30279672,"url":"https://github.com/jaennil/codex","last_synced_at":"2025-09-18T23:39:37.585Z","repository":{"id":294650371,"uuid":"987607561","full_name":"jaennil/codex","owner":"jaennil","description":"Code Extractor","archived":false,"fork":false,"pushed_at":"2025-06-29T18:26:36.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T14:36:26.729Z","etag":null,"topics":["code","extractor","llm"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaennil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-05-21T10:19:16.000Z","updated_at":"2025-06-29T18:26:39.000Z","dependencies_parsed_at":"2025-06-29T19:24:11.737Z","dependency_job_id":"ac02d6ac-68ca-4b90-bf46-bfc5049d73a7","html_url":"https://github.com/jaennil/codex","commit_stats":null,"previous_names":["jaennil/codex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaennil/codex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaennil%2Fcodex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaennil%2Fcodex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaennil%2Fcodex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaennil%2Fcodex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaennil","download_url":"https://codeload.github.com/jaennil/codex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaennil%2Fcodex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275852425,"owners_count":25540137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["code","extractor","llm"],"created_at":"2025-08-16T14:19:34.728Z","updated_at":"2025-09-18T23:39:37.545Z","avatar_url":"https://github.com/jaennil.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex\n\nThis Rust program, `codex`, recursively traverses a specified directory and concatenates the contents of files with code extensions into a single output file named `code`. It's useful for collecting code to paste into large language models (LLMs) for analysis or debugging.\n\n## Installation\n\n1. Ensure you have [Rust](https://rustup.rs/) installed.\n2. Clone the repository or copy the source code.\n3. Run the following command to build and install the program:\n   ```bash\n   make build-install\n   ```\n   This compiles the program and copies binary to `/usr/local/bin` making it available for use.\n\n## Usage\n\n1. **Run the program**:\n   ```bash\n   codex \u003cdirectory_path\u003e\n   ```\n   Replace `\u003cdirectory_path\u003e` with the path to the directory you want to scan.\n\n2. **Output**:\n   - Creates a `code` file in the current directory.\n   - For each file with a matching extension, it writes:\n     - The full path of the file.\n     - The file's contents.\n     - A blank line separator.\n\n3. **Example**:\n   ```bash\n   codex ./src\n   ```\n   Scans the `./src` directory and writes contents of matching files to `code`.\n\n## Requirements\n\n- **Rust**: Install via [rustup](https://rustup.rs/).\n- A valid directory path as a command-line argument.\n\n## TODO\n\n- Add support for processing GitHub URLs to fetch and include code from repositories.\n- Implement a feature to copy the contents of the `code` file to the clipboard for easy pasting into LLMs.\n- Update the search to ignore `.gitignore` files.\n- Add support for including `Makefile` and other usefull files without extension in the output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaennil%2Fcodex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaennil%2Fcodex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaennil%2Fcodex/lists"}