repomix
MCP ServerFree📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.
Capabilities13 decomposed
multi-format codebase packaging with llm-optimized output
Medium confidenceOrchestrates a six-phase pipeline (discovery via glob patterns and .gitignore rules, parallel file collection, security validation via Secretlint, transformation with Tree-sitter compression, template-based formatting, and tiktoken-based token counting) to pack entire repositories into single files in XML, Markdown, JSON, or Plain Text formats. Uses worker-based parallel processing to handle large codebases efficiently while maintaining structural awareness through AST parsing rather than naive concatenation.
Uses Tree-sitter AST parsing for structural code compression across 40+ languages instead of regex-based comment stripping, enabling language-aware token optimization. Implements worker-based parallel file processing pipeline with Secretlint security scanning integrated into the transformation phase, not as a post-processing step.
Produces smaller, more LLM-optimized outputs than naive concatenation tools because it strips comments and compresses code structure via AST parsing, reducing token consumption by 20-40% while maintaining semantic integrity.
configuration-driven file selection and filtering
Medium confidenceImplements a declarative configuration system (via .repomixrc.json or CLI flags) that supports glob patterns, .gitignore integration, language-specific filters, and file size limits. The configuration loader merges CLI arguments with file-based config using a precedence hierarchy, allowing users to define complex inclusion/exclusion rules without modifying code. Supports both positive patterns (include) and negative patterns (exclude) with gitignore-style semantics.
Implements a two-level configuration system with automatic .gitignore rule parsing and merging, allowing users to define filters declaratively in .repomixrc.json while respecting repository-level gitignore rules without manual duplication. CLI flags override file config with explicit precedence, enabling both persistent and ad-hoc filtering.
More flexible than simple include/exclude lists because it integrates .gitignore semantics natively and supports declarative configuration files, reducing the need to manually specify exclusions for common patterns like node_modules or .git.
web platform with interactive try-it interface
Medium confidenceProvides a browser-based interface for testing Repomix functionality without local installation. The web platform includes an interactive try-it interface where users can input repository URLs or paste code, configure packaging options, and preview output in real-time. Server-side API handles repository cloning and processing, with results streamed back to the browser. Supports multi-language documentation and localized UI.
Implements a full-stack web platform with server-side repository processing and browser-based UI, enabling users to test Repomix without local installation. Includes multi-language documentation and localized UI, making the tool accessible to non-English speakers.
More accessible than CLI-only tools because it provides a web interface for users unfamiliar with command-line tools. Server-side processing enables testing without local Git setup, lowering the barrier to entry for new users.
github browser extension for repository packaging
Medium confidenceProvides a browser extension that integrates Repomix directly into GitHub's web interface. Users can click a button on any GitHub repository page to package the repository without leaving GitHub. The extension communicates with the Repomix web platform API to handle processing, and provides options to download or copy the packaged output. Supports both public and private repositories (with authentication).
Integrates Repomix directly into GitHub's web interface via browser extension, eliminating the need to leave GitHub or use CLI tools. Supports both public and private repositories with automatic authentication handling, enabling seamless packaging from the repository browsing context.
More convenient than CLI or web platform workflows because it eliminates context switching — users can package repositories directly from GitHub without copying URLs or navigating to external tools.
github actions integration for ci/cd packaging
Medium confidenceProvides a GitHub Action that enables automated repository packaging as part of CI/CD workflows. The action can be triggered on push, pull request, or schedule events, packaging the repository and uploading results as artifacts or committing them to the repository. Supports configuration via action inputs (format, filters, compression options) and environment variables. Integrates with GitHub's artifact storage and release systems.
Implements Repomix as a reusable GitHub Action, enabling declarative packaging automation in CI/CD workflows. Integrates with GitHub's artifact storage and release systems, allowing packaged outputs to be stored alongside build artifacts or committed to the repository.
More integrated than manual packaging because it automates packaging as part of CI/CD, enabling regular snapshots without manual invocation. Integration with GitHub's artifact system enables easy access to packaged outputs from workflow runs.
remote repository cloning and processing
Medium confidenceEnables packaging of remote Git repositories by cloning them to a temporary directory, processing the cloned files through the standard pipeline, and cleaning up temporary storage. Supports both HTTPS and SSH Git URLs with automatic credential handling. The remoteAction() function orchestrates cloning, validation, and cleanup with error recovery for network failures or invalid repository URLs.
Implements automatic temporary directory management with cleanup-on-exit semantics, allowing remote repository processing without requiring users to manage clone directories manually. Integrates Git credential handling transparently, supporting both HTTPS and SSH authentication without explicit credential passing in CLI arguments.
Simpler than manual git clone + repomix workflows because it handles temporary storage and cleanup automatically, and integrates credential handling natively without exposing credentials in command-line arguments or logs.
model context protocol (mcp) server integration
Medium confidenceExposes Repomix functionality as an MCP server that integrates directly with AI assistants like Claude. Implements MCP tools for packing repositories and retrieving packaged content, allowing AI assistants to invoke Repomix operations within their native tool-calling interface. The MCP server mode runs as a separate process that communicates with the AI assistant via JSON-RPC over stdio, enabling seamless integration without CLI invocation overhead.
Implements MCP server mode as a first-class distribution channel alongside CLI and web interfaces, exposing Repomix as native tools within AI assistants' function-calling interfaces. Uses JSON-RPC over stdio for communication, enabling tight integration with Claude and other MCP-compatible clients without HTTP overhead or external API dependencies.
More seamless than CLI-based workflows because the AI assistant can invoke Repomix directly within its native tool interface, eliminating context switching and enabling agentic workflows where the AI can package multiple repositories and analyze them iteratively.
tree-sitter-based code compression and comment stripping
Medium confidenceLeverages Tree-sitter AST parsing to intelligently strip comments and compress code structure across 40+ programming languages. For each supported language, the system parses source code into an abstract syntax tree, identifies comment nodes, removes them while preserving code semantics, and optionally adds line numbers for reference. Unsupported languages fall back to regex-based comment stripping. This approach reduces token consumption by 20-40% compared to naive concatenation while maintaining code structure.
Uses Tree-sitter AST parsing for language-aware comment removal instead of regex patterns, enabling structural understanding of code syntax. Supports 40+ languages natively with automatic fallback to regex-based stripping for unsupported languages, providing consistent compression across heterogeneous codebases.
More accurate than regex-based comment stripping because it understands language syntax and can distinguish between comments and string literals containing comment-like text. Reduces token consumption by 20-40% compared to naive concatenation while preserving code semantics.
tiktoken-based token counting and metrics
Medium confidenceIntegrates OpenAI's tiktoken library to calculate accurate token counts for packaged output before sending to LLMs. Provides per-file and aggregate token statistics, allowing users to understand context window consumption and optimize packaging parameters. The metrics system tracks compression ratios, file counts, and estimated costs for different LLM providers based on token counts.
Integrates tiktoken for OpenAI-compatible token counting with per-file granularity, providing both aggregate and itemized token statistics. Enables cost estimation by tracking compression ratios and token consumption across different output formats, allowing users to optimize packaging parameters for budget constraints.
More accurate than character-count-based estimates because it uses actual tokenization logic via tiktoken, and provides per-file breakdown enabling targeted optimization of high-token-consumption files.
security scanning with secretlint integration
Medium confidenceIntegrates Secretlint into the transformation pipeline to detect and prevent accidental exposure of secrets (API keys, credentials, tokens) in packaged output. Scans files during the transformation phase before output generation, flagging files containing detected secrets and optionally blocking packaging or redacting sensitive content. Supports configurable secret patterns and multiple secret detection rules.
Integrates Secretlint scanning as a mandatory transformation phase (not optional post-processing), ensuring all files are scanned before output generation. Provides both detection and optional redaction, allowing users to choose between blocking packaging or sanitizing detected secrets.
More proactive than manual secret review because it automatically scans all files during packaging and can block or redact detected secrets, reducing the risk of accidental credential exposure in AI-assisted workflows.
multi-format output generation with template system
Medium confidenceImplements a template-based output generation system supporting XML, Markdown, JSON, and Plain Text formats. Each format uses language-specific templates that structure packaged content with metadata (file paths, line counts, language), making output optimized for different consumption patterns. The builder pattern allows programmatic output construction with format-specific optimizations, while templates enable user-customizable output structure.
Implements both template-based and builder-based output generation, allowing both declarative customization (templates) and programmatic control (builders). Each format includes language-aware metadata (file paths, line counts, language detection) optimized for LLM consumption.
More flexible than fixed-format tools because it supports four output formats with customizable templates, enabling optimization for different LLM APIs and downstream tools. Structured metadata makes output more useful for programmatic processing compared to plain concatenation.
agent skills generation for ai assistants
Medium confidenceGenerates structured skill definitions that enable AI assistants to understand and invoke Repomix capabilities. Produces skill descriptions, parameter schemas, and usage examples in formats compatible with AI assistant frameworks. The system introspects Repomix configuration and capabilities to generate accurate skill definitions without manual specification, enabling AI agents to discover and use Repomix features dynamically.
Implements automatic skill generation via introspection of Repomix configuration schema, enabling AI agents to discover capabilities without manual skill definition. Generates parameter schemas and usage examples alongside skill descriptions, providing comprehensive capability documentation for AI assistants.
More maintainable than hardcoded skill definitions because it auto-generates skills from the actual configuration schema, reducing the risk of skill definitions becoming stale when Repomix capabilities change.
cli with interactive spinner and progress feedback
Medium confidenceProvides a command-line interface with real-time progress feedback via animated spinners and status messages. The CLI runner (cliRun.ts) orchestrates the packaging pipeline with visual feedback at each stage (discovery, collection, validation, transformation, formatting, metrics). Supports both verbose and quiet output modes, with structured logging for debugging and error reporting.
Implements stage-level progress feedback with animated spinners for each pipeline phase, providing visual confirmation of progress without verbose logging. Supports both interactive (TTY) and non-interactive (CI/CD) modes with automatic fallback to text output when spinner animation is unavailable.
More user-friendly than silent CLI tools because it provides real-time progress feedback, helping users understand what's happening during long packaging operations. Automatic TTY detection enables seamless integration into CI/CD pipelines without explicit flag configuration.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with repomix, ranked by overlap. Discovered automatically through the match graph.
auto-md
Convert Files / Folders / GitHub Repos Into AI / LLM-ready Files
GPT Engineer
AI agent that generates entire codebases from prompts — file structure, code, project setup.
LangTale
Accelerate AI app development, testing, and...
GPT Runner
Agent that converses with your files
CodeViz | Visual codebase maps
Fast codebase understanding and navigation
get-llms-txt
Generate LLM-friendly llms.txt files from markdown and MDX content files
Best For
- ✓developers integrating codebases with LLM-based code analysis tools
- ✓teams using Claude or ChatGPT for full-codebase refactoring tasks
- ✓engineers building AI-assisted code review workflows
- ✓teams with large monorepos needing selective codebase packaging
- ✓developers building CI/CD pipelines with consistent filtering rules
- ✓organizations with security policies requiring exclusion of sensitive file patterns
- ✓developers exploring Repomix for the first time
- ✓teams evaluating Repomix before adopting it in their workflow
Known Limitations
- ⚠Tree-sitter compression only works for supported languages (40+ languages); unsupported languages fall back to plain text
- ⚠Large repositories (>100MB) may require significant memory during parallel processing phase
- ⚠Token counting via tiktoken is approximate and may differ from actual LLM tokenization by 2-5%
- ⚠Remote repository processing requires network access and cloning overhead (~5-30s depending on repo size)
- ⚠Configuration merging follows a fixed precedence (CLI > .repomixrc.json > defaults); no custom precedence rules
- ⚠Glob patterns use standard micromatch syntax; advanced regex patterns not supported
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 22, 2026
About
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.
Categories
Alternatives to repomix
Are you the builder of repomix?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →