brain:rescan skillA
brain:rescan is agent-read markdown (skill) from coco-research/coco: Use when project files changed since the last brain scan, CLAUDE.local.md was updated, or a periodic refresh is due. Rescans incrementally, writes new entities, decisions, and documents; needs project_brain.db (run /brain-init first)..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# /brain:rescan --- Incremental Knowledge Rescan
Detects what changed since the last scan and updates the brain DB with new knowledge.
## Prerequisites
- `project_brain.db` must exist in the project folder (or parent). If not found, tell the user: "No brain DB found. Run `/brain-init` first."
- At least one project must exist in the DB.
## Procedure
### Step 1: Run the scanner
```bash
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: 0` and `changed_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
```
…Read the whole file at its exact version.
How to install
mdr add coco-research/coco/brain:rescan@git:20260914.e75f220mdr add coco-research/coco/brain:rescan@sha256:00f1df4be09783e3Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_phyifbabhhjlup2u)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260914.e75f220 latest | 2026-09-14 | e75f220 | 3,844 B | A | view · diff |
| git:20260426.d53cc6c | 2026-04-26 | d53cc6c | 3,870 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3844 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
coco-research/coco · 478 stars · license NOASSERTION · pushed 2026-09-25 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_phyifbabhhjlup2u GET https://markdownregistry.com/api/v1/resolve?ref=coco-research/coco/brain:rescan GET https://markdownregistry.com/api/v1/blob/00f1df4be09783e313f7215e38f1414ebd760ad584a33e2404d1d542237d7477
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.