← Back to Leaderboard
Ryamadashy

yamadashy/repomix

TypeScript CLI and MCP server that pack repositories into reviewable LLM context

Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated yesterday
Latest Release
v1.19.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
DockerMCPCLI
Total Stars
★ 29,603
24h Growth
+13
7d Growth
+148
Forks
1,667

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

yamadashy/repomix Star History (2024-07-15 - 2026-12-04) ALL-TIME STAR HISTORY (2024-07 – 2026-12) +29.6k in 872d · avg +34/day 31.3k 15.6k 0 2024-07-15: ★ 12024-09-07: ★ 4662024-11-02: ★ 2,8862024-12-28: ★ 5,3842025-02-22: ★ 9,6932025-04-19: ★ 14,2242025-06-14: ★ 16,3042025-08-09: ★ 17,7952025-10-04: ★ 18,9112025-11-29: ★ 19,8692026-01-24: ★ 20,9262026-03-21: ★ 22,0922026-05-16: ★ 24,5402026-07-11: ★ 26,7512026-09-05: ★ 28,0222026-10-31: ★ 29,0352026-12-04: ★ 29,603 ★ 29.6k 2024-07 2025-09 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Repomix is a TypeScript repository packer with a CLI entry point at bin/repomix.cjs and an MCP server built on @modelcontextprotocol/server. Its core job is to turn a selected working tree or remote Git revision into one structured text artifact. File discovery respects .gitignore, .ignore, and .repomixignore, and Secretlint screens for known credential formats before matching files are excluded from the bundle.

The stack includes globby and minimatch for path matching, gpt-tokenizer for token counts, and web-tree-sitter with @repomix/tree-sitter-wasms for optional structural compression. The output separates the directory layout from path-labeled file contents and can append instructions from output.instructionFilePath. MCP is an integration surface for clients; packing itself does not call a model or build a retrieval index.

Key Capabilities & Differentiators

Pack a local directory or use --remote with a Git URL or GitHub shorthand. A remote snapshot can be scoped to a branch, tag, or commit. Use --include and --ignore for glob-based selection or pipe a path list through --stdin; piped paths are resolved and deduplicated but do not bypass ignore rules. Git logs and diffs can be included, and --include-logs defaults to 50 commits.

The CLI defaults to XML and also supports Markdown and JSON. JSON maps file paths to contents, making it suitable for downstream processing without parsing a prompt-oriented document. Per-file and total token counts help identify what to trim before model handoff. --compress extracts key code elements with Tree-sitter; use it for structural context, and keep the relevant files uncompressed when implementation details matter.

Trade-offs & Limitations

A single artifact is easy to inspect and share for a bounded review, but it is a snapshot, not a live index. Regenerate it when the source changes. For a large monorepo, start with a package or a specific path list: a broad bundle can spend the context budget on unrelated code, and compression can omit implementation details needed for a diagnosis. Token totals are planning estimates; check the target model's tokenizer and allowance for the rest of the prompt.

Gitingest is worth evaluating for Python-centric or data-science workflows. Repomix is a stronger fit when MCP and configurable Git-aware packing are required. If an assistant already reads files on demand, a snapshot may add more context than the task needs. Secretlint is a filter for known credential formats, not a data-loss-prevention boundary: review the artifact for sensitive source or data and enable Git history or diffs only when needed.

Hardware & Deployment Guide

The npm package requires Node.js 22 or newer. Run npx repomix@latest in a project directory for a quick trial, or install it globally with npm install -g repomix. Local packing needs no model endpoint; fetching a remote repository requires network access. The ghcr.io/yamadashy/repomix image uses node:22-slim, includes Git and CA certificates, runs repomix as its entry point, and uses /app as its working directory for mounted input and output.

For MCP, check client compatibility before upgrading to v1.19.0: it moves to SDK v2 and the 2026-07-28 protocol and adds live progress and cancellation. Version 1.18.0 introduced single-workspace sandboxing, and v1.18.1 fixed CLI Git handling so repository-level Git configuration is no longer executed. For shared use, select a patched, pinned version, limit the workspace or container mounts to what the job needs, and review output before sending it outside that boundary.

MCP lifecycle: v1.19.0 moves to SDK v2 and the 2026-07-28 protocol, with live progress and cancellation.
File selection: --include, --ignore, and --stdin scope the snapshot; piped paths still respect ignore rules.
Token budgeting: per-file and repository totals expose expensive inputs before a bundle is sent to a model.
Structural compression: --compress uses Tree-sitter to retain key code elements rather than simply truncating text.
Machine-readable output: --style json maps paths to file contents; XML is the default for model handoff.
Security controls: Secretlint excludes files matching known credential formats, while MCP sandbox mode can confine access to one workspace.
Best For

Teams that need a scoped, reviewable repository snapshot for onboarding, architecture review, documentation, or cross-file refactoring, delivered through a CLI or MCP.

Skip If

You need a live semantic index, already have effective on-demand file access, or cannot share source code with the intended assistant.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerMCPCLI
npx repomix@latest

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
repomix ★29.6k+148TypeScriptMITTypeScript CLI and MCP server that pack repositories into reviewable LLM context
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
archify103.1k+2kJavaScriptApache-2.0Agent skill and Node CLI for source-backed, interactive architecture diagrams.
i-have-adhd64.1k+1.3kPythonMITA coding-agent skill that puts the next action first

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/yamadashy/repomix.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

yamadashy/repomix Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about repomix

Should I integrate Repomix through the CLI or MCP?

The CLI writes a packed file, with repomix-output.xml as the default, that you can inspect before handing it to an assistant. MCP gives a compatible client a server interface instead. Version 1.19.0 adds live progress and cancellation; confirm that your client supports the protocol version and enable workspace sandboxing when repository access should be confined.

What runtime and hardware does Repomix need?

The npm package requires Node.js 22 or newer. Packing, token counting, and Tree-sitter compression do not run model inference, so they require no GPU or VRAM. Size CPU and RAM for the volume of selected text and the number of concurrent jobs, and measure representative repositories with compression both on and off. Budget the downstream model's context separately.

Can a company self-host Repomix or redistribute it?

Yes. Repomix is MIT-licensed and can be run locally or from its Docker image. Preserve the required copyright and license notices when redistributing Repomix. That license does not grant rights to redistribute the source code you pack; check its license and your organization's rules before sharing a bundle.

When should I choose Gitingest or direct file retrieval instead?

Consider Gitingest if Python or data-science workflows are the main priority. Choose Repomix when MCP access, a Git-aware CLI, configurable file selection, or Tree-sitter compression matters. If the assistant already has scoped repository access and only needs a few files per task, targeted retrieval avoids generating and sending a full snapshot.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining yamadashy/repomix? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature yamadashy/repomix on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare