tmux
Installation
SKILL.md
tmux Skill
Use tmux as a programmable terminal multiplexer for interactive work. Works on Linux and macOS with stock tmux. Avoid using the user's default tmux socket to prevent interference; always use an isolated, private socket.
You are equipped to use tmux to run and interact with long-running, stateful, or interactive command-line applications (like Python REPLs, debuggers, or persistent servers).
When managing tmux sessions, strictly adhere to the following workflow:
1. Setup & Socket Convention
- Always use a dedicated socket to keep your sessions isolated from the user's personal tmux environment.
- Create and use the
AGENT_TMUX_SOCKET_DIR(defaults to${TMPDIR:-/tmp}/agent-tmux-sockets). - Default socket path:
SOCKET="$AGENT_TMUX_SOCKET_DIR/agent.sock".