agent-bus
Skill0 starsChanged 6 months agoMITView on GitHub
Use when a Codex session needs to discover, enable, inspect, or use the inter-agent bus to message live Claude or Codex sessions. Covers on-demand registration, identity lookup, session status, and agent-to-agent sends via the local `bus` command.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- adjcjh777/agent-bus-skillstheir own version, first seen Nov 15, 2026
- scottbaggett/agent-bustheir own version, first seen Nov 8, 2026
- MustaphaSteph/agent-bustheir own version, first seen Oct 13, 2026
- MustaphaSteph/agent-bus-pluginstheir own version, first seen Oct 13, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- scottbaggett/agent-bus★ 4same name
- adjcjh777/agent-bus-skills★ 1same name
- MustaphaSteph/agent-bus★ 1same name
- MustaphaSteph/agent-bus-plugins★ 1same 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 repository9 other files it gives its agents.
- autonomous-iterationSkill
- documentation-captureSkill
- hue-signalsSkill
- llm-councilSkill
- macos-attention-soundSkill
- messageSkill
- outbound-injectionsSkill
- structured-improvementSkill
- transcribe-scribeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 4 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the task involves live inter-agent messaging over a local agent bus exposed through a global bus command.
- Very specific: line 38
Run bus enable --name ... --description ...
- Distinctive: line 55
Use first. It tells you whether the session is enabled, which adapter it is using, the current participant id if enabled, the …
- Distinctive: line 65
Use the live-session send path when this session should be the real sender:
- Very specific: line 73
Use plain bus send <participant-id> "message" only when the sender should be an ephemeral CLI identity.
- Very specific: line 77
If bus send --from-session ...
- Very specific: line 78
If bus send --from-session ...
- Very specific: line 79
If bus status shows a last_error, quote that error back to the user and include the log= path in your reasoning.
- Very specific: line 80
If bus whoami returns bus_disabled, enable the session first.
- Very specific: line 81
If Codex reports awaiting_thread, submit or ask for a real prompt first, then retry bus enable.
- Very specific: line 82
If Codex Desktop is not listed by default, check launchctl print gui/$(id -u)/com.agentbus.codex-desktop-bus-autostart and then run bus …
- Very specific: line 83
If bus list only shows stale hashed ids and named sessions are missing after a code update, the broker may still be running older code.
- Distinctive: line 87
When asked to connect two live sessions, prefer this order:
- Distinctive: line 94
When debugging, do not guess.
- Very specific: line 99
If you explicitly want the old always-listed behavior for a test, launch with AGENT_BUS_AUTO_ENABLE=1.
“Common” is measured: kept by at least 6 in 10 of the 4 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.
Files
Agent Bus
Use this skill when the task involves live inter-agent messaging over a local agent bus exposed through a global bus command.
This skill documents the bus command surface (a local broker that lets wrapped Claude/Codex sessions message each other). The broker and its launch wrappers are separate local infrastructure and are not bundled here.
Typical triggers:
- The user wants this session to message another Claude/Codex session.
- The user wants to know whether this session is registered on the bus.
- The user wants this session to opt in to coordination and name itself in the participant list.
bus send --from-session ...failed and you need to diagnose whether the session is disabled, unwrapped, or errored.
Quick Start
From inside a normal wrapped session:
bus status
bus enable --name "task-short-name" --description "What this session is doing"
bus whoami
bus send --from-session <participant-id> "message"From Codex Desktop, recent Desktop threads are enabled by default by the local com.agentbus.codex-desktop-bus-autostart LaunchAgent. Start with:
bus status
bus whoami
bus send --from-session <participant-id> "message"Run bus enable --name ... --description ... only if the Desktop status is disabled/error or you want to rename the default address (codex-desktop-<thread-id>).
Success criterion: the command exits 0. Treat any non-zero exit as a delivery-check failure. queued now exits non-zero by default because the peer did not receive the message now; use --allow-queued only when deferred mailbox queueing is explicitly acceptable.
The chosen --name becomes the actual bus address. After enable, bus whoami should print that handle.
Normal interactive paths on this machine:
claude --dangerously-skip-permissionscodex- Codex Desktop app
Terminal claude and codex launch wrapped sessions already. Codex Desktop uses the Desktop autostart watcher and the CODEX_THREAD_ID fallback. The bus command is expected to be on PATH.
Control Commands
bus statusUse first. It tells you whether the session is enabled, which adapter it is using, the current participant id if enabled, the control/delivery socket paths, and any last error.bus enableRegisters or renames the live session on the bus.--nameis the real messageable handle, not just a label. Pick task-specific names likecodex-architecture,codex-review, orclaude-triageover generic ones when multiple sessions are active. For wrapped Codex, this may returnawaiting_threadif the session does not have a real thread yet. Codex Desktop normally arrives already enabled.bus disableUnregisters the live session but keeps the control socket alive, so it can be re-enabled later.bus whoamiPrints only the live participant id / address. Use this when another agent or terminal needs the exact destination id.
Sending Messages
Use the live-session send path when this session should be the real sender:
bus send --from-session <participant-id> "message"This makes the broker record from=<this session's chosen bus name> instead of from=cli:....
Use plain bus send <participant-id> "message" only when the sender should be an ephemeral CLI identity.
Failure Handling
- If
bus send --from-session ...says the session is not bus-enabled, runbus enableand retry. - If
bus send --from-session ...returnsqueued, do not claim the peer received it. Report the exact output and only use--allow-queuedwhen deferred mailbox delivery is explicitly acceptable. - If
bus statusshows alast_error, quote that error back to the user and include thelog=path in your reasoning. - If
bus whoamireturnsbus_disabled, enable the session first. - If Codex reports
awaiting_thread, submit or ask for a real prompt first, then retrybus enable. - If Codex Desktop is not listed by default, check
launchctl print gui/$(id -u)/com.agentbus.codex-desktop-bus-autostartand then runbus statusin the Desktop thread to start the fallback sidecar. - If
bus listonly shows stale hashed ids and named sessions are missing after a code update, the broker may still be running older code. Restart it withlaunchctl kickstart -k gui/$(id -u)/com.agentbus.bus-broker.
Working Pattern
When asked to connect two live sessions, prefer this order:
bus statusbus enable --name ... --description ...if neededbus whoamibus send --from-session ...
When debugging, do not guess. Run the commands and report the concrete state.
Notes
- The default wrapped launch path is already opt-in; sessions are bus-capable on normal launch but only appear in
bus listafterbus enable. - If you explicitly want the old always-listed behavior for a test, launch with
AGENT_BUS_AUTO_ENABLE=1. - Claude and Codex both use the same
buscommand surface, but Codex has an extra thread-readiness constraint.
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.

