Favicon of Repomix

Repomix

A codebase packaging tool that runs locally, exports files for AI assistants, and supports token counting, code compression and MCP.

Screenshot of Repomix website

Repomix packages repositories into a single file for developers who need to give an AI assistant project context for code review or analysis. It works with local directories and remote repositories.

  • Repository exports: Create XML, Markdown, JSON or plain text output for assistants such as Claude, ChatGPT and Gemini.
  • Context size control: Check token counts for individual files and the whole repository, or use optional Tree-sitter compression to retain code signatures and structure while removing implementation details.
  • File selection: Choose what to include or exclude, with automatic support for .gitignore, .ignore and .repomixignore rules.
  • Credential checks: Secretlint detects files matching known credential formats and excludes them from the output; users can disable this check.
  • Assistant integration: The MCP server lets compatible assistants package repositories and read or search packed output, including through Claude Code plugins.

The command line runs on your machine, while the website provides a browser-based packing option. The MCP server also runs in Docker. Repomix is open source under the MIT license.

By default, the MCP server can read paths available to its host user. Optional sandbox mode restricts its file tools to read-only access within one workspace and disables remote packing and external output attachment. This restriction applies at the application level, rather than through an operating system sandbox.

Similar to Repomix