tmux

Send keystrokes to tmux panes and scrape output for TTY automation.

2|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/papachong/RHClaw --skill tmux-papachong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/papachong/RHClaw/tree/main/RHClaw-Desktop/src-tauri/skills/tmux
Command: npx skills add https://github.com/papachong/RHClaw --skill tmux-papachong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tmux, and includes scripts (resource) components.

What problem does it solve?

Enable automated control of interactive TTY programs by sending keystrokes and scraping pane output so agents or automation can interact with programs that require a real terminal.

Core Features & Use Cases

  • Remote session orchestration: Create and manage isolated tmux sockets and sessions to run multiple interactive agents in parallel.
  • Input emulation and monitoring: Safely send literal keystrokes or control keys to targeted panes and capture recent pane history for programmatic inspection.
  • Helper tooling: Includes scripts to find sessions across sockets and to poll a pane for a regex or fixed string, useful for detecting prompts or completion.
  • Use case: Run several coding agents across separate worktrees, send commands to each agent's REPL, wait for prompt markers, and then capture their output for aggregation.

Quick Start

Start or attach to a tmux socket, send keys to the target pane, and capture its recent output for inspection.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate interactive terminal sessions and capture output programmatically?

You can automate interactive terminal sessions by sending keystrokes to a targeted tmux pane and scraping its recent output. This allows agents to interact with TTY programs that require a real terminal, capturing pane history for programmatic inspection.

Can I run multiple coding agents in parallel using isolated tmux sockets?

Yes, you can run multiple coding agents in parallel by creating and managing isolated tmux sockets and sessions. This enables you to orchestrate separate interactive agents across different worktrees simultaneously.

How do I wait for a specific prompt or text to appear in a terminal session before sending the next command?

You can wait for a specific prompt by using helper scripts to poll a tmux pane for a regex or fixed string. This detects completion markers or prompts, allowing you to sequence keystrokes accurately.

Does this tmux orchestration tool work on both macOS and Linux?

Yes, this tmux orchestration tool works on both macOS and Linux. It requires the tmux executable to be available on your system's PATH to manage sessions and send keystrokes.

What is the best way to control a REPL or interactive CLI from an automation script?

The best way to control a REPL from an automation script is by emulating input through literal keystrokes sent to a targeted tmux pane. You can then capture the pane's recent output to verify the REPL's response.

How do I find active tmux sessions across different isolated sockets?

You can find active tmux sessions across different isolated sockets by using the included helper scripts. These scripts locate sessions globally, allowing you to target the correct pane for input emulation and output scraping.