Favicon of Repomix

Repomix

An MIT licensed tool that packages local or remote repositories for Claude, ChatGPT, Gemini, and MCP assistants through a command line or website.

Screenshot of Repomix website

Repomix turns a code repository into a single file that an AI assistant can read. It’s for developers who need to give Claude, ChatGPT, Gemini, or another model enough project context for code review or analysis. You can use its command line on your own machine, pack a repository through its website, or run it as an MCP server, including through Docker. It is open source under the MIT license.

The output can be XML, Markdown, JSON, or plain text. You can choose which files to include, and Repomix respects .gitignore, .ignore, and .repomixignore when leaving files out. It reports token counts for individual files and the repository, which helps when the result needs to fit a model’s context window. For larger projects, Tree-sitter compression keeps code signatures and structure while removing implementation details to reduce the amount of text sent to the model.

Repomix also scans for files matching known credential formats and excludes them from its output. As an MCP server, it lets assistants pack local or remote repositories and search the resulting file. Its optional sandbox mode confines the server’s file tools to one workspace directory and limits them to read-only access. A browser extension provides access to Repomix from GitHub repositories.

Similar to Repomix