@@ -7,7 +7,7 @@ metadata:
This skill lets you manage multiple concurrent processes (like servers, watchers, or long builds) using `tmux` directly from the `Bash` tool.
-Since you are likely already running inside a tmux session, you can spawn new windows or panes to handle these tasks without blocking your main communication channel.
+You can spawn new windows or panes to handle these tasks without blocking your main communication channel.
## 1. Verify Environment & Check Status
@@ -17,7 +17,7 @@ First, verify you are running inside tmux:
echo $TMUX
```
-If this returns empty, you are not running inside tmux and these commands will not work as expected.
+If this returns empty, you are not running inside tmux. Create a new session named `agent-$(openssl rand -hex 3)`.
Once verified, check your current windows:
@@ -89,6 +89,7 @@ tmux new-window -n "server-log" -d ';' send-keys -t "server-log" "npm start" C-m
## Summary of Pattern
+0. `echo $TMUX`
1. `tmux new-window -n "ID" -d`
2. `tmux send-keys -t "ID" "CMD" C-m`
3. `tmux capture-pane -p -t "ID"`