Skip to content

Commit 6924076

Browse files
khaliqgantclaude
andcommitted
docs: clarify CLI options for spawning different agent types
Added CLI Options section with table showing valid values: - claude, codex, gemini, aider, goose Added example showing how to spawn a Codex agent. Updated Headers Reference to list CLI options inline. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b43d273 commit 6924076

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

relay-snippets/agent-relay-snippet.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,21 @@ EOF
112112

113113
**IMPORTANT**: The filename is always `spawn` (not `spawn-agentname`) and the trigger is always `->relay-file:spawn`. Spawn agents one at a time sequentially.
114114

115+
### CLI Options
116+
117+
The `CLI` header specifies which AI CLI to use. Valid values:
118+
119+
| CLI Value | Description |
120+
|-----------|-------------|
121+
| `claude` | Claude Code (Anthropic) |
122+
| `codex` | Codex CLI (OpenAI) |
123+
| `gemini` | Gemini CLI (Google) |
124+
| `aider` | Aider coding assistant |
125+
| `goose` | Goose AI assistant |
126+
115127
**Step 1:** EXECUTE this bash command (run it, don't just display it):
116128
```bash
117-
# Spawn
129+
# Spawn a Claude agent
118130
cat > $AGENT_RELAY_OUTBOX/spawn << 'EOF'
119131
KIND: spawn
120132
NAME: WorkerName
@@ -125,6 +137,17 @@ EOF
125137
```
126138
**Step 2:** Output: `->relay-file:spawn`
127139

140+
```bash
141+
# Spawn a Codex agent
142+
cat > $AGENT_RELAY_OUTBOX/spawn << 'EOF'
143+
KIND: spawn
144+
NAME: CodexWorker
145+
CLI: codex
146+
147+
Task description here.
148+
EOF
149+
```
150+
128151
**Step 1:** EXECUTE this bash command (run it, don't just display it):
129152
```bash
130153
# Release
@@ -185,5 +208,5 @@ Reply to the channel shown, not the sender.
185208
| TO | Yes (messages) | Target agent/channel |
186209
| KIND | No | `message` (default), `spawn`, `release` |
187210
| NAME | Yes (spawn/release) | Agent name |
188-
| CLI | Yes (spawn) | CLI to use |
211+
| CLI | Yes (spawn) | CLI to use: `claude`, `codex`, `gemini`, `aider`, `goose` |
189212
| THREAD | No | Thread identifier |

0 commit comments

Comments
 (0)