What problem does it solve?
Codex sub-agents can only report results back to their parent, leaving no way for workers to message each other or the lead in real time. This Skill gives Codex agents a shared message bus with channels, direct messages, and inbox polling so multi-agent teams stay synchronized.
Core Features & Use Cases
- Auto-setup installer: On first activation,
scripts/setup.sh idempotently adds the Agent Relay MCP server to .codex/config.toml, enables hooks, and installs the relay-worker agent definition.
- Structured coordination protocol: Enforces a startup sequence (workspace setup, registration, inbox check, ACK) and completion signaling with STATUS, BLOCKED, and DONE messages.
- Hook-driven inbox awareness: SessionStart, UserPromptSubmit, and Stop hooks auto-connect to Relaycast, inject unread messages into context, and block exit while messages remain unread.
- Use Case: A lead Codex agent spawns two relay-workers to refactor separate subsystems; workers ACK their assignments, exchange peer updates through Relaycast channels, and send DONE with evidence before exiting.
Quick Start
Install the skill into .agents/skills/agent-relay and ask Codex to coordinate a task with relay workers using ACK and DONE signaling over Agent Relay.