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
CLIEditors’ pick

Extended access

Why this level

  • Reads all project files and combines them into one document
  • Can fetch remote repositories
All reasons and checks

yamadashy/repomix

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add cli/repomix

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended 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 architecture

Limitations

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.

CLI tools
Official

A local codebase index with ten MCP tools: dependency graph, git history, code health and architectural decisions without re-grepping on every step

MCP serverExtended access8KRepository stars

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

PluginExtended access1.4KRepository stars

An MCP server that indexes code with tree-sitter and returns individual functions and classes to the agent instead of whole files

MCP serverExtended access2.8KRepository stars

An MCP server that builds a code graph once and serves the answer to the agent instead of re-reading files

MCP serverExtended access198Repository stars

A dependency-free CLI and MCP server that builds a call graph of a repository so the agent understands code without reading whole files

CLIExtended access2.5KRepository stars
Official

An open macOS app for code context engineering: an MCP server and agent orchestrator that helps agents understand a project before editing

MCP serverExtended access972Repository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialAuthenticationRepository starsMain difference
Repomix (this entry)nonot required29,063
yekno2,475yek packs the text files of a repository into one document for a
codesightnonot required1,421codesight maps a project in one run
CTXnonot required341an MCP server in one binary

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.

README badge

Report a problem

Foxx AIRepomix
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.