Skip to content
AI Tool

repomix Review

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.

shipped Jul 22, 2026freemium
Monthly visits655/mo
repomix — product screenshot

Why it matters

1Packs entire repositories into a single, AI-friendly file for LLMs like Claude, ChatGPT, and Gemini.
2Offers token counting, intelligent compression (reducing tokens by ~70%), and Secretlint-based security checks.
3Nominated in the 'Powered by AI' category for the JSNation Open Source Awards 2025.
4Includes a watch mode (-w, --watch) for automatic re-packing on codebase changes, introduced in version 1.14.0.

About repomix

Platforms
MacOS, Linux, Windows
Target Audience
Developers and teams using AI-assisted coding tools.

Pricing Plans

Free
Free

Leadership

Kazuki Yamada
GitHubOpen Source

overview

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.

features

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.

use cases

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

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.

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

pricing

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.

Similar Tools

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.

1
repo2txt-for-llm

This is a Visual Studio Code extension that generates an organized representation of your repository's structure, including a summary and file tree, directly within the IDE.

Unlike Repomix, which is a standalone tool, repo2txt-for-llm is integrated into VS Code, offering an in-editor experience for generating AI-friendly repository summaries. It also provides optional AI-powered refinement of the output using OpenAI or Anthropic APIs.

2
GitHub Repo Summarizer

This Chrome Web Store extension fetches a GitHub repository tree, filters content, and produces an LLM-ready summary in a single .txt file.

While Repomix is a general-purpose tool, GitHub Repo Summarizer is specifically designed as a browser extension for GitHub repositories, offering quick, one-click summaries and precision filtering directly from the web interface.

3

code2prompt is a CLI tool written in Rust that converts a codebase into a single LLM-friendly format.

Similar to Repomix, code2prompt is a command-line interface tool focused on packaging code for LLMs. Its primary differentiation lies in its implementation language (Rust) and potentially different approaches to code parsing and output formatting.

4

files-to-prompt is a Python tool designed to convert multiple files into a single, structured prompt for large language models.

Like Repomix, files-to-prompt aims to consolidate repository content for LLMs. Being a Python-based tool, it might appeal to developers already working within the Python ecosystem, offering different customization options for file selection and output structure.

More on Stork

Related AI Tools

Other tools in this category, matched by shared tags