plugins/codex-relay-skill/SKILL.md
Use when you need Codex to coordinate multiple agents through Relaycast for peer-to-peer messaging, lead/worker handoffs, or shared status tracking across sub-agents and terminals.
npx skillsauth add agentworkforce/relay agent-relayInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when Codex needs real-time coordination across multiple agents. It gives Codex a repeatable workflow for:
Relay fills the peer-to-peer gap in Codex sub-agent workflows. Codex can spawn and collect worker results, but Relaycast gives those workers a shared message bus so they can talk to the lead and to each other.
On first activation, this skill auto-configures Codex by running scripts/setup.sh. This adds the Relaycast MCP server to .codex/config.toml, enables hooks, installs hooks.json, and copies the relay-worker.toml agent definition. No manual setup is required after installing the skill.
Every relay-connected Codex agent must complete these steps IN ORDER before substantive work:
Check for a workspace. Call workspace.list to see if a workspace is already active.
RELAY_API_KEY is set in the environment, call workspace.set_key with that key.workspace.create to auto-create one. This returns a workspace key — save it for workers.Register as an agent. Call agent.register with your agent name and type: "agent". Use RELAY_AGENT_NAME from the environment if set, otherwise derive a name from the task context (e.g., lead, auth-worker).
Tell the user they can follow the conversation live at https://agentrelay.com/observer?key=<workspace_key> (use the workspace key from step 1). This lets them watch all agent messages in real time.
Check the relay inbox. Call inbox.check to see if there are any pending messages or task assignments.
Send an ACK. If you received a task assignment, send ACK: <one-sentence understanding> to your lead via dm.send. If the assignment is unclear, send BLOCKED: <question> instead of guessing.
When the task is complete, send DONE: <summary with evidence> before stopping.
If workspace creation or registration fails, retry once, then report the failure to the user — do not proceed without a relay connection.
Do not assume the current MCP session already has an active Relaycast workspace. Always check with workspace.list first and create or set one if missing.
as: "<agent-name>" on relay calls that support explicit attribution.ACK: I understand the assignment and I am starting work on <scope>.STATUS: Finished <milestone>; next I am doing <next-step>.BLOCKED: I cannot continue because <blocker>.DONE: Completed <scope>. Evidence: <files changed, commands run, tests, or decisions>.There are two ways to create workers. Use the right one for the job:
Use agent.add to create a Relaycast-native agent. Best for tasks that are primarily about messaging, inbox checks, coordination, or lightweight work that doesn't need a full Codex sub-agent runtime.
Lead steps:
workspace.list, then workspace.create if needed).agent.register).agent.add(name: "worker-name", type: "agent").dm.send(to: "worker-name", text: "...").inbox.check).Worker steps:
inbox.check).dm.send.dm.send.Use spawn_agent with the relay-worker agent definition for tasks that need full code editing, file access, and tool use. The worker gets its own Codex runtime with Relaycast MCP tools available.
Lead steps:
Worker steps:
workspace.set_key with the workspace key from the task prompt.agent.register.If a worker does not ACK within 30 seconds:
agent.list.agent.add.dm.send.Worker: api-worker
Type: relay workspace agent (use agent.add, not spawn_agent)
Lead: lead
Scope: check the Relaycast inbox and confirm connectivity
Protocol:
1. Check inbox
2. DM lead with ACK
3. Perform scope
4. DM lead with DONE
For code-heavy tasks, change the type line to:
Type: Codex sub-agent (use spawn_agent with relay-worker)
development
Run headless multi-agent orchestration sessions via Agent Relay. Use when spawning teams of agents, creating channels for coordination, managing agent lifecycle, and running parallel workloads across Claude/Codex/Gemini/Pi/Droid agents.
development
Real-time messaging across OpenClaw instances (channels, DMs, threads, reactions, search).
development
Use when building multi-agent workflows with the relay broker-sdk - covers the WorkflowBuilder API, DAG step dependencies, agent definitions, step output chaining via {{steps.X.output}}, verification gates, evidence-based completion, owner decisions, dedicated channels, dynamic channel management (subscribe/unsubscribe/mute/unmute), swarm patterns, error handling, event listeners, step sizing rules, authoring best practices, and the lead+workers team pattern for complex steps
tools
Use when coordinating multiple AI agents in real-time - provides inter-agent messaging via MCP tools