Repomix Codebase Context Packer for LLMs
Repomix packs an entire code repository into a single AI-friendly file optimized for LLM consumption. It provides token counting, security scanning via Secretlint, Tree-sitter-based code compression, and outputs in XML, Markdown, or plain text format.
Installation
Use the upstream install or setup path that matches your environment:
- npx repomix@latest
- npm install -g repomix
- yarn global add repomix
- brew install repomix
Requirements and caveats from upstream:
- If you're using Python, you might want to check out Gitingest, which is better suited for Python ecosystem and data
Docker Usage 🐳
- You can also run Repomix using Docker.
Basic usage or getting-started notes:
Get help with configuration and usage
🚀 Quick Start
Alternatively using yarn
Extracted from upstream docs: https://raw.githubusercontent.com/yamadashy/repomix/HEAD/README.md