tmux

Send keystrokes and capture pane output from tmux sessions.

9|2|Updated Nov 27, 2008
One-click install
npx skills add https://github.com/adragomir/dotfiles --skill tmux-adragomir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/adragomir/dotfiles/tree/main/.config/pi/agent/skills/tmux
Command: npx skills add https://github.com/adragomir/dotfiles --skill tmux-adragomir

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remote control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output. Works on Linux and macOS with stock tmux; avoid custom config by using a private socket.

Core Features & Use Cases

  • Remote control of tmux sessions from an automation agent.
  • Private socket usage to keep client sessions isolated.
  • Easy session discovery, targeting, and pane output retrieval for debugging and scripting scenarios.

Quick Start

Start a private tmux session using a dedicated socket and connect the agent to it to begin interactive control.

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 with tmux?

You can automate interactive terminal sessions with tmux by using a private socket to send keystrokes and capture pane output for debugging and remote scripting workflows. This approach allows an automation agent to control session execution and retrieve results programmatically.

How do I capture output from a specific tmux pane for debugging?

To capture output from a specific tmux pane for debugging, target the desired session and pane through the automation agent, which retrieves the pane output directly. This enables monitoring of interactive CLI applications and scripting scenarios without manual intervention.

Does remote control of tmux sessions work on macOS and Linux?

Remote control of tmux sessions works across both macOS and Linux using stock tmux installations. You can manage session discovery, targeting, and pane output retrieval consistently across these operating systems for your development and automation tasks.

Do I need a custom tmux configuration to automate sessions?

You do not need a custom tmux configuration to automate sessions; instead, use a private socket to keep client sessions isolated. This avoids configuration conflicts and ensures a clean environment for sending keystrokes and scraping pane output.

What is the best way to isolate automated tmux sessions from local use?

The best way to isolate automated tmux sessions from local use is to start a private tmux session using a dedicated socket. This separates the automation agent's controlled sessions from your standard client sessions, preventing interference during interactive control and cleanup.