tmux

CLI

Terminal multiplexer enabling multiple windows and sessions.

Persistent terminal sessions with window splitting and detach/reattach

6 curated recipes · not yet executed by the harness#multiplexer#sessions#split#terminal

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Create new named session

~99% est.
tmux new -d -s mysession

Run a command in a detached session

tmux send-keys -t mysession 'pnpm build' Enter

Read the output of a detached session

tmux capture-pane -p -t mysession

Attach to existing session

~99% est.
tmux attach -t mysession

List all sessions

~99% est.
tmux ls

Split pane horizontally

~98% est.
tmux split-window -h -t mysession

Install

Homebrewbrew install tmux
aptsudo apt install tmux

Agent 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.

Homepage ↗ISC0 views