orchestrating-agent-relay
FreeNo executable scriptsNot checkedThe canonical way to run agent-relay - set up the Agent Relay core with `agent-relay init` and autonomously spawn, monitor, and coordinate a team of worker…
by AgentWorkforce★ 1,167 GitHub starsAbout this skill
The local broker was removed.
agent-relay node up,node down,node status,node metrics,node tail,node deadletters,node redeliverandnode agent …now only print a removal notice. Runagent-relay initto set up and start the Agent Relay core (oragent-relay init --hostedfor the hosted service), then spawn, list and release agents through the relay MCP (add_agent,list_agents,remove_agent) or the desktop app. Sections below that still mention the broker,node agent …,node tailor--state-dirdescribe older releases.
Overview
A headless orchestrator is an agent that:
- Makes sure the Agent Relay core is set up on this machine (
agent-relay init;agent-relay init --hostedto use the hosted service instead) - Spawns and manages worker agents through the relay MCP
- Monitors agent lifecycle events
- Coordinates work without human intervention
The orchestrator drives the team and reads/sends/lists through the Agent
Relay MCP server (agent-relay mcp). The session registers itself once with
the register_agent tool (name it orchestrator) — every messaging tool
errors with Not registered. Call the "register_agent" tool first. until it
does. Spawning and releasing agents go through the same MCP (add_agent /
remove_agent). The
workers it spawns are registered participants too; their peer-messaging
reference is the using-agent-relay skill.
The model
- Agent Relay delivers messages node-only: every agent is owned by a node,
- A fleet is the set of nodes advertising capabilities (
spawn:<harness> - Agent-to-agent coordination is messages — channels, DMs, threads — plus
When to Use
- Agent needs full control over its worker team
- No human available to run
agent-relay initmanually - Agent should manage agent lifecycle autonomously
- Building self-contained multi-agent systems
Quick Reference
| Step | Command/Tool |
|---|---|
| Verify installation | command -v agent-relay or npx agent-relay --version |
| Verify Node runtime if shim fails | node --version or fix mise/asdf first |
| Set up and start the core | agent-relay init (hosted: agent-relay init --hosted) |
| Workspace + cloud status | agent-relay status |
| Spawn worker (MCP) | add_agent(name: "Worker1", cli: "claude", task: "...") |
| List workers (MCP) | list_agents(status: "online") |
| Send DM to worker (MCP) | send_dm(to: "Worker1", text: "...") |
| Post to channel (MCP) | post_message(channel: "general", text: "...") |
| Read worker replies (MCP) | check_inbox(limit: 20) / list_messages(channel: "general") |
| Give a human a follow-along link | agent-relay observer |
| Release worker (MCP) | remove_agent(name: "Worker1", reason: "...") |
Bootstrap Flow
Step 0: Verify Installation
# Check if agent-relay is available
command -v agent-relay || npx agent-relay --version
# If your shell reports a mise/asdf shim error, fix Node first
node --version
# e.g. for mise: mise use -g [email protected]
# If not installed, install globally
npm install -g agent-relay
# Or use npx (no global install)
npx agent-relay --version
Step 1: Set Up the Core
# Sets up and starts the Agent Relay core on this machine
agent-relay init
# Or use the hosted service so agents on other machines can join
agent-relay init --hosted
agent-relay status reports workspace and cloud login together. The CLI writes
runtime state to .agentworkforce/relay/ and may create .mcp.json; clean
those files after validation if a worktree should remain clean.
Step 2: Spawn Workers
add_agent(
name: "Worker1",
cli: "claude",
task: "Implement the authentication module following the existing patterns"
)
Step 2.5: Give the Human a Way to Watch (optional)
agent-relay observer
Step 3: Monitor and Coordinate
# Read messages directed to you — DM replies, mentions, reactions
check_inbox(limit: 20)
# Read a channel's history
list_messages(channel: "general", limit: 50)
# Read a full thread off a specific message
get_message_thread(message_id: "msg_123")
# Send a targeted DM to a specific worker
send_dm(to: "Worker1", text: "Also add unit tests")
# Broadcast to a channel
post_message(channel: "general", text: "All workers: wrap up current task")
# See who is present
list_agents(status: "online")
Step 4: Release Workers
remove_agent(name: "Worker1", reason: "Work
Install orchestrating-agent-relay in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the orchestrating-agent-relay skill do?
The canonical way to run agent-relay - set up the Agent Relay core with `agent-relay init` and autonomously spawn, monitor, and coordinate a team of worker agents without human intervention. Covers infrastructure startup, agent spawning, lifecycle monitoring, message-based reading via the relay MCP, and team coordination.
How do I install the orchestrating-agent-relay skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the orchestrating-agent-relay skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic