What problem does it solve?
This Skill lets you automate interactive terminal workflows by controlling tmux sessions, sending keystrokes, and extracting pane output, saving you time on repetitive tasks.
Core Features & Use Cases
- Programmable sessions: Create, attach, or monitor tmux sessions from scripts.
- Keystroke automation: Send keys to specific panes to drive interactive programs.
- Pane capture: Retrieve real-time or captured output for analysis and logging.
- Use Case: Automate a long-running Python REPL or a debugger session without manual keyboard input.
Quick Start
To start a private tmux session and monitor it yourself:
- Create a private socket directory:
export CLAUDE_TMUX_SOCKET_DIR="${TMPDIR:-/tmp}/claude-tmux-sockets"
mkdir -p "$CLAUDE_TMUX_SOCKET_DIR"
- Start a session and pipe keystrokes:
tmux -S "$CLAUDE_TMUX_SOCKET_DIR/claude.sock" new -d -s claude-session -n shell
tmux -S "$CLAUDE_TMUX_SOCKET_DIR/claude.sock" send-keys -t "claude-session":0.0 -- 'python3 -q' Enter
- Watch output:
tmux -S "$CLAUDE_TMUX_SOCKET_DIR/claude.sock" capture-pane -p -J -t "claude-session":0.0 -S -200