Repomix

Pack a whole repository into one token-optimized file for AI context.

Visit site GitHub
Open source Self-hostable MCP support free
Code intelligence
LicenseMIT
PriceFree
UsageNo model cost
Model supportmulti
Languagestypescript
GitHub stars26.8k
Last activity2026-07-04
Verified2026-06-27
Verified byseed

A tool that compiles a repository into a single token-optimized file (with structure and file selection) for feeding an LLM, plus an MCP server so agents can pull packed context on demand.

Strengths

  • Turns a repo into clean LLM-ready context in one command
  • Token-optimized output with flexible file selection

Tradeoffs

  • Snapshot, not a live index; must re-pack on change
  • Whole-repo packing can overflow context on very large repos