tmux

Control tmux sessions and capture pane output programmatically.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/Sugamdeol/moltbot-with-pollinations.ai --skill tmux-sugamdeol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/Sugamdeol/moltbot-with-pollinations.ai/tree/main/skills/tmux
Command: npx skills add https://github.com/Sugamdeol/moltbot-with-pollinations.ai --skill tmux-sugamdeol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates programmatic control of tmux sessions and pane output for interactive CLIs.

Core Features & Use Cases

  • Create and manage tmux sessions from scripts and prompts.
  • Send keystrokes to specific panes and capture pane output for monitoring.
  • Coordinate multiple coding agents or CLI tasks in parallel across sessions.
  • Use isolated sockets to avoid interfering with existing sessions.

Quick Start

Start a detached tmux session on a private socket, then attach and begin sending commands.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate tmux session management from a script?

To automate tmux session management, you use a local installation to programmatically create sessions, send keystrokes to specific panes, and capture pane output. This skill orchestrates multiple terminal sessions on Linux or macOS using safe defaults and isolated sockets.

How can I capture terminal output from a tmux pane for testing?

Capturing terminal output from a tmux pane for testing requires sending keystrokes to the target pane and executing a capture-pane command. This reads back interactive CLI content and monitors session activity programmatically.

Can I coordinate multiple coding agents in parallel using tmux?

Coordinating multiple coding agents in parallel using tmux is achieved by creating isolated sessions on private sockets. This orchestrates separate CLI tasks concurrently without interfering with existing terminal sessions.

Does this tmux automation approach work on macOS and Linux?

This tmux automation approach supports both Linux and macOS environments. It relies on a local tmux installation and uses a socket for isolated sessions, ensuring safe defaults and clear error handling across both operating systems.

How do I send keystrokes to a detached tmux session?

To send keystrokes to a detached tmux session, target the specific pane via an isolated socket. The session receives the input programmatically, controlling interactive CLIs without needing to attach to the terminal.

Why use an isolated socket for tmux session automation?

Using an isolated socket for tmux session automation prevents scripts from interfering with existing terminal sessions. It provides a safe, private communication channel to create, manage, and detach sessions without disrupting user workflows.