Skip to content
ML2

Repomix: pack a repo into one AI-ready file

Added New⧉ Copyable prompt below

Our verdict

The quickest way to give a chat model a whole codebase, for a review, an explainer or a migration plan. It respects .gitignore, drops files that look like credentials, and can compress code to cut tokens. For large repos, compress and include only what matters; a huge dump still dilutes the model's attention.

Who it's for
Anyone pasting code into ChatGPT, Claude or Gemini, and agents that need another repo's context
Leverage
Whole-repo context in one paste
Effort
Low
Date added

What it does

Repomix packs a repository into a single AI-friendly file (repomix-output.xml by default) with per-file and total token counts. It is git-aware, uses Secretlint to leave out files matching credential formats, can pack remote repos with --remote, compresses code with Tree-sitter via --compress, runs as an MCP server with --mcp, and can generate Claude Agent Skills with --skill-generate. There is also a website, browser extension and VS Code extension.

How builders use it

  • Run npx repomix@latest in a project and attach repomix-output.xml to a chat.
  • Pack a library you depend on with repomix --remote owner/repo --compress to ask how it works.
  • Exclude noise with --ignore "**/*.log,tmp/".
  • Run repomix --mcp so an agent can pack codebases itself.

What to expect

Codebase-level answers from a chat model without setting up an agent.

Copy this: Pack + ask

npx repomix@latest --compress --ignore "**/*.test.ts,dist/"

Then attach repomix-output.xml and ask:
Using the attached repository, explain the architecture in 10 bullets, list the 5 riskiest files and why, and propose a step-by-step plan for <change>. Cite file paths.

Related discoveries

  • ToolSmall Tools, Repos & Plugins

    Serena: IDE-style code tools for your agent over MCP

    An MCP server that gives coding agents symbol-level search, editing and refactoring backed by language servers.

    NewEffort: Medium⧉ Prompt#GitHub repo#Plugin / extension

  • ToolSmall Tools, Repos & Plugins

    UI UX Pro Max: a design skill for coding agents

    An MIT-licensed skill that gives Claude Code, Cursor and other agents a design-system generator and UI guidance.

    NewEffort: Low⧉ Prompt#GitHub repo#Plugin / extension

  • ToolCoding & Shipping Agents

    goose

    An open-source agent with a desktop app, CLI and API that runs locally and works with 15+ model providers.

    NewEffort: Low#GitHub repo#Local / BYO model

Want more like this?

Practical discoveries, without the noise.