multi-brain
Skill13 starsChanged 5 months agoMITView on GitHub
This skill should be used when work needs to be shared or remembered across Claude Code, OpenCode, Codex, or other agents through a two-level memory index in `.multibrain/session.md`, named sub-index files in `.multibrain/indexes/`, and selective deep context files in `.multibrain/context/`.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- GerardoRdz96/aios-starter-kittheir own version, first seen Jul 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- GerardoRdz96/aios-starter-kit★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- 9router-chatSkill
- 9router-embeddingsSkill
- 9router-imageSkill
- 9routerSkill
- 9router-sttSkill
- 9router-ttsSkill
- 9router-web-fetchSkill
- 9router-web-searchSkill
- using-superpowersSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
47 rules. About 0 are common, 33 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈33
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when any task should leave behind resumable context for another agent or tool, especially when switching between Claude …
- Distinctive: line 18
Leave a breadcrumb trail before ending a session
- Distinctive: line 23
Do not use this skill for one-off throwaway tasks when no follow-up context is needed.
- Distinctive: line 29
When the user asks to initialize Multi Brain, treat the request as a bootstrap operation for the current repository.
- Very specific: line 32
Create .multibrain/session.md if missing
- Very specific: line 35
Create at least one starter bucket such as .multibrain/indexes/agents.md
- Distinctive: line 37
Update existing root instruction files non-destructively so they direct future agents to read Multi Brain first
- Distinctive: line 39
Do not delete existing root instructions.
- Very specific: line 43
Read .multibrain/session.md before starting work.
- Very specific: line 45
Treat session.md as a master index only:
- Distinctive: line 46
Read bucket names and short scope descriptions
- Distinctive: line 48
Do not assume every bucket or pointed file must be opened
- Very specific: line 50
If .multibrain/session.md does not exist, create:
- Very specific: line 55
Use the template in assets/session-template.md when bootstrapping the folder.
- Distinctive: line 57
When root instruction files exist:
- Distinctive: line 58
Read them before editing
- Distinctive: line 59
Add a short Multi Brain section near the top or in the mandatory startup section
- Distinctive: line 64
When root instruction files do not exist:
- Distinctive: line 65
Create AGENTS.md with minimal Multi Brain bootstrap guidance
- Distinctive: line 66
Create CLAUDE.md only when that file pattern is already part of the repo convention or the user explicitly wants it
- Distinctive: line 72
Prefer this decision rule:
- Very specific: line 73
Read only session.md when the task is unrelated to prior work
- Distinctive: line 74
Read one or two named sub-index files when the task clearly matches their scope
- Distinctive: line 75
Read one or more context files only when the chosen sub-index points to details that matter
- Distinctive: line 77
Keep the memory nested:
- Very specific: line 86
After completing meaningful work, add one concise entry to the most relevant file in .multibrain/indexes/.
- Distinctive: line 88
Keep each sub-index entry short:
- Distinctive: line 93
Keep newest entries at the top
- Distinctive: line 95
Do not write full explanations in a sub-index file.
- Distinctive: line 98
Add a new named bucket entry when creating a new bucket
- Distinctive: line 100
Keep master index descriptions short and stable
- Very specific: line 106
Write a new markdown file in .multibrain/context/ when the work contains details worth preserving for future agents.
- Very specific: line 118
Use the template in assets/context-template.md when helpful.
- Distinctive: line 122
Keep each named sub-index bounded.
- Distinctive: line 124
When a bucket grows beyond the cap:
- Distinctive: line 128
Keep the active bucket readable in under a minute
- Distinctive: line 130
Prefer summarizing and compressing over deleting raw history without replacement.
- Distinctive: line 134
Follow these rules consistently:
- Very specific: line 135
Keep session.md human-scannable in under a minute
- Very specific: line 136
Treat session.md as an index of indexes, not the main work log
- Distinctive: line 137
Keep named sub-index entries newest-first
- Distinctive: line 138
Use short, stable bucket names
- Distinctive: line 139
Use relative repository paths in pointers when possible
- Very specific: line 140
Prefer filenames such as YYYY-MM-DD-HHMM-agent-topic.md
- Distinctive: line 141
Use markdown only; no JSON, YAML, or verbose logs in indexes
- Distinctive: line 143
Update root instruction files by insertion or merge, never by destructive replacement unless the user explicitly asks for a rewrite
- Very specific: line 161
Read references/memory-layout.md for the recommended nested indexing structure.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Multi Brain
Overview
Enable shared working memory across multiple coding agents without forcing every agent to read every detail. Keep .multibrain/session.md as a small master index, store task-oriented entry lists in .multibrain/indexes/, and store fuller context only in pointed markdown files inside .multibrain/context/.
Use This Skill
Use this skill when any task should leave behind resumable context for another agent or tool, especially when switching between Claude Code, OpenCode, Codex, or long-running sessions.
Typical triggers:
- Continue work started by another agent
- Leave a breadcrumb trail before ending a session
- Build long-term memory without bloating the main context window
- Share task progress across tools in the same repository
- Recall prior work by reading only the bucket that matches the current task
Do not use this skill for one-off throwaway tasks when no follow-up context is needed.
Workflow
0. Support multi brain init
When the user asks to initialize Multi Brain, treat the request as a bootstrap operation for the current repository.
During multi brain init:
- Create
.multibrain/session.mdif missing - Create
.multibrain/indexes/if missing - Create
.multibrain/context/if missing - Create at least one starter bucket such as
.multibrain/indexes/agents.md - Inspect root-level agent instruction files such as
AGENTS.mdandCLAUDE.md - Update existing root instruction files non-destructively so they direct future agents to read Multi Brain first
Do not delete existing root instructions. Preserve repo-specific rules and append or merge Multi Brain guidance into the existing files.
1. Read The Master Index First
Read .multibrain/session.md before starting work.
Treat session.md as a master index only:
- Read bucket names and short scope descriptions
- Choose the most relevant bucket for the current task
- Do not assume every bucket or pointed file must be opened
If .multibrain/session.md does not exist, create:
.multibrain/session.md.multibrain/indexes/.multibrain/context/
Use the template in assets/session-template.md when bootstrapping the folder. Use assets/sub-index-template.md when creating a new named bucket.
When root instruction files exist:
- Read them before editing
- Add a short Multi Brain section near the top or in the mandatory startup section
- Instruct agents to read
.multibrain/session.mdfirst - Instruct agents to open pointed
.multibrain/indexes/*.mdfiles selectively - Instruct agents to append new memory after meaningful work
When root instruction files do not exist:
- Create
AGENTS.mdwith minimal Multi Brain bootstrap guidance - Create
CLAUDE.mdonly when that file pattern is already part of the repo convention or the user explicitly wants it
2. Follow The Relevant Named Bucket
Open the most relevant file under .multibrain/indexes/ based on the task being worked on. Use named buckets such as auth.md, deploy.md, ui.md, agents.md, or other concise task-oriented names.
Prefer this decision rule:
- Read only
session.mdwhen the task is unrelated to prior work - Read one or two named sub-index files when the task clearly matches their scope
- Read one or more context files only when the chosen sub-index points to details that matter
Keep the memory nested:
session.mdstays short.multibrain/indexes/*.mdstores concise task entries for a named area- Full reasoning, decisions, blockers, changed files, and follow-up notes go in pointed context files
Detailed structure guidance lives in references/memory-layout.md.
3. Write Into The Right Named Bucket After Work
After completing meaningful work, add one concise entry to the most relevant file in .multibrain/indexes/.
Keep each sub-index entry short:
- Include timestamp
- Include agent name
- Include a short description of what was done
- Include a pointer using
->to the full context file - Keep newest entries at the top
Do not write full explanations in a sub-index file.
Then update .multibrain/session.md only as needed:
- Add a new named bucket entry when creating a new bucket
- Refresh
last_updatedor short summary for an existing bucket - Keep master index descriptions short and stable
For initialization work, prefer creating or updating an agents bucket first so later agent-behavior decisions have a stable home.
4. Write A Full Context File Only When Useful
Write a new markdown file in .multibrain/context/ when the work contains details worth preserving for future agents.
Include only information that improves handoff quality:
- Goal
- What was changed
- Important decisions
- Files touched
- Commands or verification that mattered
- Known follow-up items
Skip a deep context file only when the task is truly trivial and the short index entry is enough.
Use the template in assets/context-template.md when helpful.
5. Maintain Bucket Size With Summaries
Keep each named sub-index bounded. Prefer a soft cap such as 25 entries per file.
When a bucket grows beyond the cap:
- Summarize older entries into a compact note under
.multibrain/context/or.multibrain/memory/ - Replace many old entries with one compressed summary entry when appropriate
- Preserve pointers to any context files that still matter
- Keep the active bucket readable in under a minute
Prefer summarizing and compressing over deleting raw history without replacement.
Format Rules
Follow these rules consistently:
- Keep
session.mdhuman-scannable in under a minute - Treat
session.mdas an index of indexes, not the main work log - Keep named sub-index entries newest-first
- Use short, stable bucket names
- Use relative repository paths in pointers when possible
- Prefer filenames such as
YYYY-MM-DD-HHMM-agent-topic.md - Use markdown only; no JSON, YAML, or verbose logs in indexes
- Record facts, not stream-of-consciousness notes
- Update root instruction files by insertion or merge, never by destructive replacement unless the user explicitly asks for a rewrite
Entry Examples
Master index entry:
- `agents` — shared notes for agent workflows, prompts, and skill behavior. Last updated: 2026-05-11 17:35 WIB -> .multibrain/indexes/agents.mdNamed sub-index entry:
- 2026-05-12 09:10 WIB — Claude Code: fixed the login page and form validation -> .multibrain/context/2026-05-12-0910-claude-login-page.mdResources
- Read
references/memory-layout.mdfor the recommended nested indexing structure. - Copy from
assets/session-template.mdwhen creating a new.multibrain/session.md. - Copy from
assets/sub-index-template.mdwhen creating a new named sub-index file. - Copy from
assets/context-template.mdwhen creating a new full context note. - Reuse
assets/agents-snippet.mdandassets/claude-snippet.mdwhen inserting Multi Brain startup guidance into root instruction files.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

