coco-research/coco/brain
Claude Code and agent skill by coco-research/coco
- community
Checking that the SKILL.md file is still in the repository.
Use when the user says brain, project knowledge, what do we know about, open tasks, or recent decisions, or runs /brain or /brain-update. SQLite project_brain.db tracker for entities, relationships, tasks, threads, decisions, events.
Install
npx vskill@latest install coco-research/coco/brainSKILL.md
/brain --- Project Knowledge Tracker
A structured SQLite database (project_brain.db) that lives in each project folder, replacing flat markdown memory files with queryable, relational knowledge.
Quick Reference
/brain:update --- End-of-Session Flush
This is the most important command. When the user runs /brain:update, Claude MUST do a thorough review of the entire conversation and write everything learned to the brain DB. This is a forcing function --- do not skip anything.
Procedure
- Scan the full conversation from top to bottom. For each project in the brain DB, extract:
New entities --- any person, team, role, system, or module mentioned for the first time New relationships --- any connection between entities discovered (X owns Y, A reports to B, etc.) New decisions --- anything that was decided, agreed, confirmed, or resolved New events --- meetings, calls, emails read, milestones hit New tasks --- action items, to-dos, next steps, follow-ups Task updates --- tasks that changed status (done, blocked, in_progress) Entity updates --- new info about existing entities (role change, new metadata)
- Present a summary table to the user showing what will be written:
`` BRAIN UPDATE SUMMARY ==================== New entities: 3 (Alice Chen, Bob Kumar, ...) New decisions: 2 (Use Stakeholder role, Sandbox all-or-nothing) New events: 1 (Charlie CSM call Apr 8) New tasks: 4 (Get reviewer details, Get sandbox access, ...) Task updates: 2 (task #3 -> blocked, task #5 -> blocked) New relationships: 1 (Alice administers Platform) Entity updates: 1 (Charlie Sohn: added CSM role metadata) ``
- Wait for user confirmation ("looks good" / "y" / adjustments)
- Execute all writes via Python operations and report counts.
When to prompt the user
If the conversation has been long (>10 exchanges) and the user hasn't run /brain:update, gently suggest it:
"We've covered a lot this session. Want me to run/brain:updateto capture everything before we wrap?"
Do NOT auto-run it. Always wait for the user to invoke or confirm.
Behavior Rules
Auto-write (no confirmation needed)
- Entity sync from your custom MCP (roles, teams, users)
- Changelog entries when entities are updated
- Task status updates
- Event logging from emails and meetings
Confirm-write (propose to user first)
- New decisions
- New relationships between entities
- Deleting or archiving entities
Semi-auto (extract and confirm)
- After reading emails: propose entities, events, tasks to add
- After meeting notes: propose decisions, action items, new stakeholders
DB Location
Each project folder gets its own project_brain.db:
CoCo aggregates across all known DBs at session start.
Memory Architecture
The brain DB is the source of truth for all project knowledge. It syncs to two other stores:
| Store | Backend | What syncs | Why | |
|---|---|---|---|---|
| MemPalace | ChromaDB (~/.mempalace/palace) | Entities, decisions, events → drawers | Semantic search across projects | |
| brain.json | JSON (~/.coco/brain.json) | Person entities → people section | CoCo people graph, attention rules |
Sync happens automatically at end of /brain-update, /brain-init, and /brain-rescan via brain.memory_bridge.full_sync().
Write path: Always write to brain DB first → sync propagates to other stores. Read path: Use Memory Bus (memory_search) for cross-store federated queries, or brain CLI for structured queries.
Schema (v1)
11 tables: projects, entities, relationships, tasks, threads, thread_items, decisions, events, changelog, tags, taggables
Entity types: person, team, role, system, module, org_unit, document Relationship types: member_of, owns, administers, reports_to, depends_on, blocks, scoped_to, created_by Task statuses: open, in_progress, blocked, waiting, done, cancelled Thread categories: feature, incident, request, decision, research Event types: meeting, email, call, milestone, deploy
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/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)