coco-research/coco/brain-rescan
Claude Code and agent skill by coco-research/coco
- community
Checking that the SKILL.md file is still in the repository.
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).
Install
npx vskill@latest install coco-research/coco/brain-rescanSKILL.md
/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
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:
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."
Step 3: Present extraction summary
Ask: "Write to brain? [Y/n/adjust]"
Step 4: Execute writes and update manifest
Same write order as /brain-init Step 6:
- Entities (upsert)
- Relationships
- Decisions (dedup check)
- Events (dedup check)
- Document entities (upsert)
After all writes, sync to MemPalace and brain.json:
Then update the manifest:
Step 5: Report
When to use /brain-rescan vs /brain-update
| Scenario | Use | |
|---|---|---|
| End of conversation session | /brain-update (extracts from conversation) | |
| New files added to project folder | /brain-rescan (extracts from files) | |
| Updated CLAUDE.local.md | /brain-rescan | |
| First time in a project with existing brain | /brain-init (handles both init + scan) | |
| Periodic refresh | /brain-rescan |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsystems/brain/skills/brain-rescan/SKILL.md
Popularity
- Repository stars
- 427
- Repository forks
- 12
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/coco-research/coco/brain-rescan)