Repomix, developed by yamadashy, is an open-source tool that packages entire local or remote code repositories into a single plain text, Markdown, or XML file optimized for AI processing. It employs built-in security checks and code compression techniques to reduce context token count and prevent sensitive information leakage. The generated file integrates seamlessly with mainstream LLMs such as ChatGPT, Claude, and Llama, facilitating tasks like code review, documentation generation, and test case writing. Licensed under MIT with over 15.9k stars and an active community, Repomix streamlines AI-driven development workflows.
Official website: https://repomix.com/
Source code: https://github.com/yamadashy/repomix
🌟 Features
- AI-Optimized: Formats your codebase in a way that’s easy for AI to understand and process.
- Token Counting: Provides token counts for each file and the entire repository, useful for LLM context limits.
- Simple to Use: You need just one command to pack your entire repository.
- Customizable: Easily configure what to include or exclude.
- Git-Aware: Automatically respects your
.gitignore
files and.git/info/exclude
. - Security-Focused: Incorporates Secretlint for robust security checks to detect and prevent inclusion of sensitive information.
- Code Compression: The
--compress
option uses Tree-sitter to extract key code elements, reducing token count while preserving structure.
Libre Depot original article,Publisher:Libre Depot,Please indicate the source when reprinting:https://www.libredepot.top/5644.html