Repomix
FreePack your codebase into AI-friendly formats. [#opensource](https://github.com/yamadashy/repomix)
About Repomix
Repomix is a powerful, open-source command-line tool that packages an entire codebase into a single AI-friendly file (XML, Markdown, or Plain). It is designed to provide complete repository context to AI assistants like ChatGPT, Claude, Gemini, and Grok without requiring subscription-specific integrations. Key capabilities include AI-optimized formatting, automatic .gitignore awareness, built-in security checks via Secretlint, token counting per file and for the whole repository, and options to compress code using Tree-sitter, remove comments, and remove empty lines. Repomix can be used instantly via npx, or installed globally via npm, yarn, bun, or Homebrew. It enables use cases such as code review, refactoring, bug investigation, third-party library security analysis, and documentation generation.
Key Features
Pros & Cons
- Open source and completely free
- Works with any LLM service (ChatGPT, Claude, Gemini, Grok, etc.) without extra cost
- Respects .gitignore, reducing noise and token usage
- Built-in security scanning prevents accidental inclusion of secrets
- Provides token counts, helpful for staying within LLM context limits
- Supports multiple output formats and extensive customization options
- Can be used without installation via npx
- Command-line only, no graphical interface
- Output file can become very large for big repositories
- Requires some familiarity with terminal and glob patterns for advanced usage