tmux

Send keystrokes and capture output from tmux sessions programmatically.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/clsdavid/autocrab --skill tmux-clsdavid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/clsdavid/autocrab/tree/main/skills/tmux
Command: npx skills add https://github.com/clsdavid/autocrab --skill tmux-clsdavid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to interact with and manage your tmux sessions programmatically, enabling automation of terminal-based workflows and real-time monitoring of processes within tmux.

Core Features & Use Cases

  • Remote Control: Send keystrokes and commands to specific tmux panes and windows.
  • Output Scraping: Capture and analyze the output of running processes within tmux sessions.
  • Session Management: List, create, and kill tmux sessions and windows.
  • Use Case: Monitor a long-running data processing job in a tmux session, automatically send approval commands when prompted, and scrape its output for status updates.

Quick Start

Use the tmux skill to send the command 'ls -l' to the 'main' session, pane 0.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate sending keystrokes to a background process in a tmux session?

You can automate tmux sessions by programmatically sending keystrokes and commands to specific panes. This enables interactive CLI management, allowing you to control background processes and automatically respond to prompts.

Can I capture and scrape terminal output from a running tmux pane?

Yes, you can capture and scrape pane output from running processes within tmux sessions. This output scraping capability allows you to monitor long-running jobs and analyze status updates in real-time.

What do I need to install before using this tmux automation skill?

You need the 'tmux' binary installed and accessible in your system's PATH. This prerequisite ensures the skill can interact with your existing terminal environment to manage sessions and send commands.

How do I list, create, or kill terminal sessions programmatically?

You can manage tmux sessions programmatically to list, create, and kill active sessions and windows. This session management functionality allows you to orchestrate terminal workflows and clean up background processes automatically.

Is there a way to monitor long-running CLI jobs and send approval commands automatically?

Yes, by combining output scraping and keystroke sending, you can monitor a long-running data processing job in tmux, detect when it prompts for input, and automatically send approval commands to keep it running.