tmux

Control tmux sessions by sending keystrokes and reading pane output for interactive CLI management. Send text input and special keys (Enter, Ctrl+C, Ctrl+Z) to tmux panes; capture output via capture-pane to monitor long-running processes and interactive prompts Target sessions, windows, and panes using session:window.pane notation; navigate and manage multiple parallel sessions programmatically Designed for monitoring Claude Code sessions and approving interactive prompts; sessions persist across SSH disconnects Requires tmux to be installed; use for interactive applications only, not one-off commands or non-interactive scripts

INSTALLATION
npx skills add https://github.com/steipete/clawdis --skill tmux
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

tmux send-keys -t shared:0.0 -l -- "Please continue"

tmux send-keys -t shared:0.0 Enter

Special keys:

tmux send-keys -t shared:0.0 C-c

tmux send-keys -t shared:0.0 C-d

tmux send-keys -t shared:0.0 Escape

Use -l -- for arbitrary text. Split text and Enter to avoid paste/newline surprises.

Sessions

tmux new-session -d -s worker

tmux rename-session -t old new

tmux kill-session -t worker

Prompt checks

tmux capture-pane -t worker-3 -p | tail -20

tmux capture-pane -t worker-3 -p | rg "proceed|permission|Yes|No|❯"

Approve/select only when the prompt is understood:

tmux send-keys -t worker-3 -l -- "y"

tmux send-keys -t worker-3 Enter

Helpers

  • scripts/find-sessions.sh: discover sessions.
  • scripts/wait-for-text.sh: wait until pane output contains text.

Notes

  • capture-pane -p prints to stdout for scripts.
  • -S - captures full scrollback.
  • tmux sessions persist across SSH disconnects.
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card