Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ultishv0.5.0In 1 marketplace
Scaffolds and manages a structured project brain for AI agents in microservice repositories
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that gives every service repo a persistent, navigable knowledge structure for AI agents.
Each repo gets a local brain/ directory containing decisions, context,
architecture notes, and a memory file that agents read and write during sessions.
No infrastructure required — it's just Markdown files committed alongside the code.
When an agent opens a repo it sees the current code and nothing else. It has no idea why approach X was chosen over Y, which team owns the service, what the inter-service communication contracts are, or what was already tried and rejected. That context is lost between sessions and across engineers.
brain solves this by giving agents a structured place to find and record
institutional knowledge — and skills to keep it up to date automatically.
1. Install the plugin, then open a service repo and run:
/brain:init
Answer two questions (domain, status) and the full structure is scaffolded.
Fill in the ## Service block in README.md with real dependencies and endpoints.
Commit everything — the brain travels with the code.
2. Tell Claude about any decisions that already exist. If the repo has history,
spend five minutes in a session describing the key choices that were made. Then run
/brain:log and Claude will write them up as pending ADR stubs. Run /brain:adr
to formalise each one.
That's the setup. From here the workflow is lightweight.
You don't need to do anything. Claude loads CLAUDE.md automatically, which routes
it to brain/memory.md and the index files. It arrives with context.
Work normally. When you make a decision — choosing a library, settling on a pattern, agreeing a tradeoff — just say it out loud in the conversation. You don't need to stop and file anything. Claude is listening.
Before closing, run:
/brain:log
Claude scans the conversation, extracts decisions and learnings, writes pending ADR
stubs to brain/decisions/index.md, and appends notes to brain/memory.md. Review
what it wrote, commit it.
Pending ADR stubs are placeholders — one-liners in the index with a pending- prefix.
When you want a full record (context, reasoning, alternatives), run:
/brain:adr
Claude will see the pending stubs and offer to work through them. A full ADR takes about two minutes per decision.
You don't need to do this immediately. Stubs are useful on their own — they tell a future agent "a decision was made here, ask about it." Formalise when the decision is significant enough to warrant the detail.
/brain:log warns you when brain/memory.md exceeds the configured threshold
(default 50 entries). When that happens, run:
/brain:curate
Claude proposes what to deduplicate, merge, or promote to a proper context file. You confirm before anything is written. Takes a few minutes, keeps the file useful.
Install via the Claude Code marketplace or clone and point Claude Code at this directory as a local plugin.
| Command | What it does |
|---|---|
/brain:init | Scaffolds the full brain structure in the current repo |
/brain:adr | Creates a new Architecture Decision Record |
/brain:log | Reflects on the current session and persists learnings |
/brain:curate | Condenses and prunes brain/memory.md when it grows large |
brain:init createsyour-service/
├── CLAUDE.md # Auto-loaded; routes agents to brain files
├── README.md # Service identity (## Service section appended)
└── brain/
├── config.md # Plugin config (e.g. memory_warn_threshold)
├── memory.md # Agents append learnings here during sessions
├── decisions/
│ └── index.md # One-line summary per ADR; start here
└── context/
├── index.md # One-line summary per context file
├── overview.md # Purpose, responsibilities, boundaries
├── architecture.md # Components, data flow, storage
└── runbook.md # Deployment, config, common issues
If README.md already exists, brain:init appends a ## Service section
rather than overwriting it.
## Service
status: stable
domain: [[domain:payments]]
depends_on: []
# - [[svc:other-service]]
exposes: []
# - POST /path (REST)
events:
publishes: []
subscribes: []
see_also: []
# - [[adr:ADR-001]]
/brain:adr creates a numbered ADR file in brain/decisions/ and appends
a one-line summary row to the index. The index is what agents read first —
each row has enough context to decide whether to open the full file.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground