Skip to content

About

Give your codebase a brain

Resources

Contributing

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

162 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-brain-toolkit 🧠

Claude Code Contributing License

Using a mini-brain with your codebase helps you iterate and triage faster, and gives Claude better context to make changes autonomously. This free toolkit provides agentic tools for creating and improving mini-brains.

What is a mini-brain?

A mini-brain only captures knowledge about your software project that can't be derived from code or commit history: what inspires the work, why decisions went one way and not another, what was tried and discarded, what was surprising. Normally these details live in your team's heads or are scattered across tickets, wikis, and project docs. A mini-brain curates these details so every Claude session understands the problem statement, the technical approach, the design tradeoffs, and the implementation decisions behind your codebase.

A project repo of code and tests, commit history, and tickets and PRs is always treated as ground truth; a separate mini-brain repo holds experimental results, findings, approach, and scope, loaded into sessions on demand by a hook

Using a mini-brain is just chatting with Claude. Your coding sessions are the raw material. At each natural stopping point, you'll be prompted to optionally save what the session decided and learned. There's nothing to file, no format to learn, and you never leave the repo you're working in. Even creating a new mini-brain is done by chatting with Claude.

Mini-brains are self-improving. On a schedule, a mini-brain dreams: verifying all claims against the codebase, pruning what's become derivable, and doing follow-on research. The brain stays small enough to read completely, and curious about what it doesn't know. Each dream cycle re-evaluates drift between the codebase, the mini-brain, and their surroundings.

Lifecycle: chat with Claude, optionally close out so Claude updates the brain with what was learned, which feeds the next session directly, while a scheduled dream cycle verifies, prunes, and distills the brain

Mini-brains are built for software teams. A mini-brain is just Markdown files in a dedicated git repo, alongside your regular project repos. Changes to a mini-brain are made through commits and PRs, reviewable like any other code. This knowledge belongs to the team, and teammates and AI agents all work from the same brain.

Why a mini-brain?

There are many good tools for giving AI agents memory and context: instruction files, production memory systems, knowledge-management patterns like ADRs and Zettelkasten. But most of them merely accumulate. Every interaction adds to the store, and it grows over time.

A mini-brain makes the opposite bet: store only what the code can't tell you, and shrink as knowledge becomes derivable. Experimental results, findings, approach, and scope stay. Anything the codebase or commit history can already answer gets pruned. The result is a small, high-trust store that an AI agent can load incrementally and a new teammate can read in minutes.

Chart: memory that only accumulates grows steadily, while a mini-brain shrinks at each work-item closeout and dream cycle and levels off

If you're curious about the design:

Creating a mini-brain

With this toolkit cloned alongside your project, paste this into a Claude session — works whether you're starting a new project or adding a mini-brain to an existing codebase:

Read ../mini-brain-toolkit/MBT_CREATE_BRAIN

This asks a few questions, generates seed files in a dedicated repo for the mini-brain, and hooks the brain into your project repos.

Improving a mini-brain

A new brain starts small — run this to see where it stands and what to add next as it matures:

Read ../mini-brain-toolkit/MBT_CHECK_BRAIN

This asks which brains to check, then walks you through the recommendations it finds.

About

Give your codebase a brain

Resources

Contributing

Stars

6 stars

Watchers

0 watching

Forks

Releases

Contributors