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-rescangit 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-rescan)<a href="https://agentmods.dev/skills/coco-research/coco/brain-rescan"><img src="https://agentmods.dev/badge/skills/coco-research/coco/brain-rescan/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-rescan"><img src="https://agentmods.dev/badge/skills/coco-research/coco/brain-rescan.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.00058 | $0.00984 |
| Opus 5.5 | $0.00023 | $0.00394 |
| Sonnet 5.5 | $0.00012 | $0.00197 |
| Haiku 4.5 | $0.00006 | $0.00098 |
Grade A, and why
brain:rescan 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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/brain:rescan --- Incremental Knowledge Rescan
Detects what changed since the last scan and updates the brain DB with new knowledge.
Prerequisites
project_brain.dbmust exist in the project folder (or parent). If not found, tell the user: "No brain DB found. Run/brain-initfirst."- At least one project must exist in the DB.
Procedure
Step 1: Run the scanner
python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py scan
Check the output:
- If
is_first_scan: true→ this folder was never scanned. Tell the user and proceed with full scan. - If
new_files: 0andchanged_files: 0→ "Everything up to date. No changes since last scan ({last_scan})." → done. - Otherwise, show the delta:
RESCAN DELTA
============
Last scan: {last_scan}
New files: N
Changed files: N
Removed files: N
Unchanged: N
New/changed files:
+ docs/NewDoc.html (new)
~ CLAUDE.local.md (changed)
+ emails/Latest_Thread.txt (new)
Knowledge sources:
CLAUDE.local.md: found / not found (changed: yes/no)
Memory files: N files (N new/changed)
Documents: N new, N changed
Emails: N new, N changed
Step 2: Process only new/changed files
Follow the same extraction logic as /brain-init Step 4, but only for files in the delta:
If CLAUDE.local.md is new or changed:
- Re-read and extract entities, decisions, events
- Use
upsert_entityso existing entities get updated rather than duplicated - For decisions: check existing decisions in DB, only add genuinely new ones (compare decision text)
If memory files are new or changed:
- Read only the new/changed memory files
- Extract project decisions, system references
For new/changed documents and emails:
- Register as
documententities viaupsert_entity - Metadata includes path, type, size
For removed files:
- Do NOT auto-delete entities. Just report: "N files removed since last scan. Their brain entities are preserved — delete manually if needed."
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 · -4 tokens per session 00f1df4be097
- 2mo ago First seen · 130 lines · 62 tokens per session scan A 420165df46c3
brain:rescan is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 58 tokens to every session and 984 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:rescan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| brain:rescancoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 58 | 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 |