tmux

Send keystrokes and read pane output to control tmux sessions.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/pertain99/openclaw-better --skill tmux-pertain99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/pertain99/openclaw-better/tree/main/skills/tmux
Command: npx skills add https://github.com/pertain99/openclaw-better --skill tmux-pertain99

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Control and automate tmux sessions from outside the terminal, enabling scripted input and pane capture for reliable orchestration.

Core Features & Use Cases

  • Send keystrokes to tmux sessions and read pane output to drive automation.
  • Manage multiple sessions, windows, and panes programmatically for complex workflows.
  • Use cases include automating Claude Code sessions, long-running tasks, and interactive CLI tools.

Quick Start

Connect to an existing tmux session and start sending keys and capturing pane output to automate tasks.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I send keystrokes to a tmux session for terminal automation?

You can send keystrokes to a tmux session by targeting specific panes and windows programmatically. This allows you to drive interactive terminal workflows and automate long-running tasks reliably from outside the terminal.

Can I read pane output to monitor long-running tasks in tmux?

Yes, reading pane output allows you to monitor long-running tasks and interactive CLI tools. Capturing live pane content enables scripted input and deterministic automation based on the terminal's current state.

What is the best way to automate interactive terminal workflows programmatically?

Automating interactive terminal workflows is best achieved by combining keystroke injection and pane capture. This approach enables safe interaction patterns and precise target addressing for complex orchestration across multiple sessions.

Do I need tmux installed to control terminal sessions remotely?

Yes, you need tmux installed as a prerequisite dependency. The Skill relies on native tmux commands to manage multiple sessions, windows, and panes, ensuring deterministic scripting and precise target addressing.

Does this approach work for automating Claude Code sessions in the terminal?

Yes, automating Claude Code sessions is a primary use case. By sending scripted input and capturing live pane output, you can orchestrate complex interactive terminal workflows and manage long-running tasks effectively.

How do I manage multiple tmux windows and panes for complex workflows?

You manage multiple tmux windows and panes programmatically by applying precise target addressing using tmux commands. This enables safe interaction patterns and reliable orchestration for complex terminal workflows.