--- name: tmux description: Manage tmux terminal sessions disable-model-invocation: true metadata: wirken: requires: bins: [tmux] permissions: tools: allow: [exec] egress: mode: deny inference: allow: ["*"] --- # Tmux Manage tmux sessions, windows, and panes. ## Sessions - List: `tmux ls` - New: `tmux new-session -d -s ` - Kill: `tmux kill-session -t ` - Send command: `tmux send-keys -t '' Enter` - Capture output: `tmux capture-pane -t -p` ## Windows and panes - New window: `tmux new-window -t ` - Split horizontal: `tmux split-window -h -t ` - Split vertical: `tmux split-window -v -t ` - List windows: `tmux list-windows -t ` ## Tips - Use `tmux send-keys` + `tmux capture-pane` to run commands and read output in background sessions - Always check `tmux ls` before creating new sessions