yamadashy/repomix
TypeScript CLI and MCP server that pack repositories into reviewable LLM context
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
--include, --ignore, and --stdin scope the snapshot; piped paths still respect ignore rules.--compress uses Tree-sitter to retain key code elements rather than simply truncating text.--style json maps paths to file contents; XML is the default for model handoff.Teams that need a scoped, reviewable repository snapshot for onboarding, architecture review, documentation, or cross-file refactoring, delivered through a CLI or MCP.
You need a live semantic index, already have effective on-demand file access, or cannot share source code with the intended assistant.
Quick Start & Installation
npx repomix@latestComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| repomix ★ | 29.6k | +148 | TypeScript | MIT | TypeScript CLI and MCP server that pack repositories into reviewable LLM context |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| archify | 103.1k | +2k | JavaScript | Apache-2.0 | Agent skill and Node CLI for source-backed, interactive architecture diagrams. |
| i-have-adhd | 64.1k | +1.3k | Python | MIT | A 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.
curl -sL https://repoforai.com/repo/yamadashy/repomix.md
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?
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?
Can a company self-host Repomix or redistribute it?
When should I choose Gitingest or direct file retrieval instead?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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