Repo · ContextMIT27.4k ★
repomix
by yamadashy · linked, not rehosted
Pack your whole repo into one AI-friendly file — paste your entire codebase into any agent's context in seconds.
Add it to your project
Give your agent this prompt — it sets the repo up for you:
Prompt for your agent
Use repomix to pack this repository into a single file for an AI agent. Run it with npx, exclude node_modules and build output, and tell me the token count of the result.
Open source (MIT) · all rights to yamadashy.
What it's for & howRead it ↓Collapse ↑
What it is
repomix bundles your entire repository into a single, well-structured file (XML, Markdown or plain text) that an AI model can read in one shot — with a token count so you know if it fits the context window.
When to reach for it
- You want an agent to understand a whole project, not just open files.
- You're starting a fresh chat and need to hand over full context.
- You want a shareable snapshot of a codebase for review.
Set it up
No install needed — run it with npx:
npx repomix
# writes repomix-output.xml you can paste into any agent
It respects .gitignore and lets you exclude paths. Give your agent the prompt
above and it'll produce a packed file ready to drop into context.