Repomix is a popular open-source tool that packs an entire code repository into a single, AI-friendly file. When you need to feed a codebase to a large language model such as Claude, ChatGPT, DeepSeek, or Gemini, Repomix produces one clean text file that preserves the structure while stripping out the noise. It has collected over 28,000 stars on GitHub and was actively maintained in October 2026.
LLMs work much better when they can see your whole project at once, but copying dozens of files by hand is slow and error-prone. Repomix walks your repository, respects your ignore rules, compresses the content, and outputs a single file in plain text, XML, JSON, or Markdown. It counts tokens so you know whether the result fits your model’s context window, removes comments when you want a smaller output, and checks for sensitive data before you share anything. It also runs as an MCP server, so AI coding agents can pack repositories on demand.
Repomix is completely free and open source under the MIT license, whether you run it as a CLI, use the web version, or self-host it.
Repomix is for developers who use AI assistants to review, refactor, or debug real codebases. If you regularly paste code into chatbots and hit context limits or messy formatting, Repomix turns that chore into a single command.