Repomix
Open-source tool that packs an entire code repository into a single file you can hand to a language model as context.
What it does
Repomix packs a code repository into one file for a language model. Output formats are XML, Markdown, JSON and plain text. The command line respects .gitignore, filters by pattern and counts tokens per file and in total. An experimental Tree-sitter compression keeps only the structure. Secretlint looks for credentials and leaves affected files out. There is also a web interface, extensions for Chrome and Firefox, an MCP server, a GitHub Action and a Node.js library; public repositories also work by URL.
Who it suits
Development teams that use chat assistants for code reviews, refactoring or documentation and want to pass on full project context without copying individual files.
Data protection for businesses
Per the privacy policy, the command line and the browser extension work locally without sending code or telemetry. ZIP files and folders uploaded to repomix.com sit briefly on the project’s servers and are deleted after processing; no server location or EU option is stated. The website uses Google Analytics and Cloudflare Turnstile. There is no data processing agreement and no business plan. Repomix runs no language model itself – whether your code is used for training depends on the AI service.
Limits
Large repositories quickly exceed a model’s context window. Secretlint only detects known patterns and does not replace your own check. The project is run by one individual; there is no contractual support.