tmux

Installation
SKILL.md

tmux

Use the tmux CLI to interact with running tmux sessions.

Golden Rule: Always Resolve pane_id First

Before interacting with any pane, resolve its unique pane_id. Use this as the canonical handle for all subsequent operations — it is stable, unambiguous, and survives window/session renames.

# From a user-supplied number (e.g. "pane 1" in the current window)
PANE_ID=$(tmux display-message -t :.1 -p '#{pane_id}')   # → %42

# From a full target
PANE_ID=$(tmux display-message -t 0:2.1 -p '#{pane_id}')
Installs
1
First Seen
Apr 5, 2026