← Back to research
·4 min read·company

Repomix

Repomix — pack your entire codebase into a single AI-friendly file. Tree-sitter compression reduces tokens ~70%. XML, Markdown, JSON, or plain-text output. 26.2k stars, ~255k npm downloads/month, MIT license, TypeScript.

Key takeaways

  • Packs entire repositories into a single AI-friendly file — XML-structured output (plus Markdown, JSON, and plain text) with Tree-sitter compression cutting tokens by ~70%
  • 26.2k stars and ~255k npm downloads/month as of June 2026 — still the most popular context packing tool by a wide margin. CLI, MCP server, website, Docker, GitHub Actions, and library modes
  • v1.14.0 (April 2026) was a performance overhaul — pack time cut 58% (3.3s to 1.4s) and tiktoken WASM replaced with pure-JS gpt-tokenizer — answering earlier criticism that rival packers were dramatically faster
  • Zero-server, privacy-first: everything runs locally with Secretlint scanning for secrets. No code leaves your machine

FAQ

What is Repomix?

A tool that packs your entire repository into a single, AI-friendly file. Uses Tree-sitter for intelligent code compression (~70% token reduction) and XML structuring optimized for Claude and other LLMs, with Markdown, JSON, and plain-text output options.

When should I use Repomix vs a knowledge graph tool like GitNexus?

Repomix is best for small-to-medium repos where you want quick, full-context LLM access. Knowledge graphs are better for large codebases where you need structural queries like blast radius analysis.

Is Repomix still actively maintained?

Yes — as of June 2026 the repo had same-day commit activity, with four releases shipped between late March and late May 2026 (v1.13.0 through v1.14.1).

Overview

Repomix is the leading context packing tool — it packs entire repositories into a single, AI-friendly file optimized for LLMs. Tree-sitter-based compression reduces tokens by approximately 70% while preserving code structure. XML output (the default) is designed for Claude's XML parsing; Markdown, JSON, and plain-text formats are also supported. It is git-aware (respects .gitignore), runs Secretlint to catch sensitive data before packing, and reports token counts for context planning.

With 26.2k stars and roughly 255k npm downloads per month as of June 2026, it remains the most popular tool in the context packing category by a significant margin. The project was nominated in the "Powered by AI" category at the JSNation Open Source Awards 2025.

Key stats (as of June 2026): 26,188 stars, ~254,761 npm downloads/month, MIT license, TypeScript. Created July 2024; latest release v1.14.1 (May 27, 2026); same-day commit activity on GitHub.


Modes

  • CLIrepomix packs a repo from the command line (npm, yarn, bun, or Homebrew)
  • Website — repomix.com packs remote repos in the browser
  • MCP Server — dynamic packing for AI agents via Model Context Protocol
  • Docker — container-based execution
  • GitHub Actions — automate codebase packing in CI/CD workflows
  • Library — integrate into Node.js applications programmatically

Recent Releases

Four releases shipped since this profile's original date (March 15, 2026):

  • v1.13.0 / v1.13.1 (March 24–26, 2026) — incremental fixes
  • v1.14.0 (April 26, 2026) — performance overhaul: pack time cut 58% (3.3s → 1.4s), tiktoken WASM replaced with pure-JavaScript gpt-tokenizer (~200ms less startup), pipeline parallelization, monorepo-aware tech stack detection in the skill generator
  • v1.14.1 (May 27, 2026) — follow-up fixes

Competitive Position

Strengths: Massive adoption (26k stars, ~255k downloads/month). Tree-sitter compression is best-in-class. Six integration modes. MIT license. Zero-server privacy with built-in secret scanning.

Weaknesses: Flat context (no structural queries or blast radius). Token-limited for large monorepos. Snapshots go stale — no live updates.


Cautions

  • Raw speed has been a sore spot. A January 2025 Hacker News benchmark claimed the Rust-based rival yek was ~230x faster than Repomix at serializing the Next.js repo. The v1.14.0 performance overhaul (58% pack-time reduction) is a direct response, but compiled-language packers can still be faster on very large repos.
  • Flat-file packing doesn't scale to monorepos — even with ~70% compression, large codebases exceed model context windows, and the output is a point-in-time snapshot.

What Developers Say

"Repomix can take care of this for you. I pack it, cat the file to my clipboard with pbcopy, and just paste it into the prompt." — pridkett, Hacker News, March 2025

"I've been using repomix extensively with Claude Projects. I've found it incredibly useful, many thanks @yamadashy, excellent work!" — danja, GitHub Discussion #154, December 2024

"Just wanted to say hi and share my excitement for this tool, it makes life so much easier." — homelab-00, GitHub Discussion #154, October 2025


Bottom Line

Repomix remains the category leader in context packing and is getting healthier: stars grew from 22.4k to 26.2k between March and June 2026, npm downloads run ~255k/month, and the April 2026 v1.14.0 release directly attacked its main criticism (speed) with a 58% pack-time cut.

Key metric: 26.2k GitHub stars, ~255k npm downloads/month (as of June 2026).

Recommended for: Anyone who wants the simplest path to giving an LLM full codebase awareness on small-to-medium repos — especially Claude users, given the XML-default output.

Not recommended for: Large monorepos needing structural queries, blast-radius analysis, or live-updating context — use a knowledge graph tool instead.

Outlook: Steady single-maintainer momentum with monthly releases and same-day commit activity. The performance gap versus Rust-based packers is narrowing; the bigger long-term risk is agents with native repo access making one-shot packing less necessary.


Research by Ry Walker Research • methodology