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
AI tools like ChatGPT and Claude work best when they get the whole project at once, but a typical codebase is a tangle of many files, folders, and configs. Repomix condenses an entire repository into one clean, structured document that AI can read and understand quickly. It also counts tokens and respects your ignore rules, so you don't accidentally send sensitive or huge files.
How it works
You run a single command, like repomix, inside any project directory. Repomix scans the codebase, applies include/exclude rules (like .gitignore and .repomixignore), and outputs one file (default is XML, but you can also get Markdown or JSON). It has a --compress option that uses Tree-sitter to keep only key code elements, reducing token count. It can also pack remote repositories, include git logs, and accept a list of files from stdin. Output starts with an AI-oriented explanation so the tool knows how to read the file.
Who it's for
Developers who want to feed their entire codebase to AI assistants for code review, refactoring, documentation, test generation, or just to get an overview of a library. It's useful whether you're working on a small script or a large multi-directory project, and works with both local and remote repos.
Highlights
- AI-optimized formatting: the output is structured for easy parsing by LLMs
- Token counting for each file and the whole repo
- Git-aware: respects
.gitignore,.ignore, and.repomixignore - Security focus: uses Secretlint to spot and exclude credential-like files
- Code compression with Tree-sitter to shrink token count while preserving structure
- Multiple output formats: XML, Markdown, JSON
- Pack remote repositories or use stdin to pipe in file lists
- Web version at repomix.com and a Chrome/Firefox extension for one-click GitHub packing
Related
- Project
- Project
- Project
- Project