What problem does it solve?
Large codebases and third-party repositories are difficult to feed into LLMs or audit manually because of size, sensitive files, and inconsistent formats; repomix consolidates and formats repositories into single, AI-friendly files so you can analyze, review, or audit code with an LLM or automation toolchain.
Core Features & Use Cases
- Repository packaging: Produce XML, Markdown, JSON, or plain-text snapshots that preserve file hierarchy and metadata for LLM consumption.
- Remote and local support: Process local folders or remote GitHub repositories (via npx) and optionally target specific commits.
- Token management & filtering: Count tokens per file, produce token trees, and include/exclude files using globs and .repomixignore rules to stay within LLM context limits.
- Security-aware processing: Optional secret scanning and comment removal, plus configuration to ignore sensitive files before sharing outputs.
- Batch automation: scripts/repomix_batch.py enables batch processing, environment-based configuration, progress reporting, and CI integration.
Quick Start
Use repomix to package the current repository into a markdown snapshot ready for LLM analysis.