What we built
The brain lives in git. Every session inherits it.
/team-brain:init lays down a small set of plain files without overwriting anything the team already has. CLAUDE.md imports them, so they are in context from the first prompt; AGENTS.md carries the same rules to Copilot, Cursor and Codex. Hooks enforce the parts that matter, and three skills feed what the team learns back into git.
FILEintent/project-intent.md
Why the system exists, who owns it, the primary tradeoff and what it deliberately does not do.
Changed by the ownerChecked Purpose and Owner present
Never invented by the AI; unknowns are marked TODO(owner)
FILEbrain/constraints.md
Rules the team actually agreed on. Every bullet carries Why:. Exceptions are named, approved and time-bound.
Changed by pull requestChecked every rule traced, every exception approved
Never worked around silently
FILEbrain/decisions.md
Architecture decisions with what was gained, what was given up, what was rejected and how to roll back.
Changed by /team-brain:decideChecked cost and rejected alternative present
A decision with no cost is rejected by CI
FILEbrain/lessons.md
One-line corrections the team does not want to repeat, each with where it came from.
Changed by /team-brain:rememberChecked warns past 60 lines
Never one developer’s personal preference
HOOKSGuards
Feature gate, sensitive paths, destructive commands, brain validation. Risk becomes an approval prompt, not a surprise.
Runs on every tool callDecides allow, ask, or (rarely) deny
Never blocks work because the hook itself failed
REVIEW/team-brain:review
An independent reviewer agent checks the change against intent, constraints, lessons, decisions and sensitive paths, not just the diff.
Reads the whole brain and the diffReturns ready / not ready, shortest fix list
Does not raise style the brain does not state
Run end to end on a fresh repository with the plugin installed from GitHub. Each step is reproducible.