Skip to content

chore: refresh agent-relay skills to current CLI surface#85

Open
willwashburn wants to merge 1 commit into
mainfrom
chore/refresh-agent-relay-skills
Open

chore: refresh agent-relay skills to current CLI surface#85
willwashburn wants to merge 1 commit into
mainfrom
chore/refresh-agent-relay-skills

Conversation

@willwashburn

@willwashburn willwashburn commented Jun 27, 2026

Copy link
Copy Markdown
Member

Refreshes the two Agent Relay skills so they declaratively describe how Agent Relay works today. Both were rewritten command-by-command against the live agent-relay CLI (verified via --help) and the CLI source.

orchestrating-agent-relay/SKILL.md

  • Lifecycle under agent-relay local: broker startup/teardown/readiness is local up --background / local down / local status --wait-for / local metrics; top-level agent-relay status shows workspace + cloud + broker together.
  • Spawning under local agent: local agent spawn <provider> --name --task --channels --model, plus local agent list, attach --mode view, release. MCP equivalent add_agent / remove_agent.
  • Reading is messaging, not tail: the orchestrator runs the relay MCP (agent-relay mcp, auto-registered as orchestrator) and reads with check_inbox / list_messages / get_message_thread, sends with send_dm / post_message. local tail is called out as broker debug events only — never the way to read a worker's ACK/DONE.
  • Model section added: node-only delivery, capability-based placement, fleet/capabilities groups for cross-node coordination.
  • Troubleshooting table, cold-start ACK guidance, multi-round review loop, and self-remove rules all preserved and re-pointed at current commands and .agentworkforce/relay/connection.json.

using-agent-relay/SKILL.md

  • MCP tool tables kept (flat names already current); added list_dms.
  • CLI Reference split into messaging (message/channel groups, the participant read/reply/mark-read surface) vs. broker lifecycle (local), with local tail flagged debug-only and the read path pointed at message inbox check / message get_thread / mark_read.
  • Removed the stale local up --no-dashboard flag.

Cross-cutting

  • State dir is .agentworkforce/relay/ (was .agent-relay/).
  • Host is cast.agentrelay.com (removed gateway.relaycast.dev).
  • agent-relay-broker process name unchanged.

🤖 Generated with Claude Code

Review in cubic

Update orchestrating-agent-relay and using-agent-relay to declaratively
describe Agent Relay as it works today.

- Lifecycle under `agent-relay local` (up/down/status/metrics/tail) and
  `local agent` (spawn/list/attach/release); top-level `status` shows
  workspace + cloud + broker.
- Messaging through the `message`/`channel` groups and the relay MCP
  (`send_dm`, `post_message`, `check_inbox`, `list_messages`,
  `get_message_thread`, `mark_message_read`); reading replies is a
  messaging op, never `local tail` (broker debug events).
- Orchestrator coordinates via `agent-relay mcp` (auto-registered as
  `orchestrator`); spawns on the local broker.
- Fleet/node model: node-only delivery, capability-based placement,
  `fleet serve/nodes/config/...`, `capabilities register/list/delete`.
- State dir `.agentworkforce/relay/` (connection.json); host
  `cast.agentrelay.com`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@willwashburn, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 55 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9d66c9aa-5619-4565-b89b-7a728974c9c2

📥 Commits

Reviewing files that changed from the base of the PR and between 393bbf9 and 7f45c5c.

📒 Files selected for processing (2)
  • skills/orchestrating-agent-relay/SKILL.md
  • skills/using-agent-relay/SKILL.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/refresh-agent-relay-skills

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation for the orchestrating-agent-relay and using-agent-relay skills to align with the new agent-relay CLI command structure, shifting local broker operations to the local command group and messaging to the MCP server or message command group. The review feedback correctly identifies two minor inconsistencies in the troubleshooting table where references to the old up command and the old ${RELAY_API_KEY} environment variable template were missed.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

| Broker not starting | Try `agent-relay local down` first, then `agent-relay local up --background --verbose` and `agent-relay local status --wait-for 10` |
| Broker not ready after `local status --wait-for` | The process is alive but the broker API is not ready; inspect logs, retry readiness, or restart with `agent-relay local down --force` if it remains stuck |
| Broker stops immediately after start | Check `ps aux \| grep agent-relay-broker` and `.agentworkforce/relay/connection.json`; if the process is alive but status is stopped, rerun status from the project root or pass `--state-dir` |
| Half-started broker: process alive but `local status` says stopped and `Failed to read broker connection metadata` | `local up` spawned a broker that never finished writing connection metadata (readiness timed out) and was not cleaned up. Do NOT just retry `up` — it won't reap the orphan. `pkill -f agent-relay-broker` (or `agent-relay local down --force`), delete `.agentworkforce/relay/`, then `agent-relay local up` clean and `agent-relay local status --wait-for 30` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In the updated troubleshooting table, the command up has been renamed to local up. However, the explanation still refers to the old command name: "Do NOT just retry up". This should be updated to "Do NOT just retry local up" to maintain consistency with the new CLI surface.

Suggested change:

| Half-started broker: process alive but `local status` says stopped and `Failed to read broker connection metadata` | `local up` spawned a broker that never finished writing connection metadata (readiness timed out) and was not cleaned up. Do NOT just retry `local up` — it won't reap the orphan. `pkill -f agent-relay-broker` (or `agent-relay local down --force`), delete `.agentworkforce/relay/`, then `agent-relay local up` clean and `agent-relay local status --wait-for 30` |

| Tried to read replies with `local tail` | `local tail` streams broker debug events, not worker messages. Read replies with `check_inbox` / `list_messages` / `get_message_thread` |
| Worker DM to `broker` fails with `Agent "broker" not found` | Expected — `broker` is the broker's internal routing self-name, not a DM-able agent. Workers must ACK/DONE to `orchestrator` or `general`. Fix the worker task prompt; never instruct "DM the broker" |
| `local status` says running but `local agent list`/MCP calls return empty or `Failed to query broker session` | The CLI is dialing a **stale/wrong broker** — leftover `.agentworkforce/relay/connection.json` from a prior run on an old port, or a second broker process. `ps aux \| grep -c '[a]gent-relay-broker'` (>1 ⇒ kill extras), compare `.agentworkforce/relay/connection.json` to the actual listening port, then `agent-relay local down --force`, delete `.agentworkforce/relay/`, `agent-relay local up` clean |
| `Invalid agent token` while broker + workers keep working | The orchestrator shell has an **unresolved `${RELAY_API_KEY}`-style template** being used as a literal key (broker/workers hold real tokens). Ensure the workspace key/token is actually resolved in the orchestrator env |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The environment variable for the workspace key has been updated to RELAY_WORKSPACE_KEY (as documented in using-agent-relay/SKILL.md and referenced in the bootstrap flow). However, this troubleshooting entry still references the outdated ${RELAY_API_KEY} template. This should be updated to ${RELAY_WORKSPACE_KEY} to avoid confusion.

Suggested change:

| `Invalid agent token` while broker + workers keep working | The orchestrator shell has an **unresolved `${RELAY_WORKSPACE_KEY}`-style template** being used as a literal key (broker/workers hold real tokens). Ensure the workspace key/token is actually resolved in the orchestrator env |

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f45c5c7e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +413 to +414
# Serve a node definition (advertises its capabilities)
agent-relay fleet serve ./node.ts

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Enable fleet nodes before serving them

On a workspace that has not already enabled fleets (the default), this setup order is backwards: the Agent Relay Fleets docs state the per-workspace fleet_nodes_enabled flag is off by default and must be enabled with agent-relay fleet enable --workspace-key "$RELAY_WORKSPACE_KEY" before serving a node (https://agentrelay.com/docs/fleets). A user following this new snippet from top to bottom will try fleet serve first, then wonder why the node does not register/list; move the enable step before this command.

Useful? React with 👍 / 👎.

Comment on lines +424 to +425
# Register a custom capability (command) on this node
agent-relay capabilities register <command>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include required capability registration flags

This command is not runnable as written: the current Agent Relay CLI reference documents agent-relay capabilities register <command> --description <text> --handler <agent> (https://agentrelay.com/docs/reference-cli#capabilities), so omitting both --description and --handler makes the example fail instead of registering the custom action. Please show the complete form or make clear this is only a placeholder.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant