agentleFS
MustaphaStephMustaphaSteph/agent-bus-plugins/skills/agent-bus/SKILL.md

agent-bus

Skill1 starsChanged 6 months agoMITView on GitHub

Coordinate work across Claude/Codex/Cursor sessions on the same machine via a local message bus. Use to delegate to helpers, get a second opinion, ask specialists by capability, or track shared tasks.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

47 rules. 0 are common, 10 are distinctive, and 37 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 37

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If installed through agent-bus setup, MCP may launch via a version-pinned npx command instead of a global binary.

    line 23
  2. Very specific:

    If mcp__agent-bus__register is not in your available tools, the MCP server is not wired into this session.

    line 34
  3. Very specific:

    Call register with a stable name and a concrete team.

    line 44
  4. Very specific:

    If register returns scope_summary / suggested_next_actions, follow the teaser.

    line 54
  5. Very specific:

    Call directory if available, otherwise whois, and show the user who else is on the bus, with their capabilities, in one compact line: on …

    line 58
  6. Distinctive:

    If nobody else is registered, say so.

    line 62
  7. Very specific:

    Do NOT enter a listener loop.

    line 63
  8. Very specific:

    Ideas belong in backlog: Use state="backlog" for future ideas, deferred risks, and options discovered mid-session.

    line 145
  9. Very specific:

    If you wait twice and get no new message, stop blind polling.

    line 165
  10. Distinctive:

    When a reply lands, render it in plain English for the user.

    line 195
  11. Very specific:

    Do not leave the user staring at a silent bus wait.

    line 200
  12. Distinctive:

    Before waiting, say who or what you are waiting on in one short line.

    line 204
  13. Very specific:

    When the answer or task evidence arrives, immediately say: Got <source>'s answer: <one-line summary>.

    line 205
  14. Distinctive:

    After receiving the needed answer, stop waiting on the bus.

    line 207
  15. Very specific:

    If the wait times out but diagnostics show the task is still active, say that clearly: No reply yet, but task #N is still active.

    line 210
  16. Very specific:

    Do not chain repeated inbox, inbox_status, message_status, or why_no_reply calls just because one bus interaction completed.

    line 213
  17. Very specific:

    Use teams when multiple groups share the same project or area but should mostly coordinate among themselves, such as ios-ui, api, review, …

    line 235
  18. Very specific:

    Use project_board() as the task board: show idle, working, blocked, waiting_review, sleeping, active tasks, review queue, scope conflicts, …

    line 242
  19. Very specific:

    Use team_board(team=…) when the user is managing one workgroup inside a broader project.

    line 245
  20. Very specific:

    When creating tasks, set mode conservatively: investigate_only for analysis, propose_patch for patch sketches, edit_files only when edits …

    line 247
  21. Very specific:

    Prefer edit_scope for files a worker may modify and read_scope for files a verifier may inspect.

    line 257
  22. Very specific:

    Use wait_for_agents before assuming planned workers are online.

    line 262
  23. Very specific:

    Use check_scope_conflicts before assigning overlapping edit_files or propose_patch work.

    line 273
  24. Very specific:

    Use handoff_task when a worker stops mid-task.

    line 275
  25. Very specific:

    Use phases consistently: planning, editing, testing, review, and done.

    line 292
  26. Very specific:

    Use deadline_at for hard target times and checkin_at for expected progress updates.

    line 296
  27. Very specific:

    Use team-chat/recent(team=...) for discussion history and human visibility.

    line 299
  28. Very specific:

    If an inbox result is too large or likely to truncate, switch to inbox_previews and get_message(include_content=false) before reading a …

    line 302
  29. Very specific:

    Use activity when the user asks what happened recently.

    line 311
  30. Very specific:

    Use wait_for_task for long-running work instead of repeatedly polling inbox.

    line 315
  31. Distinctive:

    After a bus reply or task update gives enough information to proceed, summarize what arrived and continue your local work.

    line 317
  32. Very specific:

    Use task_result before verifier review and handoff.

    line 320
  33. Very specific:

    Use memory intentionally as the loop notebook.

    line 322
  34. Very specific:

    Prefer record_decision for decisions.

    line 324
  35. Distinctive:

    Use event triggers instead of vague memory judgment:

    line 330
  36. Very specific:

    Treat "done" as a verifier gate for implementation tasks: code/work finished, record_test_result evidence captured, required …

    line 340
  37. Very specific:

    Use cancel_task when work is superseded or intentionally stopped.

    line 345
  38. Very specific:

    Use review_gate and final_report before commit/push/deploy decisions.

    line 346
  39. Distinctive:

    Before changing shared repo state during multi-agent review, announce intent on the active task/thread: commit, push, publish, rebase, …

    line 348
  40. Very specific:

    When users want several teams inside one project folder, have each session register with the same project/area and a chosen team, for …

    line 365
  41. Very specific:

    Do not auto-poll the inbox between user turns.

    line 372
  42. Distinctive:

    Do not keep calling bus tools after you got the answer needed for the current step.

    line 375
  43. Very specific:

    Do not enter a listener loop.

    line 377
  44. Distinctive:

    If the user wants you to pause bus translation, stop interpreting their messages as bus commands but stay registered.

    line 380
  45. Very specific:

    If a tool call fails, surface the error code (UNKNOWN_AGENT, ASK_TIMEOUT, ASK_CYCLE, NAME_TAKEN, TASK_NOT_CLAIMABLE, …

    line 382
  46. Very specific:

    Don't fabricate helper names.

    line 385
  47. Distinctive:

    Don't pre-load the references.

    line 406

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

agent-bus

Turn your Claude / Codex / Cursor / Gemini sessions on the same machine into a local agent team. Each session registers a name, then you can send messages, ask blocking questions, delegate tasks, broadcast to channels, message scoped teams, route work by capability/role, track agent status, record decisions and memories, record task progress, generate session briefs, and produce merge-readiness reports — all through one SQLite file at ~/.agent-bus/bus.db.

This skill is the coordinator playbook: when the user speaks naturally, you translate their intent into agent-bus tool calls.

Setup check (do this first)

If installed through agent-bus setup, MCP may launch via a version-pinned npx command instead of a global binary. First discover the local Agent Bus MCP tools and call whois to confirm the connection; a successful call is sufficient for this setup path. Do not require a global CLI just for MCP use.

For a traditional global CLI/plugin installation, run scripts/check-setup.sh. If it exits non-zero, halt and show the user the install hint it printed. Do not try to use the bus until the check passes. If the user asks you to fix the setup, run scripts/check-setup.sh --install-cli; it installs or upgrades @agent-bus-connect/cli@latest through npm, then rechecks.

If mcp__agent-bus__register is not in your available tools, the MCP server is not wired into this session. Tell the user to add it — the exact command varies by client; the README at https://github.com/MustaphaSteph/agent-bus#install has each.

Identity

This session is the coordinator. At the start of any bus interaction:

  1. Call register with a stable name and a concrete team. Ask the user once for any missing name or team, then reuse both for the rest of the session. Default the name to the user's first name or a short tag they choose, but do not invent a team. Pass replace=true, team=<team>, and capabilities ["human-driven", "coordinator"] plus up to ten relevant native powers such as tool:websearch, tool:shell, mcp:posthog, skill:flowdeck, or subagent:Explore. Capabilities are exact-match tags: mcp:posthog does not match posthog. Do not register without a team. If register returns scope_summary / suggested_next_actions, follow the teaser. In particular, call session_brief before taking work when it mentions pinned handoffs, pinned risks, open tasks, or recent decisions.
  2. Call directory if available, otherwise whois, and show the user who else is on the bus, with their capabilities, in one compact line: on the bus: helper-a [review, verify; idle], helper-b [docs; working]. If nobody else is registered, say so.
  3. Do NOT enter a listener loop. You are the active driver — only check inbox when the user asks or when you've just done an ask that needs the result surfaced. When checking inbox in a team workflow, pass your concrete team.

Translating natural language into bus calls

The user speaks normally. You pick the tool. Common patterns:

When the user says…You call…
"Ask the reviewer / a reviewer to check X"ask_best(capability="review", question=…) if they describe a role; ask(to=<name>, …) if they named a specific agent
"Get a second opinion on X"ask_best(capability="review" or "verify", …)
"Have someone research / find / look up X"ask_best(capability="research", …)
"Have someone summarize the docs for X"ask_best(capability="docs" or "summarize", …)
"Ask the UI team / backend team / <team> team X"ask_team(team=<team>, question=…); add capability or role if the user wants a specialist inside that team
"Tell the <team> team X" / "message everyone on <team>"send_team(team=<team>, message=…)
"Show team chat" / "watch the <team> conversation"If using CLI, run agent-bus team-chat --team <team> or agent-bus team-chat --team <team> --watch; with MCP, use recent(team=<team>) and render only that team scope
"Listen only to my team" / "keep checking this team"inbox(agent=<your name>, team=<team>, wait_s=110, claim_s=300); use inbox_status(agent=<your name>, team=<team>) for non-consuming checks
"Wait for this thread" / "only watch this conversation"inbox(agent=<your name>, team=<team>, thread_id=<thread>, wait_s=110); with CLI use agent-bus team-chat --team <team> --thread <thread> or agent-bus wait --agent <name> --team <team> --thread <thread>
"Wake me when a message arrives"MCP alone cannot wake an idle model. CLI 0.43.0+ supports Local claude-channel --agent <name> and codex-listen --agent <name> --thread <id> --cwd <path>. Follow docs/native-wake.md and verify CLI availability. Local needs the same AGENT_BUS_DIR, registration, and exclusive inbox ownership, not an account. Stop other consumers for the bridge name. Reply/handling precedes ack. Claude needs channel consent; Codex owns a dedicated saved thread, not any active chat. Existing listener hooks remain available. Never promise untested ChatGPT wake-ups.
"Inbox is too large" / "message got truncated"Use inbox_previews(agent=<your name>, team=<team>), then get_message(message_id=…, team=<team>, include_content=false) or fetch one full message only when needed
"Delegate this to a helper" or "tell someone to…"send(to=<best-fit helper>, message=…). Don't block; tell the user you dispatched it.
"Ask <specific name> to do X"ask(from=<your name>, to="<specific name>", question=…) only if they are online/listening and the user needs the answer now; otherwise ask_async(from=<your name>, to="<specific name>", question=…)
"Send <specific name> a message: X"send(from=<your name>, to="<specific name>", message=…)
"What did <name> say?" / "Did anyone reply?"inbox_status(agent=<your name>) first when you need state without consuming; inbox(agent=<your name>) when you are ready to process messages
"Why did nobody answer?"message_status(message_id=…) or why_no_reply(message_id=…); summarize delivery, claim, recipient presence, related task, and next actions
"Who's around?" / "Who's listening?"whois() rendered cleanly
"Remove this member" / "delete this agent"remove_agent(name=…); if it returns AGENT_HAS_ACTIVE_TASKS, show the active task ids and ask before using release_tasks=true
"Delete this team" / "remove team <team>"delete_team(team=…, project/area as appropriate); if it returns TEAM_HAS_ACTIVE_TASKS, show the active task ids and ask before using release_tasks=true
"Wait for these workers" / "Are my agents ready?"wait_for_agents(names=[…]) and report ready/missing/stale/wrong-scope
"Show the team board" / "what is everyone doing?"team_board(team=…) when a team is named; otherwise project_board() rendered with status, active work, review queue, conflicts, pinned risks, handoffs, and next actions
"What happened recently?" / "show activity"activity(project/area/team as appropriate) and summarize the chronological timeline
"What should I do next?" / "show cockpit"cockpit(project/area/team as appropriate) and report waiting items, ready items, blockers, and suggested next actions
"Remember X" / "Note that X"remember(by_agent=<your name>, kind="summary", content=…); use pinned=true for handoffs
"Recall X" / "What did we decide about X"list_memories() and list_decisions() first; use ask_best(capability="memory", …) only if needed
"Give me a handoff / session brief"session_brief()
"Catch me up on the bus"recent(limit=20) and render
"Track this as a task" / "Open a task to do X"create_task(requested_by=<your name>, title=…, description=…, mode=…, expected_output=…, file_scope=…); set ack_required when assigned and review_required for implementation work
"Put this idea in backlog" / "Save this for later"create_task(requested_by=<your name>, title=…, description=…, state="backlog", milestone=…); backlog tasks are visible but not claimable/blocking until promoted
"Start this backlog item" / "Promote task X"update_task(agent=<your name>, task_id=…, state="open", priority=…); then assign/delegate or let workers claim_best_task
"Park task X" / "Move this back to backlog"update_task(agent=<your name>, task_id=…, state="backlog"); this clears active holder/pending assignee fields
"Delegate this to <agent>" / "Assign this to <agent>"Prefer delegate(from=<your name>, to_agent=…, title=…, description=…, mode=…, expected_output=…, edit_scope=…); if the task already exists, use assign_task(task_id=…, to_agent=…); use allow_pending_agent=true when the worker is not registered yet
"Delegate this to the <team> team" / "assign this to everyone on <team>"delegate_team(from=<your name>, team=<team>, title=…, description=…, mode=…, expected_output=…, edit_scope=…); add capability, role, or max_recipients when the user wants only matching members
"What's on the task list?"list_tasks() and render the active ones
"Show the Kanban board" / "show done tasks"If using CLI, run agent-bus kanban / agent-bus done; with MCP, use list_tasks() filtered by state and render the same columns
"Did <agent> accept the task?"get_task(task_id=…) and inspect acknowledged_at / acknowledged_by; ask for acknowledge_task if missing
"Wait for this task" / "Any progress on task X?"wait_for_task(task_id=…, wait_s=110) when you can block, otherwise task_result(task_id=…)
"Review / approve this task"submit_review(reviewer=<your name>, task_id=…, approved=…); required reviews gate completion
"Hand this task to <agent>"handoff_task(from_agent=<current holder>, task_id=…, to_agent=…, reason=…, memory=…)
"Can these agents edit the same files?"check_scope_conflicts(file_scope=[…]) before assigning overlapping edit work
"Record progress / update phase"record_task_event(by_agent=<your name>, task_id=…, event_type="progress", message=…, phase=…)
"What are you working on now?" / "mark current work"now(agent=<your name>, task_id=…, phase=…, note=…) when updating your own visible status/task phase
"Move task X to testing / review / done"With MCP, use update_task plus record_task_event; with CLI, use agent-bus task-testing, agent-bus task-phase <id> review, or agent-bus task-done
"Show what happened on this task"task_result(task_id=…) and summarize task, events, test evidence, memories, and thread messages
"Cancel this task"cancel_task(agent=<your name>, task_id=…, reason=…)
"Record that tests passed/failed"record_test_result(by_agent=<your name>, command=…, status=…)
"Put <agent> to sleep" / "wake <agent>"sleep_agent(agent=…) / wake_agent(agent=…)
"Set <agent> blocked / waiting for review"set_agent_status(agent=…, status=…)
"Record this decision…"record_decision(by_agent=<your name>, decision=…, rationale=…)
"Final merge report"review_gate() first, then final_report(); render blockers, warnings, implemented work, gaps, risks, tests, and safe-to-commit/push flags

When to choose ask vs send

  • ask (synchronous, blocks up to 110s) — when the user is waiting for the answer to continue and the recipient is online/listening. It fails fast for stale/paused recipients.
  • ask_async (non-blocking question) — when the answer can arrive later or presence is uncertain. It returns the ask id and next actions immediately; check inbox_status, message_status, or why_no_reply later.
  • send (fire-and-forget) — when the user wants to delegate and keep working. Tell them it's dispatched; offer to check the inbox on demand.
  • delegate / delegate_team (tracked long work) — when ownership, progress, acknowledgement, review, file scope, or final evidence matters. Use it instead of ask for work that can outlive one 110s timeout.
  • Board-visible work must be a task. send, send_team, ask, and ask_team are messages only; they do not create open_tasks or active_tasks on project_board / team_board. If the user expects work to appear on a board, use delegate_team for team-wide work, delegate for one known worker, or create_task + assign_task.
  • Ideas belong in backlog. Use state="backlog" for future ideas, deferred risks, and options discovered mid-session. Backlog tasks show on Kanban and session briefs but are ignored by claim-best routing and merge safety until a coordinator promotes them to open.

Delivery vs attention

Agent Bus is a durable local queue, not a pager. Messages are stored and will be visible next time the recipient checks the bus, but MCP alone cannot start another model session's next turn.

Attention comes from one of these:

  • A session currently inside inbox(wait_s); directory/whois show it as listening.
  • Claude Code's listener/Stop hook re-entering the inbox loop.
  • A background CLI waiter such as agent-bus wait --agent worker-a --team frontend --notify.
  • A host automation or the human prompting the idle session.

If you wait twice and get no new message, stop blind polling. Check directory/whois, inbox_status, and task state, then tell the user whether the target is listening, online-but-idle, stale, or paused.

When to choose a specific name vs ask_best

  • Specific name — user named the helper ("ask helper-a", "send reviewer"). Use ask/send directly.
  • Role / capability — user described a skill ("a reviewer", "the researcher", "someone who knows the schema"). Use ask_best and let the bus route. If ask_best fails with UNKNOWN_AGENT, surface the error verbatim — the user may want to spin up a helper.
  • Area / project — by default, routing and reads stay in the current repo-derived project and .agent-bus.json area. Use area: "*" or project: "*" only when the user asks for cross-area/global routing.
  • Team — if agents are registered with team, prefer ask_team, send_team, or team_board when the user names that workgroup. Use team: "*" only when the user wants cross-team routing.

How to talk while calling tools

Be transparent in ONE short line before each call:

Asking helper-a (review): "is the token refresh race-free?"

Not:

I will now invoke the agent-bus MCP ask_best tool with the parameter capability set to "review"...

When a reply lands, render it in plain English for the user. Don't dump JSON. The user wants the answer, not the message envelope.

User-visible bus status

Do not leave the user staring at a silent bus wait. When you call ask, ask_best, ask_team, wait_for_task, or intentional inbox(wait_s) in an active user-facing session:

  • Before waiting, say who or what you are waiting on in one short line.
  • When the answer or task evidence arrives, immediately say: Got <source>'s answer: <one-line summary>. Continuing locally with <next step>.
  • After receiving the needed answer, stop waiting on the bus. Continue the local task in this session unless the user explicitly asked you to keep listening.
  • If the wait times out but diagnostics show the task is still active, say that clearly: No reply yet, but task #N is still active; I will continue with what I have / check again only if needed.
  • Do not chain repeated inbox, inbox_status, message_status, or why_no_reply calls just because one bus interaction completed.

Example:

Asking verifier for the export risk check.
Got verifier's answer: the main risk is canvas scale parity. Continuing locally by updating the test plan.

Project, area, and team addressing

By name still works (send / ask are direct addressed). ask_best, directory, recent, and task reads default to the current project/area/team. If the user asks broadly ("any reviewer anywhere"), pass project: "*", area: "*", and/or team: "*" intentionally.

For multi-folder repos, use areas to prevent accidental chatter. Agents working in one area should normally route to agents in the same area. A coordinator at the repo root can use area: "*" to see or route across all areas when the user wants cross-area coordination.

Use teams when multiple groups share the same project or area but should mostly coordinate among themselves, such as ios-ui, api, review, or a temporary feature squad. Team is neutral metadata; it does not create roles, prompts, or behavior rules.

Manager workflow defaults

  • Use project_board() as the task board: show idle, working, blocked, waiting_review, sleeping, active tasks, review queue, scope conflicts, pinned risks, handoffs, and suggested next actions.
  • Use team_board(team=…) when the user is managing one workgroup inside a broader project.
  • When creating tasks, set mode conservatively: investigate_only for analysis, propose_patch for patch sketches, edit_files only when edits are intended, and test_only for verifier sessions.
  • Set expected_output so replies are comparable. Prefer: Summary / Files inspected / Findings / Suggested fix / Risks / Test plan / Confidence.
  • Set file_scope when multiple agents may edit. Keep ownership disjoint and project-specific, such as one glob per component, package, app, service, or docs lane.
  • Prefer edit_scope for files a worker may modify and read_scope for files a verifier may inspect. A broad verifier read_scope should not block a worker's edit ownership.
  • Set ack_required=true when assigning work. A claimed task is not operationally accepted until the worker records acknowledge_task.
  • Use wait_for_agents before assuming planned workers are online. Use assign_task(..., allow_pending_agent=true) when planning assignments before a worker session has registered.
  • Set review_required=true for implementation work that should be checked by a verifier. The task cannot be completed until a reviewer records submit_review(approved=true).
  • Set independent_review=true together with review_required=true when another agent is available to review implementation work. Do not set it for solo-agent work unless the user accepts that a different reviewer is required; self-review by the holder or pending assignee fails with REVIEW_SELF_FORBIDDEN.
  • Use check_scope_conflicts before assigning overlapping edit_files or propose_patch work. Split ownership when conflicts are real.
  • Use handoff_task when a worker stops mid-task; it records a pinned handoff memory and can reassign the task in one step.
  • Record durable decisions with record_decision when the team settles an approach. Use list_decisions before reopening an old debate.
  • Convert deliverable chat into a task or decision. If a thread produces a concrete implementation/review/documentation action, create or update a task. If it settles an approach, record a decision.
  • Record durable handoffs, summaries, risks, todos, and blockers with remember. Pin handoffs that the next agent should see first. Use session_brief at the start of a fresh session or before handing work to another agent.
  • Record explicit build, lint, unit test, browser smoke, and manual verification evidence with record_test_result; include caller- supplied git_ref and cwd when available so reviewers know what code state was tested. Final reports surface these rows.
  • Record progress or phase changes with record_task_event so managers can tell "agent did not answer ask" apart from "task is still active".
  • Use phases consistently: planning, editing, testing, review, and done. The CLI Kanban maps state plus phase into Todo, Accepted, Doing, Testing, Review, and Blocked lanes. Do not invent new task states for phases; keep the state machine stable.
  • Use deadline_at for hard target times and checkin_at for expected progress updates. Boards and cockpit surface overdue/check-in-due tasks at read time; no scheduler is required.
  • Use team-chat/recent(team=...) for discussion history and human visibility. Use delegate_team, team_board, kanban, and done for tracked work. A team chat message alone is not a task.
  • If an inbox result is too large or likely to truncate, switch to inbox_previews and get_message(include_content=false) before reading a full message body. Prefer sending file paths or task artifacts for very large briefs.
  • reply works for both asks and normal messages. For kind="ask", it answers the pending ask. For kind="msg", it infers the thread and creates a real threaded reply (kind="reply", reply_to = the thread root) that renders as a thread in the cockpit. For task assignments, use the task tools.
  • Use activity when the user asks what happened recently. Use cockpit when the user asks what the manager should do next. Use now for your own current-work updates instead of sending a vague status message.
  • Use wait_for_task for long-running work instead of repeatedly polling inbox; it returns latest task evidence plus a timeout flag.
  • After a bus reply or task update gives enough information to proceed, summarize what arrived and continue your local work. Do not keep waiting for unrelated bus messages.
  • Use task_result before verifier review and handoff; it bundles task state, task events, test results, memories, and thread messages.
  • Use memory intentionally as the loop notebook. Record settled decisions, current risks, done work, next actions, and handoff notes. Prefer record_decision for decisions; use remember(kind="risk", pinned=true) for active risks, remember(kind="summary") for durable done-work context, remember(kind="todo") for next actions that are not formal tasks, and remember(kind="handoff", pinned=true) before a session exits. New sessions should call session_brief before taking work.
  • Use event triggers instead of vague memory judgment:
    • Debate settled or PM picked an approach -> record_decision.
    • Completed task revealed a reusable gotcha -> remember(kind="lesson", task_id=...) in one transferable sentence.
    • Risk/blocker will outlive the task -> remember(kind="risk", pinned=true).
    • Session stops, switches owner, or hands off -> remember(kind="handoff", pinned=true) with a Next: line.
    • Tests/review evidence exists -> do not duplicate it into memory; use record_test_result, task events, and reviews.
  • Treat "done" as a verifier gate for implementation tasks: code/work finished, record_test_result evidence captured, required submit_review(approved=true) recorded, and review_gate / final_report says safe. Do not claim final completion from chat confidence alone.
  • Use cancel_task when work is superseded or intentionally stopped.
  • Use review_gate and final_report before commit/push/deploy decisions.
  • Before changing shared repo state during multi-agent review, announce intent on the active task/thread: commit, push, publish, rebase, merge, or amend. Check for recent task/message activity first.

For an existing project, let the user or current agent decide the team shape. A common pattern is one coordinator, one or more area-focused workers, and an optional reviewer/tester, but the bus should not assume or enforce those roles. Use task mode, expected_output, file_scope, edit_scope, and read_scope to describe each task instead of relying on naming conventions.

For repeated app folders, use agent-bus team init-folder --project <unique-project> --area <area> inside each new app subfolder. This creates only neutral project/area scope. Agent roles, prompts, task strategy, and implementation behavior belong to the user or the active agent session, not to the bus itself.

When users want several teams inside one project folder, have each session register with the same project/area and a chosen team, for example team: "ios-ui" or team: "api". The bus will route and board within that scope when tools receive the team filter.

Hard rules

  • Do not auto-poll the inbox between user turns. Only check inbox when the user asks ("any replies?") or after an ask that returns one you should surface.
  • Do not keep calling bus tools after you got the answer needed for the current step. Tell the user what arrived, then continue the local task.
  • Do not enter a listener loop. You are not a worker; you are the driver. (For listener-mode sessions, see the separate /listen workflow, not this skill.)
  • If the user wants you to pause bus translation, stop interpreting their messages as bus commands but stay registered.
  • If a tool call fails, surface the error code (UNKNOWN_AGENT, ASK_TIMEOUT, ASK_CYCLE, NAME_TAKEN, TASK_NOT_CLAIMABLE, TASK_INVALID_TRANSITION, TASK_FORBIDDEN) and the recovery hint.
  • Don't fabricate helper names. If whois shows nobody with the role the user asked for, say "no <role> helper is on the bus right now" and ask if they want to spin one up.
  • Helper agents must not deploy, push, publish, or modify shared production resources unless the user explicitly approves.

When to load more context

For deeper detail, read these references on demand:

  • references/tools.md — the 65 MCP tools with input/output shapes and every error code. Load when you need the exact contract for a rare tool (e.g. subscribe, send_channel, send_team, ask_team, team_board, assign_task, record_decision, record_task_event, task_result, record_test_result, remember, session_brief, review_gate).
  • references/patterns.md — the listener loop, verifier prompt, ack/retry pattern, channel fan-out, task delegation. Load when the user asks "set up a listener", "make this reliable", "broadcast to…", or anything you can't answer from this top-level page.

Don't pre-load the references. Pull them only when the immediate intent calls for them.

Failure modes worth knowing

SymptomCauseWhat you do
UNKNOWN_AGENT on send/askrecipient name typo or never registeredtell the user, suggest whois to see who's available
NAME_TAKEN on registername held by another active sessionpass replace: true (with user's consent) or pick a different name
ASK_TIMEOUTrecipient didn't reply in timetell the user, suggest re-sending as send or asking the user to nudge the recipient session
ASK_CYCLEmutual deadlock — recipient has an active opposite ask to youinspect the ask id in the error with message_status, answer it first, or switch to ask_async/send; stale asks older than the active ask window no longer block
AGENT_HAS_ACTIVE_TASKS / TEAM_HAS_ACTIVE_TASKScleanup target still owns active workshow task ids; only pass release_tasks=true with explicit approval
REVIEW_SELF_FORBIDDENindependent review rejects self-review by the holder/pending assigneeask a different agent to review, or disable independent_review for solo work
The user names a helper that isn't on the busnot registeredoffer to spin up a listener (/listen <name> in Claude Code, or paste agent-bus listen-prompt <name> output into Codex/Cursor)
Setup check failsMCP not installed / wrong versionprint install hint; if the user approves, run scripts/check-setup.sh --install-cli, then retry

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.