tanuki-telemetry 1.3.3 → 1.3.4
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 +1 -1
- package/templates/speak.md +49 -0
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: |
|
|
3
|
+
Send a message to the coordinator workspace from a separate terminal. Sets up a simple input loop that routes your messages to the active coordinator.
|
|
4
|
+
allowed-tools: Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# /speak — Talk to the Coordinator
|
|
8
|
+
|
|
9
|
+
Sets up a message relay from this terminal to the coordinator workspace. Your messages get sent directly to the coordinator's Claude session.
|
|
10
|
+
|
|
11
|
+
## On Invoke
|
|
12
|
+
|
|
13
|
+
1. Find the coordinator target (saved by /coordinate on startup):
|
|
14
|
+
```bash
|
|
15
|
+
cat ~/.claude/coordinator-target 2>/dev/null
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
2. If no target file exists, discover it:
|
|
19
|
+
```bash
|
|
20
|
+
# List workspaces and find the one named "Main Conversation" or the coordinator
|
|
21
|
+
cmux list-workspaces
|
|
22
|
+
# Ask the user which workspace is the coordinator
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
3. Start the relay loop:
|
|
26
|
+
```bash
|
|
27
|
+
echo "Connected to coordinator. Type messages below. Ctrl+C to exit."
|
|
28
|
+
echo "---"
|
|
29
|
+
while IFS= read -r -p "> " msg; do
|
|
30
|
+
if [ -z "$msg" ]; then continue; fi
|
|
31
|
+
target=$(cat ~/.claude/coordinator-target 2>/dev/null)
|
|
32
|
+
if [ -z "$target" ]; then
|
|
33
|
+
echo "No coordinator target found. Run /coordinate first."
|
|
34
|
+
continue
|
|
35
|
+
fi
|
|
36
|
+
tw=${target% *}
|
|
37
|
+
ts=${target#* }
|
|
38
|
+
cmux send --workspace $tw --surface $ts "$msg" 2>/dev/null
|
|
39
|
+
cmux send-key --workspace $tw --surface $ts Enter 2>/dev/null
|
|
40
|
+
echo " → sent"
|
|
41
|
+
done
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## If coordinator-target doesn't exist
|
|
45
|
+
|
|
46
|
+
Guide the user:
|
|
47
|
+
1. The coordinator needs to run `/coordinate` first, which writes `~/.claude/coordinator-target`
|
|
48
|
+
2. Or manually set it: `echo "workspace:1 surface:5" > ~/.claude/coordinator-target`
|
|
49
|
+
3. Find the right values with: `cmux list-workspaces` then `cmux list-pane-surfaces --workspace <id>`
|