tmux
CLITerminal multiplexer enabling multiple windows and sessions.
Persistent terminal sessions with window splitting and detach/reattach
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Create new named session
tmux new -d -s mysessionRun a command in a detached session
tmux send-keys -t mysession 'pnpm build' EnterRead the output of a detached session
tmux capture-pane -p -t mysessionAttach to existing session
tmux attach -t mysessionList all sessions
tmux lsSplit pane horizontally
tmux split-window -h -t mysessionInstall
Homebrew
brew install tmuxapt
sudo apt install tmuxAgent notes
- When to use
- Running long processes over SSH, multi-pane terminal workflows
Use from an agent
curl -s https://clihub.com/api/tools/tmux | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug tmux on the MCP server at https://clihub.com/mcp.