
Repomix
An open-source tool that packages the entire codebase into an AI-friendly format, supports local and remote repositories, can output XML, Markdown, JSON or plain text, and has built-in token counting, compression and security filtering.
Updated: 2026-10-26
What is Repomix?
Repomix solves a very specific problem: fitting an entire codebase into an AI's context window. It packages local or remote repositories into a single file, with optional output formats including XML, Markdown, JSON, and plain text. Specifically designed for models like Claude, ChatGPT, and Gemini, it also integrates seamlessly with MCP and code review workflows and has been nominated for the Open Source Awards.
Who is it for?
- Developers who need to provide project context to AI for code review and refactoring suggestions; teams that want to generate Knowledge Datapacks for LLMs; and people who use LLM-powered code generation workflows and require stable context input.
Key features
6Multi-format Output
XML, Markdown, JSON, and plain text are optional to adapt to the input preferences of different models; parsable formats can also be output for program consumption.
AI Optimization
By default includes file summaries and directory structures, with an optional line number display feature. This allows models to first build a global understanding before delving into details, thereby improving the quality of comprehension.
Git Awareness
Respects .gitignore by default, only packaging the truly necessary source code; include/ignore rules use glob patterns to precisely control which files are included in the package, avoiding clutter. However, custom include rules may bypass .gitignore, so pay attention to boundaries during configuration.
Token Counting & Compression
Estimates the size before packaging to avoid exceeding the model's context limit; provides compression options (remove comments, delete blank lines) to slim down large repositories, but compression reduces code readability and should be used with caution in code review scenarios.
Security Filtering
Designed for sharing and submission scenarios, it helps identify sensitive information (Security-Focused) and reduces the risk of exposing keys in conversations.
CLI and Web Version
The command-line interface can be integrated into daily workflows and scripts (the official website provides a Quick Start and a Power Users Guide), and there is also an online version where you can directly paste the repository address to use it. You can even adjust the format and filtering options directly on the webpage before copying the results.
How to use Repomix
- When conducting code reviews, packaging in batches by module is more stable than dumping the entire repository at once.
- first define the include/ignore rules to ensure consistent boundaries for each packaging.
- When a repository needs to be reused for a long time, codify the packaging commands into scripts to guarantee uniform output format across the team.
- The official team has also summarized two practical use cases: the LLM code generation workflow and Knowledge Datapacks.
- By matching your own scenarios, you can quickly find the appropriate configuration.
- Sending a packaged project context to new team members can also significantly speed up their onboarding and understanding.
Things to know
Traffic & popularity
Data month Sep 2026
Repomix receives about 21.9K visits per month and ranks #1,439,367 worldwide.
Monthly visits
12 monthsTraffic sources
- Direct43.5%
- Search43.4%
- Referrals10.2%
- Social1.6%
- AI assistants1.4%
Top countries
- Vietnam19.3%
- India10.3%
- United States8.7%
- Germany7.2%
- Colombia5.7%
Estimated from third-party traffic data.
Similar tools
GitingestTurn any Git repository into a plain text summary suitable for feeding to large models. Generate it by replacing URL keywords. It supports filtering rules, volume limits, and private repositories. It is open source and self-deployable.
CodeGeeXThe intelligent programming assistant launched by Zhipu AI provides code generation and completion, comment generation, code translation and intelligent Q&A. It is compatible with mainstream IDEs such as VS Code and the JetBrains series. The model weights are open-source, and it is available for personal and enterprise private deployment scenarios.
aiderAn AI pair programming tool that runs in the terminal, automatically maps codebases, supports over 100 languages and multi-model access, directly commits every change to Git, and is fully traceable throughout the process.
MinerUIntelligent document analysis platform for Agents and RAG, supporting PDF, Word, PPT, Excel and image analysis, and capable of outputting structured results such as Markdown, JSON, and LaTeX.
ContinueOpen-source AI code assistant project, focusing on integrating any model for custom completion and conversation; the team has been acquired by Cursor, and the open-source code repository is still freely available for self-deployment and modification.
Gemini CLIGoogle's open-source command-line AI agent brings model capabilities directly to the terminal. It features built-in search grounding, file and command operations, supports collaboration via standard extension protocols and code hosting platforms, and offers 1,000 free daily requests upon personal account login.