@devo-bmad-custom/agent-orchestration 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,8 +5,9 @@ Verified, tested tmux command templates for agent orchestration. Every command i
|
|
|
5
5
|
**CRITICAL RULES:**
|
|
6
6
|
1. `sleep 10` before AND after every tmux command — no exceptions
|
|
7
7
|
2. Always append `Enter` to every `tmux send-keys` call
|
|
8
|
-
3.
|
|
9
|
-
4.
|
|
8
|
+
3. **Use `-l` (literal) flag for all free-form message content** — prevents `|`, `:`, and other chars being interpreted as tmux key sequences. Send `Enter` as a separate call after. Do NOT use `-l` for slash commands (`/color`, `/rename`, `/exit`) — those must be interpreted.
|
|
9
|
+
4. Verify pane exists before any operation targeting it
|
|
10
|
+
5. Use `/rename` and `/color` Claude Code commands (not OSC 2 or `select-pane -T`) for agent identity
|
|
10
11
|
|
|
11
12
|
---
|
|
12
13
|
|
|
@@ -103,9 +104,11 @@ if [ -z "$PANE_EXISTS" ]; then
|
|
|
103
104
|
exit 1
|
|
104
105
|
fi
|
|
105
106
|
|
|
106
|
-
# 2. Send the message (
|
|
107
|
+
# 2. Send the message — use -l (literal) to prevent | : and other chars being
|
|
108
|
+
# interpreted as tmux key sequences. ALWAYS append Enter separately.
|
|
107
109
|
sleep 10
|
|
108
|
-
tmux send-keys -t "$TARGET_PANE_ID" "$MESSAGE"
|
|
110
|
+
tmux send-keys -t "$TARGET_PANE_ID" -l "$MESSAGE"
|
|
111
|
+
tmux send-keys -t "$TARGET_PANE_ID" Enter
|
|
109
112
|
sleep 10
|
|
110
113
|
|
|
111
114
|
# 3. Verify delivery — grep for first 2 words of message in pane buffer
|
|
@@ -115,7 +118,8 @@ if [ -z "$DELIVERED" ]; then
|
|
|
115
118
|
# Retry once
|
|
116
119
|
echo "WARN: message not found in buffer, retrying..."
|
|
117
120
|
sleep 10
|
|
118
|
-
tmux send-keys -t "$TARGET_PANE_ID" "$MESSAGE"
|
|
121
|
+
tmux send-keys -t "$TARGET_PANE_ID" -l "$MESSAGE"
|
|
122
|
+
tmux send-keys -t "$TARGET_PANE_ID" Enter
|
|
119
123
|
sleep 10
|
|
120
124
|
fi
|
|
121
125
|
```
|
|
@@ -250,8 +254,10 @@ RESULT="pass"
|
|
|
250
254
|
SESSION_ID="<claude_session_id>"
|
|
251
255
|
|
|
252
256
|
sleep 10
|
|
253
|
-
|
|
254
|
-
|
|
257
|
+
# Use -l (literal) so | and : are not interpreted as tmux key sequences
|
|
258
|
+
tmux send-keys -t "$SPAWNER_PANE" -l \
|
|
259
|
+
"STEP COMPLETE: $TASK_ID | result: $RESULT | session: $SESSION_ID"
|
|
260
|
+
tmux send-keys -t "$SPAWNER_PANE" Enter
|
|
255
261
|
sleep 10
|
|
256
262
|
|
|
257
263
|
# 4. Check for more pending tasks for this role
|
|
@@ -336,7 +342,8 @@ tmux send-keys -t "$AGENT_PANE" "/color $NEW_COLOR" Enter
|
|
|
336
342
|
sleep 10
|
|
337
343
|
tmux send-keys -t "$AGENT_PANE" "/rename $NEW_ROLE-agent" Enter
|
|
338
344
|
sleep 10
|
|
339
|
-
tmux send-keys -t "$AGENT_PANE" "Handle TASK-003 from the session file"
|
|
345
|
+
tmux send-keys -t "$AGENT_PANE" -l "Handle TASK-003 from the session file"
|
|
346
|
+
tmux send-keys -t "$AGENT_PANE" Enter
|
|
340
347
|
sleep 10
|
|
341
348
|
```
|
|
342
349
|
|