28,481 stars · MIT · npm repomix 1.18.1; requires Node.js >= 22 · Track this in Scout
Packs a whole repository into a single file shaped for a language model, with several output formats and a hosted web version.
▶Repo detailsthe review · specs · pros & cons · install
What it is
Repomix walks a repository, filters it, and writes a single output file in plain text, Markdown or XML, beginning with a directory tree. It counts tokens (a token is the unit models charge and measure by, roughly three quarters of a word) per file and in total.
What it is good for. Anyone asking a model to review, explain or refactor a codebase they did not write — an inherited project, an unfamiliar open-source library, a contractor's handover. It also suits asking a question that spans many files, where a model given three files at a time will simply invent the connections.
- It respects
.gitignoreby default and has its own ignore rules, so the dependency folder and build output do not end up in the paste. - Token counts per file and in total, printed before you send anything. That turns "will this fit" from a guess into a number.
- It runs through
npxwith nothing installed, and it can pack a remote repository straight from its URL without cloning it.
- Node.js 22 or newer is required, which is stricter than many machines have by default.
- A large codebase produces a file no model will accept. The real work is writing the include and exclude patterns, and that is a skill in itself.
- It has a built-in check for committed secrets, but it is a check, not a guarantee. Read the output before uploading a private codebase anywhere.
mufeedvh/code2prompt7,697 stars, covered in Edition 30; the same job in Rust with prompt templates, and it is a single fast binary rather than a Node.js package.
Track this in Scout- cyclotruc/gitingest
15,341 stars, does it in the browser by changing hub to ingest in any GitHub address; nothing to install at all, and it only works on public repositories.
Track this in Scout - simonw/files-to-prompt
2,765 stars, the small Python original; its last code landed on 19 February 2025, nineteen months ago.
Track this in Scout
npx repomix@latest




