This skill helps you manage long-running commands using tmux sessions and windows, enabling background execution and easy status checks.
npx playbooks add skill dtinth/agent-skills --skill tmux
tmux lets you run commands in the background and check on them later. When you run a normal bash command, you have to wait for it to finish. With tmux, you can start a command, let it run in the background, and check its output whenever you want.
Key Terms:
Always do this first:
# Create a new session
tmux new-session -d -s mysession
# See what sessions exist
tmux ls
# Delete a session when done
tmux kill-session -t mysession
# Create a tab called "mytab" in session "mysession"
tmux new-window -t mysession -n mytab
# See what tabs exist
tmux list-windows -t mysession
# Delete a tab
tmux kill-window -t mysession:mytab
# Run "npm start" in the "server" tab
tmux send-keys -t mysession:server 'npm start' Enter
Enter to actually run the command.# Stop a running command: Send Ctrl+C
tmux send-keys -t mysession:server C-c
Common stop signals:
C-c = Ctrl+C (interrupt)C-d = Ctrl+D (end input)# See what's on screen now
tmux capture-pane -t mysession:server -p
If you don't see the output you want yet, sleep and run again. If you don't know how long it will take, start at 15 seconds, doubling the sleep duration each time, but never sleep more than 4 minutes (240 seconds).
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.