Core Features of Repomix
mainRepomix provides several features designed to optimize codebases for Large Language Models (LLMs):
- AI-Optimized: Formats codebases for easy AI processing.
- Token Counting: Provides token counts for individual files and the entire repository to help manage LLM context limits.
- Simple to Use: Single-command repository packing.
- Customizable: Configuration options to include or exclude specific files.
- Git-Aware: Automatically respects
.gitignore,.ignore, and.repomixignorefiles. - Security-Focused: Uses Secretlint to detect and exclude sensitive credentials.
- Code Compression: The
--compressoption uses Tree-sitter to extract key code elements, reducing token counts while preserving structure.