tmux

Send keystrokes and scrape pane output to control tmux sessions.

375|38|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/CraftOS-dev/CraftBot --skill tmux-craftos-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/CraftOS-dev/CraftBot/tree/main/skills/tmux
Command: npx skills add https://github.com/CraftOS-dev/CraftBot --skill tmux-craftos-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of interactive terminal sessions, enabling efficient execution and monitoring of multiple command-line processes within a single interface.

Core Features & Use Cases

  • Interactive CLI Management: Run and interact with command-line applications, especially those requiring a TTY, in a structured manner.
  • Parallel Agent Orchestration: Ideal for running multiple AI coding agents or development tasks concurrently in separate panes.
  • Output Scraping: Capture and analyze the output from terminal panes for monitoring progress or detecting specific patterns.
  • Use Case: Launch five separate coding agents, each working on a different bug fix in its own project directory, and monitor their progress through their respective terminal outputs.

Quick Start

Use the tmux skill to start a new detached session named 'my-session' and run the command 'htop' inside it.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I control interactive terminal sessions that require a TTY?

You can control interactive terminal sessions by sending keystrokes to specific tmux panes and scraping their output. This allows automated interaction with command-line applications requiring a TTY for deterministic task execution.

What is the best way to run multiple coding agents in parallel?

Running multiple coding agents in parallel is best achieved by creating separate tmux sessions or panes for each agent. You can monitor their completion through output scraping and shell prompt detection across the respective terminal sessions.

Can I capture and analyze output from specific terminal panes for monitoring?

Yes, you can capture and analyze output from specific terminal panes by scraping the session output. This enables monitoring progress or detecting specific patterns within interactive command-line interfaces during execution.

How do I start a detached session and execute a command inside it?

To start a detached session, create a new named session and send a command to it using safe input methods. This dynamically creates the session and executes the desired command within the targeted terminal pane.

Does terminal session management work for monitoring completion via shell prompts?

Terminal session management supports monitoring completion via shell prompt detection. By scraping pane output, the system identifies when a command finishes executing and returns control to the shell prompt.

Are there limitations when sending keystrokes to interactive CLIs?

When sending keystrokes to interactive CLIs, limitations arise if the application does not use a standard shell prompt or if output scraping fails to capture dynamic interface changes accurately, hindering deterministic task completion.