tmux

Send keystrokes and capture pane output to control tmux sessions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

tmux Session Control enables programmatic management of interactive tmux sessions by sending keystrokes and reading pane output, reducing manual interaction overhead.

Core Features & Use Cases

  • Send keys to tmux sessions to automate prompts, tests, and workflows.
  • Capture pane output and scrollback for real-time monitoring and logging.
  • Navigate and manage windows/panes, create or attach to sessions, and coordinate multi-session tasks.

Quick Start

Start a tmux session and let the AI drive inputs and read outputs to automate an interactive workflow.

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 pane output?

You can automate interactive terminal sessions by sending keystrokes to tmux and capturing pane output to programmatically drive prompts, tests, and long-running tasks. This reduces manual interaction overhead by reading scrollback and injecting inputs.

Can I manage multiple tmux windows and panes from a script?

Yes, you can manage multiple tmux windows and panes from deterministic shell scripts. The scripts list active sessions, navigate panes, and coordinate multi-session tasks by sending targeted keystrokes to specific terminal outputs.

What do I need to control tmux sessions programmatically?

You need the tmux binary available on your system and grep installed as a dependency. The automation uses deterministic shell scripts to list sessions, capture output, and send input without requiring additional frameworks.

Does tmux automation work for orchestrating long-running workflows and testing scripts?

Yes, tmux automation works for orchestrating long-running workflows and testing interactive scripts by sending keystrokes and reading pane output. It manages Claude Code workflows and coordinates tasks across multiple panes and windows.

What's the best way to monitor real-time terminal output in tmux?

The best way to monitor real-time terminal output in tmux is by capturing pane output and scrollback programmatically. This enables real-time monitoring and logging of interactive sessions without manual observation.

Why is my tmux session automation not capturing the correct pane output?

Tmux session automation may fail to capture correct pane output if the tmux binary is not properly installed or if the target session is not attached. Ensure tmux and grep dependencies are available and sessions are active before sending keystrokes.