tmux

Automate tmux session multiplexing and background task orchestration via CLI commands.

68|1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/knoopx/pi --skill tmux-knoopx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/knoopx/pi/tree/main/agent/skills/tmux
Command: npx skills add https://github.com/knoopx/pi --skill tmux-knoopx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

tmux enables reliable session multiplexing and background process management within single-terminal environments.

Core Features & Use Cases

  • Session multiplexing and detachment for long-running tasks
  • Capture and inspect command output from any session
  • Reattach to or manage multiple simultaneous terminal workflows
  • Orchestrate deterministic task sequences across sessions

Quick Start

tmux new-session -d -s myserver 'python -m http.server 8080' tmux has -t myserver || tmux new-session -d -s myserver 'python -m http.server 8080' tmux attach -t myserver

Frequently Asked Questions about tmux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage long-running terminal processes in detached sessions?

You can manage long-running processes in detached sessions by creating a background tmux session using new-session with the -d flag, ensuring your terminal workflows continue running without an active connection.

Can I capture and inspect command output from a background terminal session?

Yes, you can capture and inspect command output from a background terminal session by using tmux capture-pane, which retrieves the visible text content from any specified active or detached session pane.

Do I need tmux installed to orchestrate concurrent workflows on headless servers?

Yes, you need tmux installed locally or on your headless server, as this orchestration relies entirely on tmux CLI commands like new-session, send-keys, and attach to manage concurrent workflows.

What is the best way to reattach to multiple simultaneous terminal workflows?

The best way to reattach to simultaneous terminal workflows is using the tmux attach command with the target session name, allowing you to reconnect to existing background tasks or manage them concurrently.

How do I send commands to a detached tmux session programmatically?

You can send commands to a detached tmux session programmatically by using the send-keys CLI command, which allows deterministic orchestration and task sequence execution across multiple target sessions.