tmux

Send keystrokes and capture pane output from tmux sessions.

330|61|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/eggent-ai/eggent --skill tmux-eggent-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/eggent-ai/eggent/tree/main/bundled-skills/tmux
Command: npx skills add https://github.com/eggent-ai/eggent --skill tmux-eggent-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automate the manual management of tmux sessions by enabling an AI to attach to sessions, send keystrokes, and scrape pane output for interactive CLI workflows.

Core Features & Use Cases

  • Programmatic tmux session control: attach, create, navigate, and manage multiple sessions and panes.
  • Output capture and input automation: read pane text and send keys to drive interactive prompts and applications.
  • Real-world use: automate Claude Code or other long-running terminal tasks that require multiple windows and panes.

Quick Start

Attach to a running tmux session and begin sending keystrokes to a target pane 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 sending keyboard input to a tmux session?

Automate tmux sessions by programmatically sending keystrokes to target panes. This allows you to drive interactive CLI workflows and respond to prompts without manual typing, using safe input handling to avoid unintended commands.

Can I capture pane output from a running tmux session programmatically?

Yes, you can capture pane output by scraping text directly from targeted tmux sessions. This enables monitoring long-running processes and reading interactive terminal output for automated workflow management.

How do I manage multiple terminal panes for long-running processes?

Manage multiple terminal panes by programmatically navigating windows and sessions via the tmux binary. You can attach, create, and switch between panes to orchestrate complex interactive workflows like Claude Code.

What is the best way to control interactive CLI workflows from an AI agent?

Control interactive CLI workflows by attaching an AI to a tmux session to send keystrokes and scrape pane output. This method applies safe input handling and clear session targeting to automate terminal tasks effectively.

Does this tmux automation approach work with long-running terminal tasks?

Yes, this tmux automation works with long-running terminal tasks by attaching to active sessions and capturing output. It is specifically designed for managing interactive applications that require multiple windows and panes over time.

How do I ensure safe input handling when automating tmux sessions?

Ensure safe input handling when automating tmux sessions by using clear session targeting for the tmux binary. This prevents sending unintended commands to the wrong pane and securely manages interactive prompts.