brain

A signpost to an external shared knowledge store for durable information across projects and teams.

In plain words
What is it for?
Use it when a task needs shared context that is not available in the current codebase.
Why use it?
It keeps research, coding guidance, project history, and environment details from being trapped in one repository or conversation.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aidemd-mcp/server/brain
Any agent
npx skills add aidemd-mcp/server --skill brain
Clone the repo
git clone --depth 1 https://github.com/aidemd-mcp/server

Made for: Claude Code, Codex.

Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00145 $0.00723
Opus 5 $0.00072 $0.00362
Sonnet 5 $0.00029 $0.00145
Haiku 4.5 $0.00015 $0.00072

Measured 2d ago against content hash f972646bc478, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.claude/skills/brain/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

brain — Signpost to the Brain

Pointer skill. The brain interface lives in the /aide:brain slash command — this skill exists so any agent that needs brain access discovers it.


What the brain is

The brain is a knowledge store that lives external to the project and outside any single codebase. It can be a personal store for one developer or a shared store an entire team points at — when teammates wire their agents to the same brain, every member's agent reads and writes against the same playbook, research, project context, and conventions. That makes it the authoritative source for anything the team has agreed on or learned, and the place where new findings become reusable across projects and across people.

Typical contents: domain research, the coding playbook, project history and context, journal logs, environment config, identity, references. AIDE's research phase writes to it; the strategist and architect phases read from it; explorer agents draw on it for context the code doesn't carry. The brain is a logical surface — the underlying backend is an implementation detail the /aide:brain command abstracts.

When to invoke /aide:brain

Trigger when the current task needs knowledge that isn't in the working directory:

  • Unfamiliar domain. You're about to make a decision in a domain you have no loaded context for (e.g. cold email tactics, local SEO scoring, a vendor API quirk).
  • Shared context referenced. The user says "check the brain," "what does the team do for X," "we already researched this," or names a project / research area / convention without giving you the file.
  • Saving findings. You produced research, a decision, or a pattern the team will need again — synthesis the brain should own, not the repo.

What /aide:brain does

It discovers the brain's root navigation surface first — the brain owns its own structure and navigation rules — then follows those rules to find and return content (or write what it's been asked to save).

Read the full file on GitHub · 69 lines

Changes

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.

  1. 2d ago First seen · 69 lines · 145 tokens per session scan A f972646bc478

Subscribe to this mod's changes

brain is a skill published in the GitHub repository aidemd-mcp/server (3 stars, last pushed 3mo ago), licensed MIT. It adds 145 tokens to every session and 723 once invoked, about $0.0007 per session on Opus 5. 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.