tmux

Send keystrokes and read pane output to automate tmux sessions.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/HuaGCS/Hahobot --skill tmux-huagcs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/HuaGCS/Hahobot/tree/main/hahobot/skills/tmux
Command: npx skills add https://github.com/HuaGCS/Hahobot --skill tmux-huagcs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

tmux sessions are powerful but require manual interaction; this Skill enables automated control from higher-level AI workflows by sending keystrokes and capturing pane output, reducing manual context switching.

Core Features & Use Cases

  • Remote-control multiple tmux sessions from an AI-driven workflow.
  • Send keystrokes, navigate panes, and capture pane output for downstream processing.
  • Use case: orchestrate coding agents, REPLs, and long-running shells from a single controller.

Quick Start

Open a tmux socket, create a session, and start sending commands and reading pane output with the skill.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate interactive CLI sessions with tmux?

Automating interactive CLI sessions with tmux is done by sending keystrokes to a session and capturing pane output. This enables you to control interactive shells, REPLs, and long-running processes programmatically without manual context switching.

Can I orchestrate multiple tmux sessions from an AI workflow?

Yes, you can orchestrate multiple tmux sessions from an AI workflow. The skill allows a single controller to send commands, navigate panes, and read output across different coding agents and REPLs simultaneously on Unix-like shells.

What do I need to control tmux sessions remotely on macOS?

To control tmux sessions remotely on macOS, you need a Unix-like shell and the tmux binary available on your PATH. The environment must support sending keystrokes and reading pane output to manage interactive command-line interfaces.

Does this tmux automation approach work with REPLs and coding agents?

Yes, this tmux automation approach works with REPLs and coding agents. It targets multi-session orchestration by sending keystrokes and capturing pane output, allowing you to manage interactive coding workflows from a single automated controller.

What is the best way to capture pane output from a long-running shell?

The best way to capture pane output from a long-running shell is to use a tmux automation skill that reads the pane content directly. This allows downstream processing of the output without requiring manual copying or context switching.

Are there limitations when sending keystrokes to tmux panes?

Limitations when sending keystrokes to tmux panes include requiring a tmux binary on PATH and a Unix-like shell environment on macOS or Linux. The automation depends on the target CLI accurately processing the sent keystrokes.