tmux

Automate tmux session control, keystrokes, and pane output capture.

3|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/harivansh-afk/claude-code-vertical --skill tmux-harivansh-afk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/harivansh-afk/claude-code-vertical/tree/main/skill-index/skills/tmux
Command: npx skills add https://github.com/harivansh-afk/claude-code-vertical --skill tmux-harivansh-afk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill automates remote control of tmux sessions for interactive CLIs.

Core Features & Use Cases

  • Remote session management: create, attach, send commands, and manage multiple tmux sessions from scripts.
  • Pane output capture: extract real-time or historical pane contents for monitoring, logging, or feeding AI context.
  • Multi-session orchestration: discover and coordinate multiple sessions across different sockets to drive parallel workflows.

Quick Start

Create a new session: tmux -S "$SOCKET" new -d -s "agent" Attach for live monitoring: tmux -S "$SOCKET" attach -t "agent" Send a command to a session: tmux -S "$SOCKET" send-keys -t "agent" "ls -la" Enter Capture output: tmux -S "$SOCKET" capture-pane -p -J -t "agent":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 remote terminal session management for interactive CLIs?

Automate remote terminal session management by creating, attaching, and sending keystrokes to interactive CLIs across multiple sockets. This enables remote orchestration of parallel workflows and automated command execution.

Can I capture real-time pane output from a tmux session?

Yes, you can capture real-time or historical pane output from a tmux session using the capture-pane command. This extracts terminal contents for monitoring, logging, or feeding context to AI agents.

What is the best way to orchestrate multiple terminal sessions across different sockets?

The best way to orchestrate multiple sessions across sockets is using bash scripts to discover, create, and coordinate tmux sessions. This drives parallel workflows by automating keystrokes and capturing output across distinct endpoints.

Do I need any external dependencies to automate tmux session control?

No external dependencies are required to automate tmux session control. The Skill relies solely on included bash scripts and operates within a standard terminal environment to manage sessions and capture pane content.

How do I send automated keystrokes to an interactive CLI inside a tmux session?

Send automated keystrokes to an interactive CLI using the send-keys command within a tmux session. This allows scripts to remotely input commands and control terminal tools across managed sockets.