tmux

Manage tmux sessions, send keystrokes, and capture pane output.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

## What problem does it solve? This Skill enables programmatic control of tmux sessions from an AI workflow, allowing you to send keystrokes, manage panes, and scrape output without manual terminal interaction.

## Core Features & Use Cases

  • Spawn and manage tmux sessions remotely.
  • Send keystrokes to panes and capture pane output for automation.
  • Orchestrate parallel CLI tasks across multiple sessions and windows.

### Quick Start Create a private socket, start a session, send commands, and capture output:

  • SOCKET_DIR="${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/clawdbot-tmux-sockets}"
  • SOCKET="$SOCKET_DIR/clawdbot.sock"
  • tmux -S "$SOCKET" new-session -d -s mysession
  • tmux -S "$SOCKET" send-keys -t mysession:0.0 'bash' Enter
  • tmux -S "$SOCKET" capture-pane -p -J -t mysession:0.0 -S -200

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 and capture pane output?

You can automate interactive terminal sessions by remotely manipulating tmux to spawn sessions, send keystrokes to panes, and capture pane output for automated CLI workflows. This removes the need for manual terminal interaction.

Can I orchestrate parallel CLI tasks across multiple tmux sessions?

Yes, you can orchestrate parallel CLI tasks across multiple sessions and windows. By managing separate tmux sessions over a private socket, you can run concurrent commands and capture individual pane outputs.

How do I send keystrokes to a specific tmux pane for terminal scripting?

To send keystrokes for terminal scripting, target the specific pane using tmux send-keys with the session and pane identifier. This allows you to programmatically input commands and control interactive CLIs.

Does tmux remote-control work on macOS and Linux environments?

Remote-control tmux automation works on supported macOS and Linux environments. You must have tmux installed and accessible on your system PATH to create sockets and manage sessions.

What is the best way to scrape output from an interactive CLI without manual intervention?

The best way to scrape output from an interactive CLI is using tmux capture-pane to programmatically retrieve text. By sending commands via send-keys and capturing the pane, you can extract output without manual intervention.