From d4573448068bef4d64a99c3d1cada88cccde7455 Mon Sep 17 00:00:00 2001 From: Sheldon Finlay Date: Fri, 27 Mar 2026 12:41:02 -0400 Subject: [PATCH] feat: auto-open terminal window attached to tmux session --- skills/run/SKILL.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/skills/run/SKILL.md b/skills/run/SKILL.md index f625a8e..bb924bf 100644 --- a/skills/run/SKILL.md +++ b/skills/run/SKILL.md @@ -113,14 +113,18 @@ LOOP_CMD=".loop/loop.sh" tmux kill-session -t agent-loop 2>/dev/null; tmux new-session -d -s agent-loop -c "$LOOP_CMD" ``` -7. Tell the user to attach: +7. Open a new terminal window attached to the tmux session: -> **Loop running in tmux.** To watch it live, run: -> ``` -> ! tmux attach -t agent-loop -> ``` -> - **Detach** (return to Claude Code): `Ctrl+B` then `D` -> - **Stop the loop**: `Ctrl+C` in the tmux session +```bash +osascript -e 'tell application "Terminal" to do script "tmux attach -t agent-loop"' +``` + +8. Tell the user: + +> **Loop launched.** A terminal window opened with the live session. +> - **Detach** (keep loop running, close window): `Ctrl+B` then `D` +> - **Stop the loop**: `Ctrl+C` in the tmux window +> - **Reattach later**: `tmux attach -t agent-loop` > - Ask me "status" anytime and I'll check progress for you. ---