Why you'd want it
Repomix reads a local or remote repository, respects .gitignore and .repomixignore, uses Secretlint to leave out files that match known credential formats, and writes one file with a summary, directory structure and file contents, plus token counts per file. The --compress option uses Tree-sitter to keep key code elements with fewer tokens, and large outputs can be split into parts. It also runs as an MCP server (repomix --mcp) and can generate Claude Agent Skills from a codebase.
Best for
- Feeding a whole codebase to a chat model
- Checking token counts before sending context
- Packing a remote GitHub repo for reference
Use it when
You want to hand an LLM a full or filtered snapshot of a repository in one file, or let an agent pack repos through MCP.
Skip it if
Your coding agent already reads files in your workspace and you have no need for a single packed file. By default the MCP server can read any path the host user can, so use --sandbox with untrusted clients.