From df7ffdaa9c68197437518859c2eb1a540b8339da Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 19 Mar 2026 08:38:31 -0600 Subject: [PATCH] chore(tmux): don't assume already in tmux --- skills/working-with-tmux/SKILL.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skills/working-with-tmux/SKILL.md b/skills/working-with-tmux/SKILL.md index f8b260936de8509609ad7c466b77e87f31b75361..fbe07015bf36dad33ef7298c56a0bcfc4bdcea89 100644 --- a/skills/working-with-tmux/SKILL.md +++ b/skills/working-with-tmux/SKILL.md @@ -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"`