multi-agent-room
Skill105 starsChanged 4 months agoMITView on GitHub
Orchestrate a team of named subagents in shared threads. One orchestrator drives multiple peers with distinct identities; each subagent sees its own inbox and can cross-check findings by posting to a thread the peer is a member of.
In this repository10 other files it gives its agents.
- llms.txtllms.txt
- basemind-cliSkill
- basemind-code-searchSkill
- basemind-commsSkill
- basemind-doctorSkill
- basemind-documentsSkill
- basemind-git-historySkill
- basemind-scanSkill
- basemindSkill
- basemind-statsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Run a team of NAMED subagents that coordinate in shared THREADS, all driven by one orchestrator.
- Very specific: line 43
Call agents {mode: "join", thread: "review-pr-42", as_agent: "security"} to participate.
- Very specific: line 44
Call agents mode post with as_agent: "security" to share findings.
- Very specific: line 45
Call agents mode inbox with as_agent: "security" to see addressed messages.
- Very specific: line 65
Read the shared thread: agents {mode: "history", thread: "review-pr-42"} (front-matter only).
- Very specific: line 67
Read each subagent's inbox with agents mode inbox and its as_agent identity.
- Very specific: line 148
Every front-matter row carries age_secs (seconds since the message was posted) so you can gauge staleness without converting timestamps …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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-agent thread orchestration
Run a team of NAMED subagents that coordinate in shared THREADS, all driven by one orchestrator. Each subagent has its own identity and inbox, and posts to threads the relevant peers are members of.
When to use it
Orchestrate subagents when:
- Multiple reviewers need to see each other's work (code review, audit, cross-validation).
- A subagent should hand off findings to a peer for verification.
- The team needs a shared narrative (all readable in one thread history).
- You want to parallelize independent work (each agent runs concurrently) and then synthesize.
Setup
Start a thread and name its members. A thread is addressed by at least two of three coordinates —
{subject, path-glob, members}. For a private team, list the members explicitly so only they see it; discovery is scoped, never global, so unrelated agents never surface it.agents {mode: "thread_start", subject: "review-pr-42", members: ["security", "perf"]}- Assign each subagent a short name. Pass
as_agentto every tool call the subagent makes. Names like"security","perf","correctness"are clearer than defaults. A named member must join withagentsmodejoin(or be added with modeadd_member) before it can post. - Distribute the subagent contract. Each subagent's prompt should include:
- Its assigned
as_agentname (e.g."security"). - The shared thread's subject (e.g.
"review-pr-42"). - Instructions to:
- Call
agents {mode: "register", as_agent: "security", name: "Security Reviewer", …}once. - Call
agents {mode: "join", thread: "review-pr-42", as_agent: "security"}to participate. - Call
agentsmodepostwithas_agent: "security"to share findings. - Call
agentsmodeinboxwithas_agent: "security"to see addressed messages.
- Call
- Its assigned
Broadcast vs targeted hand-off
- Thread post (
agentsmodepost+as_agent): everyone on the thread sees it. Use for:- Announcing a finding the whole team should see.
- Replying to a peer's discovery (
reply_to: <id>keeps it linked). - Summarizing your work.
- Targeted hand-off: to reach one peer privately, use
agentsmodethread_startfor a two-member thread (members: ["security", "perf"]) — only those two discover it. Use for:- Asking a peer to cross-check your finding.
- Sharing a detail not ready for the whole team.
- Hand-off:
"I found X; can you validate my approach?".
Reading and synthesis
As the orchestrator:
- Let all subagents post to their threads (in parallel).
- Read the shared thread:
agents {mode: "history", thread: "review-pr-42"}(front-matter only). - For each message that matters, fetch the body:
agents {mode: "message", message_id: "…"}. - Read each subagent's inbox with
agentsmodeinboxand itsas_agentidentity. (Messages appear as front-matter; bodies come from modemessage.) - Synthesize: combine the findings into a verdict, decision, or report.
Example: two-agent security + performance cross-check
Orchestrator setup:
agents {mode: "thread_start", subject: "review-auth-pr", members: ["security", "perf"]}
# Spawn agent "security"
# Prompt: "You are agent 'security' on thread 'review-auth-pr'. Register yourself,
# join the thread, analyze the diff for auth bugs, post findings, and start a
# two-member thread with 'perf' asking them to check your fix's perf implications."
# Spawn agent "perf"
# Prompt: "You are agent 'perf' on thread 'review-auth-pr'. Register yourself,
# join the thread, analyze the diff for performance regressions, post findings, and
# reply to 'security' with your take on their auth fix."Agent "security" steps:
agents {
mode: "register", as_agent: "security", name: "Security Reviewer", description: "Auth auditor"
}
agents {mode: "join", thread: "review-auth-pr", as_agent: "security"}
agents {
mode: "post", thread: "review-auth-pr", as_agent: "security", subject: "SQL injection check",
body: "Parameter X is quoted..."
}
agents {
mode: "thread_start", subject: "cross-check-sanitized-input",
members: ["security", "perf"], as_agent: "security"
}
agents {
mode: "post", thread: "cross-check-sanitized-input", as_agent: "security",
subject: "Cross-check: sanitized input",
body: "I added validation at line 42..."
}
agents {mode: "inbox", as_agent: "security", mark_read: true} # See perf's responseAgent "perf" steps:
agents {
mode: "register", as_agent: "perf", name: "Performance Reviewer", description: "Latency auditor"
}
agents {mode: "join", thread: "review-auth-pr", as_agent: "perf"}
agents {
mode: "post", thread: "review-auth-pr", as_agent: "perf", subject: "Cache impact check",
body: "New validation adds ~2ms..."
}
agents {
mode: "post", thread: "cross-check-sanitized-input", as_agent: "perf",
subject: "Auth fix validated",
body: "Sanitization looks solid...", reply_to: "msg-sec-2"
}Orchestrator synthesis:
agents {mode: "history", thread: "review-auth-pr"} # See front matter
agents {mode: "message", message_id: "msg-sec-1"} # Get security's body
agents {mode: "message", message_id: "msg-perf-1"} # Get perf's body
agents {mode: "history", thread: "cross-check-sanitized-input"}
agents {mode: "message", message_id: "msg-perf-2"} # Get perf's hand-off body
# Synthesize: "Security + perf sign off. Ready to merge."Recency and thread freshness
Reads default to RECENT so stale chatter never confuses an agent:
agentsmodeshistory/inboxreturn only the last 24 hours by default. Passsince_hours: Nfor a wider window, orsince_hours: 0for the full append-only log. Nothing is ever deleted — older history stays reachable explicitly.- Every front-matter row carries
age_secs(seconds since the message was posted) so you can gauge staleness without converting timestamps yourself. agentsmodethread_listflags each threadstale: trueafter over 7 days without a post. The CLI renders this as anACTIVE/STALEmarker per thread. Idle threads auto-archive; skip stale ones unless you are intentionally reviewing old context.
Notes
- A named member must join with
agentsmodejoin(or be added withadd_member) before posting. - A private two-member thread reaches exactly one peer — only its members discover it.
- Front-matter-only reads (history, inbox) are cheap. Fetch bodies only when needed.
- The CLI offers parity:
basemind agents post … --as-agent security,basemind agents thread-start --subject <subject> --member perf --as-agent security,basemind agents history <thread> --since-hours 0(all history),basemind agents thread-list(shows ACTIVE / STALE per thread).
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.

