
About Repomix
Repomix packs a code repository into one file that is easy for AI tools to read. It is useful when you want to share a whole project with a chat assistant or a code review tool.
What it does
Repomix reads a local or remote repository and writes its contents into a single file in XML, Markdown, JSON or plain text. It respects your .gitignore rules, and it can add a directory tree and a file summary. It also counts tokens for each file and for the whole project, which helps with context limits. A secret scanner leaves out files that look like credentials.
Key features
- Output in XML, Markdown, JSON or plain text
- Respects .gitignore when choosing files
- Token counts for each file and the full repository
- Skips files that match known credential formats
- Can compress code and remove comments or blank lines
Who it's for
Developers who want to hand a codebase to an assistant for a review or refactor will get the most from it. Teams that prepare project context for code review tools can also use it.
Pricing and good to know
Repomix is open source under the MIT license. It runs on macOS, Linux and Windows, and a Chrome extension is also available. Check the packed output for files you did not intend to share before you upload it anywhere.
Highlights
- Output as XML, Markdown, JSON or text
- Respects .gitignore when picking files
- Token counts for each file and the repo
- Leaves out files that look like credentials
- Can compress code and strip comments












