Skip to content

repomix

Repomix is an open-source AI tool that packages entire code repositories into AI-friendly formats, enabling large language models to process and understand complete codebases.

Free · MacOS, Linux, Windows

stork
I am a 3D character.
One 3D character and one typed sentence.
This 3D character was never animated.
A photo, a cartoon, a painting or a 3D character. From 10 cents a minute. Free to try.
Make a photo talkDevelopers: there is an API

What is repomix?

repomix is an AI category tool developed by Kazuki Yamada that enables developers and teams to pack entire code repositories into a single, AI-friendly file. This process optimizes codebases for consumption by Large Language Models (LLMs) such as Claude, ChatGPT, Gemini, and Grok, providing full project context for various AI-assisted tasks.

Repomix transforms a codebase into a structured file (e.g., XML, Markdown, JSON, plain text) that overcomes the context window limitations of LLMs. It is an actively maintained open-source project, with recent updates including performance improvements in version 1.14.0, a new watch mode, and expanded language support. The tool is designed to enhance AI's ability to perform tasks like code review, documentation generation, and security auditing by providing a comprehensive view of the codebase.

Key Features of repomix

Repomix provides a suite of features designed to prepare code repositories for optimal processing by Large Language Models, ensuring comprehensive context and security.

  • Packs entire repositories into a single, AI-friendly file (XML, Markdown, JSON, plain text).
  • Formats codebase for AI understanding and processing, overcoming LLM context window limitations.
  • Automatically respects .gitignore files to exclude specified content.
  • Incorporates Secretlint for robust security checks, preventing sensitive data leaks.
  • Provides token counts for each file and the entire repository, aiding in context management.
  • Works with various LLM services including ChatGPT, Claude, Gemini, DeepSeek, Perplexity, Gemma, Llama, and Grok.
  • Features intelligent compression (Tree-sitter based) to reduce token count by approximately 70%.
  • Includes a watch mode (-w, --watch) to automatically re-pack the codebase upon file changes.
  • Offers a cwd-relative output path style for improved clarity in multi-root runs.
  • Supports a community-maintained VSCode extension, 'Repomix Runner', for in-editor functionality.

Who Should Use repomix?

Repomix is primarily designed for developers, AI agents, and teams who leverage Large Language Models for code-related tasks, aiming to provide LLMs with complete and accurate project context.

  • Developers: For automated code review, refactoring suggestions, and generating comprehensive test cases by feeding packed files to LLMs.
  • AI Agents: To provide full project context for various AI assistance, eliminating the need for manual file exploration and enhancing AI agent capabilities.
  • Security Teams: For performing security audits on repositories, identifying vulnerabilities, and preventing sensitive data leaks using AI.
  • Project Managers & Architects: For implementation planning, architectural changes, and complex migrations by allowing AI to analyze the full codebase.
  • Onboarding & Learning: To quickly help developers understand unfamiliar or inherited projects through AI-powered analysis and documentation generation.

How to Use repomix

Repomix can be used as a Command Line Interface (CLI) tool or via its web application to package code repositories for AI consumption. The process involves specifying the repository and desired output format.

  1. Install Repomix via npm: npm install -g repomix.
  2. Navigate to your repository's root directory in the terminal.
  3. Run the repomix pack command to generate an AI-friendly file (e.g., repomix pack > output.txt).
  4. Optionally, use the --watch flag (repomix pack -w) to automatically re-pack the repository on file changes.
  5. Feed the generated output.txt (or other specified format) to your preferred Large Language Model (e.g., Claude, ChatGPT, Gemini).
  6. Utilize the Repomix web UI at repomix.com for browser-based packing or the community-maintained VSCode extension 'Repomix Runner' for in-editor use.

repomix Pricing & Plans

Repomix operates on a freemium model, offering a fully functional free tier for its core capabilities. Specific details on paid tiers, if any, are not publicly detailed beyond the freemium designation.

  • Free: Provides full access to the core repository packing, token counting, compression, and security check features.

Pros

  • Provides full project context to LLMs, overcoming context window limitations.
  • Offers intelligent compression (Tree-sitter based) to significantly reduce token usage by approximately 70%.
  • Integrates Secretlint for robust security checks, preventing sensitive data leaks.
  • Supports a wide range of LLMs including Claude, ChatGPT, Gemini, DeepSeek, Perplexity, Gemma, Llama, and Grok.
  • Features a watch mode (-w, --watch) for automatic re-packing on codebase changes, enhancing developer workflow.
  • Available as a CLI tool, web application, and has a community-maintained VSCode extension for flexible usage.

Cons

  • While open-source, the community-maintained VSCode extension might have varying levels of support compared to an official one.
  • The effectiveness of AI-driven tasks is still dependent on the capabilities and prompt engineering of the specific LLM used.
  • Requires initial setup and understanding of CLI commands for local use, which might be a barrier for some users.
  • The 'freemium' model implies potential future paid tiers or advanced features that are not currently detailed.

repomix vs Competitors

Repomix distinguishes itself in the competitive landscape by offering a comprehensive, AI-optimized approach to repository packaging, focusing on structured output, security, and intelligent compression.

See every repomix alternative, compared

repomix

Free · MacOS, Linux, Windows

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking