From tmux
Use tmux to run and test our interactive CLI/TUI end-to-end. Includes how to start, send keys, capture output, and cleanly stop (double Ctrl+C).
How this skill is triggered — by the user, by Claude, or both
Slash command
/tmux:tmuxThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- The user asks to test the CLI end-to-end and it is interactive (TUI prompts, key navigation).
scripts/tmuxctl.sh over raw tmux commands for repeatability.agent-cli.Prefer scripts/tmuxctl.sh over raw tmux commands for repeatability:
scripts/tmuxctl.sh start - Create new tmux sessionscripts/tmuxctl.sh run ./bin/ourcli - Run command in the sessionscripts/tmuxctl.sh keys Down Down C-m - Send keystrokesscripts/tmuxctl.sh capture - Capture pane outputscripts/tmuxctl.sh stop - Stop the TUI (double Ctrl+C)scripts/tmuxctl.sh kill - Kill the sessionC-c then C-c..tmp/tmux-agent.sockagent-cliagent-cli:0.0.tmp/ exists.tmux -S .tmp/tmux-agent.sock new-session -d -s agent-cli -c "$PWD"./bin/ourcli OR pnpm ourcli OR go run ./cmd/ourclitmux -S .tmp/tmux-agent.sock send-keys -t agent-cli:0.0 "<COMMAND HERE>" C-mC-mUp / DownC-c C-c (double)tmux -S .tmp/tmux-agent.sock capture-pane -t agent-cli:0.0 -pC-c C-c, capture output to confirm exit.C-c C-c, then tmux ... kill-session -t agent-clitmux -S .tmp/tmux-agent.sock kill-servernpx claudepluginhub nibzard/skills --plugin tmuxDebug interactive CLIs, REPLs, TUIs, watchers, and long-running terminal processes using tmux to preserve live state, send controlled input, and capture evidence. Use when commands hang, wait for input, or behave differently in a real terminal.
Automates CLI usage and test execution in Byobu Tmux sessions for managing persistent terminal environments during development.
Runs interactive CLI tools (vim, git rebase -i, REPLs) via tmux detached sessions with send-keys and capture-pane for programmatic control when standard bash piping fails.