Supercharge your LLM interactions with full repository context.
Repo Concatenator creates a single file containing your entire codebase, making it easy to feed your project's context into Large Language Models (LLMs) like GPT-4.
- Respects
.gitignore
rules - Handles binary files and empties
- Smart truncation for large files (e.g., JSON)
- Works with Python and JavaScript
- Customizable to fit your workflow
wget https://raw.githubusercontent.com/gundurraga/repo-concatenate/main/repo_concatenate.py
python repo_concatenate.py
wget https://raw.githubusercontent.com/gundurraga/repo-concatenate/main/repo_concatenate.js
npm install fs path url
node repo_concatenate.js
Your consolidated codebase will be saved as {repo_name}.txt
in the current directory.
- AI-friendly instructions
- Repo stats
- Folder structure
- File index
- Full file contents (with handy navigation headers)
- LLM-optimized: Perfect for providing full context to AI coding assistants
- Time-saver: No more copy-pasting multiple files
- Flexible: Customizable for various project types and sizes
- Lightweight: No complex dependencies or setups
Got ideas? Found a bug? Contributions are welcome! Open an issue or send a pull request on our GitHub repository.
MIT License. Go wild, just give credit where it's due. See the LICENSE file for details.