What problem does it solve?
Remote control tmux sessions for interactive command-line work. Send keystrokes and scrape pane output from Python REPLs, debuggers, and other interactive terminal applications. Use when working with interactive CLI tools, debugging sessions, or REPL-driven development.
Core Features & Use Cases
- Programmable control: Send keys to specific tmux sessions and panes; capture and inspect pane output for debugging.
- Session isolation: Use private sockets to avoid clashing with your personal sessions.
- Observed workflows: Ideal for interactive CLIs, debugging sessions, and REPL-driven development.
Quick Start
Set up an isolated socket and start a session:
- Create a private socket directory, e.g., SOCKET_DIR=${TMPDIR:-/tmp}/claude-tmux-sockets and mkdir -p "$SOCKET_DIR"
- Define SOCKET="$SOCKET_DIR/claude.sock" and SESSION=claude-python
- Start a new tmux session: tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
- Send a command: tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'python3 -q' Enter
- Capture output: tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200