pluginsby yamadashy
repomix
Repomix packs an entire codebase into a single AI-friendly file like XML, Markdown, JSON, or plain text. It helps developers feed project structures and file contents directly to Large Language Models for tasks like code review, refactoring, and documentation generation.
AI-written from the README.
Best for
Developers who want to package a local or remote repository into a single consolidated file for AI analysis and context sharing.
Highlights
- Packs entire repositories into a single AI-optimized output file with hierarchical directory structures and token counts.
- Supports code compression using Tree-sitter to extract essential signatures and reduce token usage.
- Includes a security check feature via Secretlint to detect files matching known credential formats.
Getting started
Quoted from the project's README. Read it before you run it.
npx repomix@latestPros
- Eliminates manual file preparation when sharing code context with LLMs.
- Offers flexible output formats and rich configuration options including git integration and file filtering.
Cons
- Packed output can become extremely large for extensive codebases, requiring careful token budget management or splitting.
- Processing untrusted remote repository configurations or custom file processors carries risks regarding arbitrary code execution.
Security notes
AI-generated and unchecked. Always read the source yourself.
The repository documents that file processors and configuration loading can lead to arbitrary code execution if untrusted repositories are loaded without proper review. It also documents a security check feature that uses Secretlint to scan files for sensitive information like API keys and passwords.
Community score
… points
Votes measure opinion, not security or correctness.