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.
npx skills add coco-research/coco --skill brain-exportgit clone --depth 1 https://github.com/coco-research/cocoWrote 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/skills/coco-research/coco/brain-export)<a href="https://agentmods.dev/skills/coco-research/coco/brain-export"><img src="https://agentmods.dev/badge/skills/coco-research/coco/brain-export/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/skills/coco-research/coco/brain-export"><img src="https://agentmods.dev/badge/skills/coco-research/coco/brain-export.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.00049 | $0.01257 |
| Opus 5.5 | $0.00020 | $0.00503 |
| Sonnet 5.5 | $0.00010 | $0.00251 |
| Haiku 4.5 | $0.00005 | $0.00126 |
Grade A, and why
brain:export 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 2mo 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 — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/brain-export — CLAUDE.local.md Auto-Generator
Generates or refreshes the <!-- AUTO-GENERATED: brain-export --> section in the project's CLAUDE.local.md file from the brain SQLite DB. Protects all manually written content above and below the sentinels.
Quick Reference
BRAIN="python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py"
# Basic export (writes CLAUDE.local.md next to project_brain.db)
$BRAIN export <project-slug>
# Export with explicit output path
$BRAIN export <project-slug> --output /path/to/CLAUDE.local.md
# Export with explicit DB path
$BRAIN --db /path/to/project_brain.db export <project-slug>
Procedure
Step 1 — Verify brain DB exists
BRAIN="python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py"
$BRAIN info
If the DB is missing, tell the user to run /brain-init first.
Step 2 — Run the export
$BRAIN export <project-slug>
The exporter will:
- Read any existing
CLAUDE.local.mdat the output path - Preserve everything above
<!-- AUTO-GENERATED: brain-export --> - Preserve everything below
<!-- END AUTO-GENERATED --> - If no sentinels found, append the auto section at the bottom (safe first run)
- Regenerate the auto section from brain DB
- Write atomically (tmp file + rename)
Step 3 — Show the user what was generated
Parse the JSON output and display:
brain:export complete
─────────────────────────────────────────
Output: /path/to/CLAUDE.local.md
Project slug: <slug>
Auto section: ~NNN tokens (within 1,200 token budget: YES/NO)
Total file: ~NNN tokens
─────────────────────────────────────────
Sections generated:
- Project Identity (if ~/.mempalace/identity.txt exists)
- Last Session (most recent event + decision)
- Key People (up to 8 person entities)
- Key Systems (up to 8 system/module entities)
- Recent Decisions (last 4 decisions)
- Project Status (entity/decision/event counts + last sync date)
Step 4 — First-run: offer to migrate feedback memories
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.
- 2mo ago Changed · +2 tokens per session f02d3f75ee60
- 2mo ago First seen · 157 lines · 47 tokens per session scan A 6a235f842c7a
brain:export is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 1,257 once invoked, about $0.0002 per session on Opus 5.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-09-03.
brain:export compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| brain:exportcoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 49 | Claude Code, Codex |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 929 | 12d ago | MIT | A | 34 | Claude Code, Codex |
| handoffChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 14 | Claude Code, Codex |
| handoffdeepklarity/harness-kit | Skill | 108 | 20d ago | MIT | A | 50 | Claude Code |
| memory-curatorChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 20 | Claude Code, Codex |
| project-memoryqingye-lab/rootloom | Skill | 10 | yesterday | MIT | A | 47 | Codex |
| shared-memoryChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 16 | Claude Code, Codex |