Repomix turns a repository into a single AI-friendly file, and it does that well. But a code dump tells Claude what your code IS — not how you work, what you have already ruled out, or the conventions you expect it to follow. Brainfile is the maintained context layer that answers those, every session, without re-pasting anything.
Repomix: an open-source CLI that packs a repository into one AI-friendly file (XML, Markdown or plain text), with ignore rules and token counting. You run it, you get a dump, you paste or attach it.
Brainfile: a library of maintained CLAUDE.md configurations — structured role and project context that Claude Code reads automatically from your project root, updated as Claude evolves.
These are not the same job. Repomix answers 'what is in this codebase?' Brainfile answers 'how should you behave in this codebase?' Most people who need one eventually need the other.
| Feature | Repomix | Brainfile |
|---|---|---|
| What it puts in context | Your source files, packed and token-counted | Role, conventions, constraints and decisions — the part code does not state |
| Persistence across sessions | None — each run is a fresh snapshot you re-attach | Read automatically from CLAUDE.md on every session |
| Keeps up with code changes | Re-run the pack after every meaningful change | Context is about how you work, so it changes far less often |
| Context window pressure | A whole-repo dump competes with your actual conversation | A focused file — kept deliberately small |
| Written for you | Blank slate — it packs what exists, it does not author guidance | Expert-authored configurations you customize, not a blank page |
| Maintenance | You own the config and re-run it | Configurations updated as Claude's behavior changes |
| Cost | Free and open source | Paid subscription — see the pricing page for current plans |
| Transparency | You can read the packed file | Plain markdown you read, edit and version-control |
You need the model to see a whole codebase at once — an audit, a migration, a one-time architectural review. Repomix is free, open source and good at exactly that. Nothing here replaces it.
You work in the same project repeatedly and are tired of re-explaining your conventions, your stack decisions and the things you have already ruled out. You want that in the file Claude reads on its own, every session.
This is the common case, and we would rather say so than pretend otherwise. Use Repomix when you need a full code dump for a specific task; keep a CLAUDE.md so the standing context is already there when you do. Start with the 3 free configurations and see whether the persistent half is worth paying for.
Repomix's model is the snapshot: at this moment, here is the repository, flattened and counted. It is accurate, it is reproducible, and it is stale the moment you commit again. That is the correct design for the job it does.
Brainfile's model is the standing instruction: here is who I am, how this project works, and what I never want you to do. Claude Code reads it from disk automatically. It does not need re-attaching, it does not expire when the code changes, and you can read every word of it.
Production-ready CLAUDE.md configurations, updated as Claude evolves. Works with the Claude subscription you already have.
30-day money-back guarantee · Instant access · Cancel anytime
AI context engineering tips and new configuration releases. Free.
No spam. Unsubscribe anytime.