tmux

Send keystrokes and capture pane output in tmux sessions.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill tmux-augustscl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/augustscl/awesome-xiawang-skills/tree/main/tmux-1.0.0
Command: npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill tmux-augustscl

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a programmatic way to control interactive terminal sessions managed by tmux, eliminating manual typing and enabling automated interactions with REPLs and interactive CLIs.

Core Features & Use Cases

  • Send keystrokes and control: programmatically send literal characters and control keys to targeted tmux panes.
  • Capture pane output: scrape recent pane history or full output to monitor progress or collect results.
  • Session discovery and orchestration: find sessions across isolated sockets, run parallel agents, and wait for prompts with helper scripts.
  • Use Case: Run multiple coding agents in separate tmux sessions, send commands, and capture output to detect completion.

Quick Start

Connect to the tmux socket, start or attach a session, send keystrokes to run an interactive CLI, and capture the pane 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 sending keystrokes to a tmux session programmatically?

To automate keystrokes in tmux sessions, you can use helper scripts to send literal characters and control keys directly to targeted panes. This eliminates manual typing and enables automated interactions with interactive CLIs and REPLs.

How do I capture terminal output from a tmux pane to monitor CLI progress?

You can capture tmux pane output by scraping recent pane history or full terminal output. This allows you to monitor shell progress, poll panes for completion, and collect results from automated interactive sessions.

Can I run and monitor multiple coding agents in parallel using tmux?

Yes, you can orchestrate parallel coding agents by running them in separate tmux sessions across isolated sockets. Helper scripts allow you to discover sessions, send commands, and wait for prompts with timeouts to coordinate execution.

Does this tmux control method work on both macOS and Linux?

Remote tmux session control works on both macOS and Linux. It requires the tmux binary in your PATH and allows configurable socket directories to manage isolated sessions effectively across these operating systems.

What is the best way to wait for a REPL prompt to appear in a terminal session?

The best way to wait for a REPL prompt is to use helper scripts that poll the tmux pane output and wait for specific text with configurable timeouts. This detects when an interactive session is ready for the next automated command.