agentleFS
ppikkuahoppikkuaho/claude-skills/skills/message/skill.md

message

Skill0 starsChanged 6 months agoMITView on GitHub

Use when Claude needs to message a live Codex session for code questions, coordination, or work handoffs over the agent bus.

1 other project uses 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

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when a live Claude session needs to message Codex over the local agent bus for code questions, coordination, or work …

    line 8
  2. Distinctive:

    Do not guess. Run the commands and use the concrete results.

    line 38
  3. Distinctive:

    If disabled, choose a short task-specific name and one-line description, then enable it:

    line 44
  4. Very specific:

    Use bus list from a control shell, or have the other session run bus whoami.

    line 54
  5. Very specific:

    Use plain bus send <participant-id> "message" only when the sender should be an ephemeral CLI identity instead of this live Claude session.

    line 62
  6. Distinctive:

    If you explicitly want the old always-listed behavior for a test, you can still launch with:

    line 89
  7. Very specific:

    If bus send --from-session ...

    line 98
  8. Very specific:

    If bus send --from-session ...

    line 99
  9. Very specific:

    If bus whoami returns bus_disabled, enable the session first.

    line 100
  10. Very specific:

    If bus status shows last_error, quote that error and include the log= path in your reasoning.

    line 101
  11. Very specific:

    If the Codex peer reports awaiting_thread, it needs one real prompt before it can enable.

    line 102
  12. Distinctive:

    If the user is trying to test the normal path, prefer the normal launch path over the on-demand env vars.

    line 103
  13. Very specific:

    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.

    line 104
  14. Distinctive:

    When debugging bus behavior, prefer observed state over assumptions:

    line 126
  15. Distinctive:

    If something fails, report the exact command output instead of paraphrasing from memory.

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

Agent Bus

Use this skill when a live Claude session needs to message Codex over the local agent bus for code questions, coordination, or work handoffs.

Use when:

  • The user wants this Claude session to message a live Codex session.
  • The user wants Claude and Codex coordinating on a task.
  • The user wants to know whether this session is registered on the bus.
  • bus send --from-session ... failed and you need to diagnose whether the session is disabled, unwrapped, or errored.
  • The user wants this session to opt in to coordination and present a meaningful name/description.

Don't use when:

  • The task is ordinary shell work with no live session-to-session messaging.
  • The user only wants a human-operated one-off CLI send from another terminal.

Important — always load explicitly: invoke this skill via /message when the task is specifically about live bus messaging, so the command sequence stays current with the shipped wrapper behavior.

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.


Normal launch paths

On this machine, the normal interactive launch paths are already wrapped:

  • claude --dangerously-skip-permissions
  • codex

That means the bus command is available in-session, but wrapped sessions are not listed until they opt in with bus enable.

Default workflow

Do not guess. Run the commands and use the concrete results.

  1. Check session state:
    bus status
  2. If disabled, choose a short task-specific name and one-line description, then enable it:
    bus enable --name "claude-reviewer" --description "Reviews router changes and sends findings to Codex"
  3. Get this session's participant id:
    bus whoami
    The value from bus whoami is the actual address peers should message. The chosen --name becomes the bus id.
  4. Get the peer participant id. Use bus list from a control shell, or have the other session run bus whoami.
  5. Send as the real live session:
    bus send --from-session <participant-id> "message"

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.

Use plain bus send <participant-id> "message" only when the sender should be an ephemeral CLI identity instead of this live Claude session.

Commands

  • bus status Shows whether the session is enabled, the adapter type, participant id if enabled, socket paths, log path, and any last_error.
  • bus enable Registers the live session on the bus. --name becomes the actual bus address, so prefer task-specific handles like claude-reviewer, codex-architecture, or claude-triage. Avoid generic names if several Claude/Codex sessions are open.
  • bus whoami Prints only the live participant id / address.
  • bus disable Unregisters the live participant but leaves the wrapper control socket alive.
  • bus send --from-session <participant-id> "message" Sends through the live session lease, so the broker records from=<this session's chosen bus name>.
  • bus list Usually run from a control shell to discover current participant ids.

Opt-in registration

The default wrapped path is already opt-in. Use this when the user wants the session to become reachable:

bus status
bus enable --name "claude-reviewer" --description "Reviews router changes and sends findings to Codex"
bus whoami

If you explicitly want the old always-listed behavior for a test, you can still launch with:

AGENT_BUS_AUTO_ENABLE=1 claude --dangerously-skip-permissions
AGENT_BUS_AUTO_ENABLE=1 codex

Failure handling

  • If bus send --from-session ... says the session is not bus-enabled, run bus enable and retry.
  • If bus send --from-session ... returns queued, do not claim the peer received it. Report the exact output and only use --allow-queued when deferred mailbox delivery is explicitly acceptable.
  • If bus whoami returns bus_disabled, enable the session first.
  • If bus status shows last_error, quote that error and include the log= path in your reasoning.
  • If the Codex peer reports awaiting_thread, it needs one real prompt before it can enable.
  • If the user is trying to test the normal path, prefer the normal launch path over the on-demand env vars.
  • 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. Restart it with launchctl kickstart -k gui/$(id -u)/com.agentbus.bus-broker.

Minimal examples

Send from this Claude session to Codex:

bus enable --name "claude-reviewer" --description "Reviews router changes and sends findings to Codex"
bus whoami
bus send --from-session codex-architecture "Reply exactly CLAUDE_TO_CODEX_OK and nothing else"

Debug a disabled session:

bus status
bus enable --name "claude-reviewer" --description "Reviews router changes and sends findings to Codex"
bus whoami

Working rule

When debugging bus behavior, prefer observed state over assumptions:

  1. bus status
  2. bus enable if needed
  3. bus whoami
  4. bus send --from-session ...

If something fails, report the exact command output instead of paraphrasing from memory.

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.