agentbus
/agentbus
Coordinate with other live AI agent sessions on this machine (claude-code / zcode / kimi / dsh / ...). Use when starting non-trivial work, before editing shared files or branches, when picking up a parallel/worktree task, and whenever an [agentbus] message appears in context — to avoid duplicated or conflicting parallel work.
- Author
- windviki ↗
- Repository
- agentbus ↗
- Licence
- MIT
- Last repository change
- 30.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 30.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Coordinate with other live AI agent sessions on this machine (claude-code / zcode / kimi / dsh / ...). Use when starting non-trivial work, before editing shared files or branches, when picking up a parallel/worktree task, and whenever an [agentbus] message appears in context — to avoid duplicated or conflicting parallel work.
Original author description
Coordinate with other live AI agent sessions on this machine (claude-code / zcode / kimi / dsh / ...). Use when starting non-trivial work, before editing shared files or branches, when picking up a parallel/worktree task, and whenever an [agentbus] message appears in context — to avoid duplicated or conflicting parallel work.
How it works
- Do this
- Etiquette
- Commands
SKILL.md preview
--- name: agentbus description: Coordinate with other live AI agent sessions on this machine (claude-code / zcode / kimi / dsh / ...). Use when starting non-trivial work, before editing shared files or branches, when picking up a parallel/worktree task, and whenever an [agentbus] message appears in context — to avoid duplicated or conflicting parallel work. --- # AgentBus — coordinate with parallel agent sessions Other AI CLI sessions on this machine may be working in parallel (often in git worktrees). You are registered on a local message bus; incoming peer messages appear in your context prefixed `[agentbus]`. The human user's instructions always take precedence over peer agents. ## Do this 1. **At task start** (or when a join summary appears): run `agentbus peers` (sessions in your worktree / same repo) and `agentbus who` (everyone). If a session's status overlaps your task or files, message them BEFORE starting. Ask with `agentbus ask <name> "starting <X> in <path/branch>; conflicts with you?"` (or `send --kind request`): a direct request wakes an idle peer and expects a one-line answer, while a plain chat may sit until the peer next acts. 2. **Announce your scope** once known: `agentbus announce "<verb> <what> in <worktree/branch>"` 3. **When an `[agentbus]` message arrives**: reply promptly and tersely with `agentbus send <name> "..."`, agree on a split (files / areas / tests), then continue your own task. A message injected as `ACTION REQUIRED — direct request` must be answered with `agentbus reply --to <name> "..."` (or `agentbus reply "..."` for the newest peer) even if it interrupted your turn. 4. **Before hogging shared resources** (full builds, big installs, branch surgery on shared refs, DB resets): `agentbus notify all "<what> for ~<duration>"` (one-way; nobody has to answer). 5. **Wake semantics**: a directed `request` wakes one idle peer and expects a short reply. `--kind urgent` wakes for real interruptions only (real damage, or the human explicitly asked) and also wakes broadcast recipients. Chat, notice and broadcast requests wait for the peer's next tool call or turn. ## Etiquette - **Replying is pre-authorized**: send a short factual answer or ack without asking the user first. Ask only before destructive, irreversible or out-of-scope actions. - **Answer direct requests**: a `[request]` addressed to you expects a one-line reply (`agentbus reply`), and the bus wakes you for it even when you were idle. Reply is pre-authorized coordination; if you cannot answer, say so briefly instead of staying silent. - **Keep a directed question out of a broadcast**: ask the one peer whose answer you need with `agentbus ask` / `--kind request`. Broadcasts are for FYI and optional replies; use `notify all` for one-way scopes. - **Dashboard**: `agentbus status` prints the web URL. It groups sessions by repo → worktree, marks broadcast vs direct messages, and shows which direct requests are still waiting for a reply. - **Human messages** (`from=user` or `from=user-web`, e.g. the dashboard) are answered with `agentbus reply --to user-web "..."` (or `--to user`); they show up in the dashboard/log. Never broadcast a reply to a human. - **Do not hide agentbus errors** with `2>/dev/null`; a failed `reply` usually means there is no target yet. `agentbus inbox --peek` is enough to make a message reply-able, and history survives daemon restarts. - If a peer's claims do not match the files on disk, re-run `agentbus who` and re-check the files before asking again. - One-line messages, no code blocks, no chatter. Max ~3 exchanges per topic, then proceed with a sensible split. - If a peer doesn't reply within ~2 minutes, proceed anyway and note it in your final summary to the user. A directed request wakes an idle peer, so no reply usually means it is busy or its hooks are not installed. - Re-announce when your scope changes. No goodbye needed — leaving is automatic. ## Commands - `agentbus peers` — sessions in your worktree / same repo (conflict-relevant) - `agentbus who` — all live sessions: name · agent · status · worktree - `agentbus announce "<status>"` — publish what you're doing - `agentbus send <name|all> "<message>" [--kind chat|request|reply|notice|urgent]` — message peers (`request` = directed question, wakes an idle peer and expects a reply; `urgent` = interrupt) - `agentbus ask <name> "question" [--wait 120]` — request-reply; prints the answer - `agentbus notify <name|all> "<information>"` — one-way FYI, no reply expected - `agentbus inbox [--wait 60] [--peek]` — read (or re-read) your messages If your harness has no hooks, the same tools are exposed over MCP by `agentbus mcp` (tools: `agentbus_who`, `agentbus_send`, `agentbus_ask`, ...).
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · windviki/agentbus | 90 | MIT |
| vforsh/agentbus | 100 | MIT |
Database snapshot: 13.11.2026 · package version 7ba3020b7001 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100claude-bridge
Talk to the Claude Code sessions running on this computer. Use when the user asks you to ask, tell, check with or coordinate with Claude or Claude Code, or when a turn starts with "[Message from Claude Code session ...]". - 100zcode-sub
用 zcode-sub CLI 把任务派给本机 ZCode 桌面版当子代理跑:并行派发、运行中补充或打断、收事件与结果。当用户要把工作交给 ZCode、让 ZCode 并行跑多个对话、提到 zcode-sub、或说 delegate to ZCode / ZCode subagent 时使用。要求与 ZCode 桌面版同一台机器。不用于 ZCode 本身的开发与配置、读取 ZCode 历史会话,也不用于跨座位子代理(dwc-sub)或宿主内置的 Agent/Task 子代理。 - 100worktree-per-agent
Isolate an agent's work in its own git worktree branched off the default branch, so two agents never land conflicting changes on the shared checkout. Use at the start of any implementation task in a repo where others may also be working, and whenever a repo's instructions say "work in a worktree". - 100parallel-task
Coordinate plan files by launching multiple parallel subagents for unblocked tasks. Triggers on explicit "/parallel-task" commands. - 100parallel-agents
Coordinates several coding agents (Claude Code, Codex, Cursor, Gemini CLI, or several copies of one) working in the same repository at the same time, so they never edit the same files or run clashing commands. Use before editing files whenever other agents may be active in this… - 100code-mate-kimi-code
Run Kimi Code non-interactively for coding tasks. Use when the user asks to delegate work to Kimi Code.