Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✓→✗ | ▼ Worse | -16% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -10% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -7% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 11% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 1% | 0% |
Use tmux to drive interactive terminal sessions, including TUI workflows like ralph-tui. tmux lets you send keystrokes, capture screen output, and keep processes running between steps.
ralph-tui or any interactive CLI promptstmux installed (pre-installed on macOS)Verify:
bashtmux -V
Create a detached session:
bashtmux new-session -d -s <name>
Send commands (append Enter to execute):
bashtmux send-keys -t <name> "<command>" Enter
Capture screen output:
bashtmux capture-pane -t <name> -p
Kill session when done:
bashtmux kill-session -t <name>
Use send-keys with key names:
EnterC-c (Ctrl-C)C-d (Ctrl-D)TabEscapeUp, Down, Left, RightExamples:
bashtmux send-keys -t <name> Up tmux send-keys -t <name> C-c
bashtmux new-session -d -s ralph-tui tmux send-keys -t ralph-tui "cargo run -p ralph-tui" Enter
bashtmux send-keys -t ralph-tui Down tmux send-keys -t ralph-tui Enter
bashtmux capture-pane -t ralph-tui -p -S -200
Use -S -200 to capture the last 200 lines when the screen is noisy.
capture-pane to confirm health (look for "listening" or "ready" text).C-c then kill-session.Example:
bashtmux new-session -d -s ralph-web tmux send-keys -t ralph-web "cargo run -p ralph-cli -- web" Enter tmux capture-pane -t ralph-web -p | rg -n "listening|ready" tmux send-keys -t ralph-web C-c tmux kill-session -t ralph-web
Other measured skills in the registry, with their headline benchmark lift.