tmux

Send keystrokes and scrape pane output from tmux sessions.

437|40|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/HazAT/pi-config --skill tmux-hazat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/HazAT/pi-config/tree/main/skills/tmux
Command: npx skills add https://github.com/HazAT/pi-config --skill tmux-hazat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows for the programmatic control of interactive command-line applications like Python interpreters, debuggers, and other TTY-based tools, enabling automated interaction and output scraping.

Core Features & Use Cases

  • Remote Session Control: Manage tmux sessions and panes remotely via a private socket.
  • Input Sending: Safely send keystrokes and commands to running processes within tmux panes.
  • Output Monitoring: Capture and analyze the output from interactive sessions.
  • Use Case: Automate debugging sessions by starting gdb, setting breakpoints, and capturing variable states, or run a Python script and capture its output for analysis.

Quick Start

Start a new tmux session named 'claude-python' on a private socket and run 'python3 -q' within it.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate interactive CLI applications and capture their output programmatically?

You can automate interactive CLI applications by using tmux to send keystrokes to running processes and scrape pane output. This enables programmatic control of TTY-based tools like Python interpreters and debuggers for automated interaction.

Can I control a Python interpreter or GDB debugger running inside a tmux session remotely?

Yes, you can control interactive CLIs like Python and GDB remotely via a private tmux socket. This allows you to start sessions, send commands, set breakpoints, and capture variable states or output for analysis.

What is the best way to monitor and wait for specific text patterns in terminal output?

The best way to monitor terminal output is by using helper scripts that wait for specific text patterns within tmux panes. This allows you to capture and analyze output from interactive sessions reliably.

Does this tmux automation approach require a specific socket configuration for session isolation?

Yes, it uses a private socket convention for session isolation. This ensures that remote control of tmux sessions and panes remains separated and secure when sending input or scraping output.

Are there limitations to scraping output from interactive TTY applications with tmux?

Scraping output from interactive TTY applications relies on capturing visible pane content, which may be limited by terminal scrollback buffer sizes. Complex output streams or rapidly updating displays could challenge pattern matching accuracy.