Repomix CLI
Packs a repository into one LLM-ready file with token counts, code compression and secret filtering, also runs as an MCP server
- 29,063 ★ on the repository
- Last commit
- MIT
Extended access
Why this level
- Reads all project files and combines them into one document
- Can fetch remote repositories
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add cli/repomixDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewExtended accessThe tool runs code or makes network calls and only reads external data.
- Reads all project files and combines them into one document
- Can fetch remote repositories
This is third-party code. Review the repository files before installing.
What it does
Repomix walks a project and combines the relevant files into one document you can hand to a model whole. It honors .gitignore and its own ignore rules, counts tokens per file and overall, and uses Secretlint to leave out files that look like credentials. The --compress option uses Tree-sitter to keep signatures and structure without implementations, cutting size. In MCP mode the agent packs a local folder or a remote repository itself and searches the output.
Who it is for. For developers who paste code into a model chat or want an agent to get a quick overview of another repository.
Good fit when
- You need to give a whole project to a long-context model
- You need to understand someone else's repository quickly
- You want to know how many tokens a codebase takes
Not a fit when
- The agent already works inside the project and reads files itself
- The project is too large even for compressed output
Example request
Pack the yamadashy/repomix repository and explain its architectureLimitations
Secret detection looks for known formats and does not guarantee sensitive data stays out of the output. Compression removes function bodies, so it does not suit tasks where logic matters. Requires Node.js or Docker.
How to disable. Run claude mcp remove repomix or uninstall the repomix plugins via /plugin. Remove the global package with npm uninstall -g repomix.
FAQ
What format is the output?
By default repomix-output.xml in the current folder; the output format is configurable.
Can I pack a repository without cloning it?
Yes, the CLI has a --remote flag that takes a repository URL, and the MCP server has a tool for that.
Discussion
No questions or reviews yet.
Related
CLI toolsA local codebase index with ten MCP tools: dependency graph, git history, code health and architectural decisions without re-grepping on every step
Gives the agent an understanding of your repository: it indexes the code and answers questions about it in Claude Code, Cursor, Codex, Windsurf and more
An MCP server that indexes code with tree-sitter and returns individual functions and classes to the agent instead of whole files
An MCP server that builds a code graph once and serves the answer to the agent instead of re-reading files
A dependency-free CLI and MCP server that builds a call graph of a repository so the agent understands code without reading whole files
An open macOS app for code context engineering: an MCP server and agent orchestrator that helps agents understand a project before editing
Comparison with similar tools
Entries that share the main search query, and how they differ.
README in short
The README starts with running via npx and global install through npm, yarn, bun or Homebrew. It then covers include and ignore rules, Tree-sitter compression, secret checks, Docker and the config file. A large section documents the MCP server and its tools, Claude Code plugins and a standalone skill for other agents. There is a web version at repomix.com. MIT licensed.