tmux

Send keystrokes and scrape pane output to control tmux sessions.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/lehalpaul/agents --skill tmux-lehalpaul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/lehalpaul/agents/tree/main/skills/tmux
Command: npx skills add https://github.com/lehalpaul/agents --skill tmux-lehalpaul

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows for the remote control of tmux sessions, enabling the execution of commands and retrieval of output from interactive command-line interfaces.

Core Features & Use Cases

  • Interactive CLI Management: Run and interact with applications that require a TTY, such as development environments or debugging tools.
  • Output Scraping: Capture and analyze the output from tmux panes for monitoring or automation.
  • Parallel Agent Orchestration: Launch and manage multiple AI agents or processes concurrently within separate tmux sessions.

Quick Start

Use the tmux skill to start a new detached tmux session named 'my-session' and run the command 'ls -l' inside it.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I control a remote tmux session and run commands inside it?

You can control a remote tmux session by sending keystrokes to a detached session and scraping the pane output. This enables execution of commands and retrieval of output from interactive CLI tasks.

Can I run interactive TUI applications within tmux for automation?

Yes, you can run interactive TUI applications within tmux using safe input methods. The skill manages isolated sockets and targets dynamic sessions to ensure TTY-dependent interfaces function correctly.

How do I orchestrate multiple coding agents in parallel using terminal sessions?

You orchestrate multiple coding agents by launching them concurrently within separate tmux windows and panes. This facilitates parallel process management and isolated execution for each agent.

Does this approach support capturing output from specific terminal panes for monitoring?

Yes, output scraping from specific tmux panes is fully supported. You can capture and analyze the terminal output to monitor ongoing interactive command-line tasks or automate responses based on pane content.

What is the best way to manage isolated tmux sockets for distinct automation tasks?

The best way to manage isolated tmux sockets is through dynamic session targeting. This approach supports safe input methods and prevents overlap when orchestrating parallel processes within distinct environments.

Why use tmux for remote CLI session management instead of standard background processes?

Using tmux for remote CLI session management provides interactive TTY support that standard background processes lack. It allows sending keystrokes to TUI applications and scraping pane output for real-time monitoring.