From 5e456cff6d80c209ffa733105ac403d12d739984 Mon Sep 17 00:00:00 2001 From: Sheldon Finlay Date: Fri, 27 Mar 2026 12:53:26 -0400 Subject: [PATCH] fix: drop osascript, use universal ! tmux attach approach --- skills/run/SKILL.md | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/skills/run/SKILL.md b/skills/run/SKILL.md index b2ca227..6c56499 100644 --- a/skills/run/SKILL.md +++ b/skills/run/SKILL.md @@ -113,25 +113,17 @@ 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. Open the tmux session for the user. Try platform-specific methods: +7. Tell the user: -**macOS** (check `uname` = Darwin): -```bash -osascript -e 'tell application "Terminal" to do script "tmux attach -t agent-loop"' -``` - -**Linux/other** — cannot open a terminal programmatically. Tell the user: -``` -! tmux attach -t agent-loop -``` - -8. Tell the user: - -> **Loop launched.** -> - **Detach** (keep loop running): `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. +> **Loop launched.** Watch it live: +> ``` +> ! tmux attach -t agent-loop +> ``` +> (Type the above — it opens the session right here in your terminal.) +> +> - **Detach** (return to Claude Code): `Ctrl+B` then `D` +> - **Stop the loop**: `Ctrl+C` +> - Ask me "status" anytime and I'll check progress. ---