Repomix is a developer utility that packages an entire code repository into a single AI-friendly file for analysis by large language models. Its core purpose is to simplify the process of feeding complex codebases into AI tools by consolidating files, metadata, and structure into a unified representation. The tool is particularly valuable for code review, refactoring assistance, and automated documentation workflows where context size matters. Repomix intelligently respects ignore rules and can compress code structure to reduce token usage while preserving meaning. It supports multiple output formats and provides token counting to help developers stay within model limits. The project also includes CLI, browser, and editor integrations that make it easy to incorporate into everyday workflows. Overall, Repomix serves as a bridge between traditional repositories and AI-native development practices.
Features
- One-command repository packaging
- AI-optimized output formatting
- Token counting for context management
- Configurable include and ignore rules
- Security checks for sensitive data
- Multiple output formats including XML and Markdown