Borrowing it
Nothing to install: this file belongs to aidemd-mcp/server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/aidemd-mcp/server/main/.claude/commands/aide/brain.mdgit clone --depth 1 https://github.com/aidemd-mcp/serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/aidemd-mcp/server/brain)<a href="https://agentmods.dev/commands/aidemd-mcp/server/brain"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/brain/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/aidemd-mcp/server/brain"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.04372 |
| Opus 5.5 | $0.00000 | $0.01749 |
| Sonnet 5.5 | $0.00000 | $0.00874 |
| Haiku 4.5 | $0.00000 | $0.00437 |
Grade A, and why
brain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/aide:brain — Brain Interface
General-purpose interface to the project's brain, plus a config mode that creates, repairs and wires the brain config (or repoints it at a different location).
The brain is backend-agnostic: it might be Obsidian today and something else tomorrow. The aide_brain MCP tool is the single source of truth for which MCP tools to call to reach this project's brain — never hardcode a backend tool name.
Modes
$ARGUMENTS controls which mode runs:
config(orconfig <path>) — create, repair, validate and wire the brain config. Use this when/aidereports the brain config is missing, invalid or not wired yet, or when you want to point at a different location.- Anything else (or no arguments) — general brain interaction. Reach the brain via
aide_brain, follow the entry-point file's navigation rules, and fulfill the user's request (search the brain, save findings, look up research, etc.).
Mode 1: General Brain Interaction (default)
When $ARGUMENTS is empty or anything other than config, treat the call as a general brain query.
Step 1 — Reach the brain via aide_brain
Call the aide_brain MCP tool. It returns ready-to-execute prose naming the exact MCP read tool wired to this project's brain and the path to the brain's entry-point file (the brain's CLAUDE.md). Execute those instructions verbatim — do not substitute a different read tool, do not invent a path.
That entry-point file is the single source of truth for brain structure — crawling protocol, decision protocol, and a where-to-find-things table. Read it before doing anything else.
Step 2 — Follow the navigation instructions
Execute the navigation steps the brain's entry-point file provides to find the content relevant to the user's request. Do not supplement, override, or paraphrase those rules — defer to them entirely. As you crawl, use whichever search/read tool names aide_brain named in Step 1.
Step 3 — Fulfill the user's request
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · -5 lines 1ecd5a5f583b
- 3d ago Changed · +7 lines 1e7a2bdf494b
- 19d ago Changed · -21 lines f036682372fd
- 20d ago Changed · +87 lines a6087f17fa5f
- 2mo ago First seen · 102 lines · 0 tokens per session scan A 0f07f93b4e65
brain is a command published in the GitHub repository aidemd-mcp/server (4 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,372 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
rb-refresh
A command that rebuilds RepoBrain's knowledge base for the current workspace. RepoBrain is a tool that keeps searchable project information for an agent.
init-workspace-flow-context
Phase 1 Context of init-workspace-flow.
init-workspace-flow
Workflow for initializing or upgrading a workspace: context, discovery, documentation, etc.
init-workspace-flow-discovery
Phase 3 Discovery of init-workspace-flow.
consolidate
Dream cycle -- promote patterns, prune stale, reconcile contradictions, optionally promote to global.
init-workspace-flow-codegraph
Phase 6 Code-graph of init-workspace-flow.