tmux

Create, control, and capture tmux sessions across Unix and Windows.

4|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/lirrensi/agent-cli-helpers --skill tmux-lirrensi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/lirrensi/agent-cli-helpers/tree/main/skills/tmux
Command: npx skills add https://github.com/lirrensi/agent-cli-helpers --skill tmux-lirrensi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Managing multiple interactive terminal sessions across Linux/macOS and Windows is error-prone and tedious. This Skill provides a unified, scriptable way to create, control, and monitor tmux (and psmux) sessions from a CLI, reducing context switching and ensuring consistent session state.

Core Features & Use Cases

  • Create, attach, and kill named sessions across Unix and Windows.
  • Send keystrokes, run commands, and capture output with deterministic behavior.
  • Sync and monitor long-running processes with optional prompt-based or fixed-time waiting.
  • Use cases include remote SSH session orchestration, parallel task orchestration for agents, and automated session workflows.

Quick Start

Install tmux (and psmux for Windows) and start a named session with tmx, then use tmx sync to send commands and capture output.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I manage multiple terminal sessions across Linux and Windows?

Terminal session management across platforms uses tmux for Unix and psmux for Windows. This Skill provides a unified CLI to create, attach, and kill named sessions, ensuring consistent state and reducing manual context switching.

Can I send keystrokes and capture output from an automated SSH session?

Yes, you can send keystrokes and capture output from an automated SSH session by sending commands to a named tmux session and using deterministic sync functions. This supports remote orchestration with optional prompt-based or fixed-time waiting for reliable results.

Does tmux work on Windows for cross-platform terminal automation?

Tmux is a Unix tool, but this Skill supports Windows terminal automation by using psmux. It orchestrates cross-platform session creation and control, enabling consistent terminal automation across both Unix and Windows environments.

What is the best way to orchestrate parallel tasks for agents in a terminal?

The best way to orchestrate parallel tasks for agents is using scriptable session lifecycle tooling that creates multiple named tmux sessions. You can send commands, monitor long-running processes, and capture outputs with deterministic behavior across environments.

How do I sync and monitor a long-running process in a terminal session?

To sync and monitor a long-running process in a terminal session, you use prompt-based syncing or fixed-time waiting after sending a command. This ensures deterministic behavior by capturing output only after the process completes or reaches a specific state.