tmux

Send keystrokes to tmux sessions and capture pane output.

130|16|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/z80dev/lemon --skill tmux-z80dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/z80dev/lemon/tree/main/apps/lemon_skills/priv/builtin_skills/tmux
Command: npx skills add https://github.com/z80dev/lemon --skill tmux-z80dev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

tmux provides powerful terminal multiplexing, but automating multi-pane interactions and monitoring outputs across sessions can be tedious without programmatic control. This Skill enables remote, script-driven management of tmux sessions, allowing you to automate keystrokes and extract pane text for downstream analysis.

Core Features & Use Cases

  • Remote control of tmux sessions: create, attach, send keys, and manage windows/panes programmatically.
  • Pane output capture: fetch real-time or historical pane content for logging, debugging, or feeding into agents.
  • Orchestrating coding agents: run multiple agents in parallel in separate sessions and monitor prompts and results.

Quick Start

Start a detached tmux session and programmatically drive a shell inside it to send commands and capture output across panes.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate tmux session control and send keystrokes programmatically?

Automating tmux session control involves using shell scripts to create detached sessions, send keystrokes, and manage windows or panes programmatically. This enables remote, script-driven orchestration of multiple interactive shells without manual input.

Can I capture real-time pane output from tmux sessions for logging or debugging?

Yes, capturing tmux pane output is done by scraping text from specific panes programmatically. This fetches real-time or historical pane content, providing structured data for logging, debugging, or feeding into downstream agents.

What is tmux session orchestration used for when running coding agents?

Tmux session orchestration is used to run multiple coding agents in parallel across separate sessions. It allows you to programmatically monitor prompts, send input, and extract results from each pane simultaneously.

Do I need tmux installed locally to use scripts for remote terminal automation?

Yes, tmux must be installed on the target system to use shell scripts for remote terminal automation. The Skill provides scripts that rely on the tmux binary to create sessions, send input, and capture text.

What's the best way to monitor multiple interactive shells across remote sessions?

Monitoring multiple interactive shells is best handled by creating detached tmux sessions and scraping pane output. This approach provides real-time visibility across panes without maintaining multiple active terminal connections.