whereismyai
Repomix
Repomix is a command-line tool that packages code repositories into a single file for AI assistants.
Repomix is a command-line tool that packs local or remote repositories into a single file for artificial intelligence tools and models like Claude, ChatGPT, Gemini, and MCP. It formats codebases into XML, Markdown, JSON, or plain text, automatically respecting .gitignore files and using Secretlint to detect credentials. The tool provides token counts for files and repositories to help manage LLM context limits. It is designed for developers who need to share complete repository context for tasks such as code reviews, refactoring, implementation planning, and documentation generation. Users can run it via the command line or Docker, and integrate it with CI/CD workflows using GitHub actions.
Repomix at a glance
- Best for: Software engineer
- Runs on: macOS, Windows, Linux, CLI, self-hosted, open source
- Pricing: Free
- Released: July 2024
- Category: AI coding tool
- Website: repomix.com
Key features
- Packs local or remote repositories into single files
- Outputs XML, Markdown, JSON, or plain text formats
- Automatically respects .gitignore files
- Detects credentials using Secretlint integration
- Provides token counts for files and repositories
- Supports Tree-sitter based intelligent code compression
- Includes Model Context Protocol integration
Use it for
- Feeding entire codebase context to large language models
- Conducting bug investigations with full repository access
- Generating documentation from existing codebases
- Creating knowledge datapacks for LLM-powered Q and A systems
- Automating codebase packing in CI and CD workflows
Companions
Tools that articles about Repomix recommend using with it, each with its job.
- Context7 — Provides up-to-date documentation for AI agents and code editors.
- Ollama — Run local models at zero marginal cost, with code kept on your machine.
- OpenRouter — Access over 500 models and 80 providers through one unified API.
- Daytona — Runs sessions in isolated sandboxes synced to git branches.
- Composio — Equips AI agents with tools, managed user auth, and sandboxes across 1,500+ apps
- Oh My OpenCode Slim — Lightweight multi-agent orchestration and background tasks.
Alternatives to Repomix
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Repotruck — Bulk-clones and organizes GitHub repos with a single command.
- README AI — Automates documentation creation from codebases with custom styles.
- OpenCode — Works with 75+ model providers, local models, and existing subscriptions
- CodeGraph — It eliminates file crawling, reducing AI agent tool calls by 88% and cutting costs.
- uithub — Provides immediate full repository context for LLMs by changing one URL letter.
- Maige — Automates GitHub issue management and code reviews using natural language rules.
- Oracle — Provides a single entry point for multiple pro AI agents and session management.
- Entire CLI — Mirrors Git repositories globally to increase cloning speeds for AI agents.
- Git AI — It moves work to the server and handles concurrent tasks without standard Git bottlenecks.
- Memorax Code — Carry project architecture and verified engineering decisions across coding sessions.
- Shim — It offers zero runtime dependencies, no telemetry, and a static binary.
All Repomix alternatives