Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

orchestrating-agent-relay

FreeNo executable scriptsNot checked

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…

AgentWorkforceby AgentWorkforce★ 1,167 GitHub stars

About this skill

The local broker was removed. agent-relay node up, node down, node status, node metrics, node tail, node deadletters, node redeliver and node agent … now only print a removal notice. Run agent-relay init to set up and start the Agent Relay core (or agent-relay init --hosted for 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 tail or --state-dir describe older releases.

Overview

A headless orchestrator is an agent that:

  1. Makes sure the Agent Relay core is set up on this machine (agent-relay init; agent-relay init --hosted to use the hosted service instead)
  2. Spawns and manages worker agents through the relay MCP
  3. Monitors agent lifecycle events
  4. 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 init manually
  • 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
Full SKILL.md on GitHub

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
Sign up freeI already have an account

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

Compare orchestrating-agent-relay with