yamadashy/repomix
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.
What it solves
Feeding an entire codebase into a Large Language Model (LLM) is difficult due to file structures and context limits. Repomix solves this by packing your entire repository into a single, structured file that is easy for AI models like Claude, ChatGPT, or Gemini to understand and process.
How it works
Repomix scans your repository and bundles all files into one file (in XML, Markdown, or JSON format). It respects your .gitignore, .ignore, and .repomixignore files to ensure only relevant code is included. It also features token counting to help you stay within LLM context limits and uses Tree-sitter for code compression to reduce token usage while preserving structure.
Who it’s for
Developers who want to use AI assistants for tasks like code reviews, refactoring, documentation generation, or unit test creation by providing the AI with full repository context.
Highlights
- AI-Optimized: Formats code in ways that enhance AI comprehension.
- Security-Focused: Uses Secretlint to detect and prevent sensitive information from being included.
- Git-Aware: Automatically respects your existing ignore files.
- Multiple Formats: Supports XML, Markdown, and JSON outputs.
- Compression: Can extract key code elements to reduce token counts.