Skip to main content
📖 The AI Tool Bible
Repomix preview image
Repomix logo

Repomix

✓ Editorially verified

Packs an entire codebase into a single AI-friendly file so LLMs can actually read your repo.

Free· Free and open source (MIT)CodingChatGPT, Claude, Gemini, Grok8.1 / 10
Visit website →

In short

Repomix flattens a repository into one structured file optimized for LLM ingestion. It is best for developers who need to share whole projects with AI assistants for code review or refactoring without building custom pipelines.

Best for

Pick Repomix if you regularly hand whole projects to Claude or ChatGPT and want one clean, token-counted bundle instead of copy-pasting files.

Skip if

Skip it if your workflow is already inside an IDE agent like Cursor or Claude Code that indexes the repo for you.

Repomix is an open-source utility that flattens a whole repository into one structured file (XML, Markdown, JSON, or plain text) optimized for ingestion by ChatGPT, Claude, Gemini, and other LLMs. Instead of pasting files one at a time or wiring up a custom RAG pipeline just to ask 'how does auth work in this project,' you run `npx repomix@latest` and hand the resulting bundle to the model. It respects .gitignore, counts tokens per file, runs Secretlint to strip secrets, and can compress code with Tree-sitter for roughly 70% token reduction.

It's aimed squarely at developers who use AI assistants for code review, refactoring, bug hunts, and onboarding into unfamiliar codebases. Pricing is the easiest part of the review: Repomix is MIT-licensed and completely free, distributed as a CLI, Node library, Docker image, and Chrome extension. There's also a hosted web UI at repomix.com for one-off packs of public repos.

It's not an AI product in the strict sense - there's no model behind it - but it sits in the daily loop of anyone pairing with a frontier LLM on a real codebase. The main caveats are the usual ones for context-packing tools: very large monorepos still blow past context windows even after compression, and you need to actually read the security-scan output rather than trusting it blindly before pasting code into a third-party model.

Editor's take

Repomix is one of those small, sharp tools that quietly becomes part of your daily AI workflow. It doesn't try to be clever - it just produces the single artifact every frontier model actually wants. The Tree-sitter compression and Secretlint pass are what elevate it above the dozen weekend-project clones on GitHub.

— The AI Tool Bible editorial team

Pros

  • Free, MIT-licensed, and runs locally with no account required
  • Tree-sitter compression cuts tokens by ~70% on most codebases
  • Secretlint pass strips API keys and secrets before you paste
  • Works as CLI, Node lib, Docker image, Chrome extension, and hosted UI
  • Respects .gitignore and supports remote repo URLs out of the box

Cons

  • ⚠️ Not an AI itself - you still need a capable LLM to do the actual work
  • ⚠️ Huge monorepos can exceed context windows even after compression
  • ⚠️ Hosted web UI is convenient but means uploading code to a third party

Use cases

codebase-to-llmcode-reviewrefactoringai-onboardingcontext-packing

Frequently asked

How does Repomix handle sensitive data in code?
It runs Secretlint to strip secrets and API keys from the output before you paste the code into a third-party model.
Can Repomix reduce the token count of large codebases?
Yes, it can compress code using Tree-sitter, which results in roughly 70% token reduction on most codebases.
What formats does Repomix support for output?
It generates structured files in XML, Markdown, JSON, or plain text formats.
Is Repomix suitable for very large monorepos?
While it helps with compression, very large monorepos may still exceed context windows even after processing.
How can I access Repomix?
It is available as a CLI, Node library, Docker image, Chrome extension, and a hosted web UI for public repositories.

Explore related

Compare with similar tools

All in Coding
Cursor preview image
Cursor logo

Cursor

Featured
Coding · Claude / GPT (configurable)
9.5

AI-first VS Code fork — chat, edit, and agentic coding in one IDE.

Freemium· Hobby: Free · Individual: $20 / mo. · Teams: $40 / user / mo. · Enterprise: Customcodingrefactors
GitHub Copilot preview image
GitHub Copilot logo

GitHub Copilot

Featured
Coding · GPT / Claude / OpenAI o-series (configurable)
9.1

The original AI pair programmer, now with chat and agents.

Paid· Free: $0 · Pro: $10 · Pro+: $39 · Max: $100autocompletechat
Replit Agent preview image
Replit Agent logo

Replit Agent

Featured
Coding · Multi-model (Claude / GPT configurable)
8.7

Build & deploy a full app from a single prompt.

Freemium· Basic: $20 · Pro: $50 · Enterprise: Contact salesprototypesinternal tools
Warp preview image
Warp logo

Warp

Coding · Multi-model: OpenAI, Anthropic Claude, Amazon Bedrock, plus BYO via OpenRouter and LiteLLM
8.8

The agentic development environment, from the terminal up

Freemium· Free: $0/month · Build: $20/month · Max: $200/month · Business: $50/user /month · Enterprise: CustomAgentic debugging of failing builds and testsNatural-language shell command generation
Cline preview image
Cline logo

Cline

Coding · Model-agnostic: Claude (Anthropic), GPT (OpenAI), Gemini (Google), DeepSeek, Grok, Mistral, Cerebras, plus local Ollama/LM Studio
8.7

Open-source agentic coding assistant that plans, edits, and runs code inside your IDE

Freemium· ClinePass: $9.99/monthMulti-file feature scaffoldingLarge-scale refactors
Aider preview image
Aider logo

Aider

Coding · BYO (Claude / GPT-4 / Gemini / DeepSeek)
8.4

Terminal-based AI pair programmer that writes commits.

Free· Free / open-source; you pay the underlying LLM API costsCLIgit workflow