Skip to main content

Repomix

Pack a whole repository into one AI-friendly file

Code / DevToolsFreeOpen source

Repomix packs an entire repository into a single file formatted for large language models, so you can paste or upload a codebase to Claude, ChatGPT, Gemini and other assistants in one go.

Key specs
29,240 GitHub stars source
as of 2026-11-12

What we know

LicenseMITsource, checked 2026-12-02
Open sourceYessource, checked 2026-12-02
PricingFreefrom our original listing, not yet re-checked
GitHub stars29,568source, checked 2026-12-02

Overview

Repomix packs an entire repository into one file that a language model can read. That's useful when you want a chat assistant such as Claude, ChatGPT or Gemini to see your whole codebase, not a few pasted snippets. It reports token counts so you know whether the result fits the model's context window, and can compress code to fit more in.

Key capabilities

  • One-command packing: npx repomix writes repomix-output.xml in your project.
  • Token counting: per-file and total counts against context limits.
  • Git-aware filtering: respects .gitignore, .ignore and .repomixignore.
  • Secret scanning: Secretlint excludes files that look like credentials.
  • Compression: --compress uses Tree-sitter to keep structure and drop detail.
  • Other front ends: website, Chrome and Firefox extensions, and a community VS Code extension.

Tradeoffs

  • Large repos can exceed any context window even when compressed; pack a subdirectory instead.
  • It's a snapshot: you need to re-pack after changes.
  • Agents with their own file tools (Claude Code, Cursor) often don't need it.

Ideal for

  • Asking a chat assistant to review or explain a whole repo
  • Sharing code context with models that have no file access
  • Quick architecture overviews

Not ideal for

  • Very large monorepos
  • Workflows already using an agent with repository access

Getting started

  1. In your project folder, run npx repomix@latest. No install is needed.
  2. Open the generated repomix-output.xml and check the token count against your model's context window.
  3. If it's too big, pack a subfolder (repomix path/to/dir) or add --compress.
  4. Upload the file to your assistant with a prompt such as "This file contains the whole repository. Review it before we refactor."

Technical notes

  • Install: npm install -g repomix or brew install repomix
  • Output formats: XML, Markdown, plain text
  • License: MIT
  • Source: yamadashy/repomix
  • GitHub stars: 29,240 (as of 2026-11-12)

FAQ

What does Repomix produce?

A single file (XML by default, or Markdown or plain text) containing your repository's files, ready to paste or upload to an AI assistant, with token counts per file and in total.

Does Repomix leak secrets?

It respects .gitignore and runs Secretlint to leave out files that match known credential formats. Still review the output before sharing it.

How do I use it without installing anything?

Run `npx repomix@latest` in your project, or paste a repository into repomix.com in the browser.

Alternatives

None listed.

Is your tool an alternative to Repomix? Sponsor this spot for 30 days, marked Sponsored.

Integrations

None listed.

Built on

None listed.

For the team behind Repomix

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe Repomix), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-11-12 · updated 2026-11-12