tmux

Control tmux sessions and panes to send input, capture output, and monitor interactive CLI prompts.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/AmirulAndalib/Vilvona-AI --skill tmux-amirulandalib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/AmirulAndalib/Vilvona-AI/tree/main/skills/tmux
Command: npx skills add https://github.com/AmirulAndalib/Vilvona-AI --skill tmux-amirulandalib

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tmux, and includes scripts (resource) components.

What problem does it solve? Interactive command-line programs running inside tmux sessions are hard to supervise programmatically: you cannot easily read their output, respond to prompts, or check whether a long-running job is waiting for confirmation. This Skill provides the commands and helper scripts to inspect, drive, and monitor tmux sessions and panes from an automated workflow. ## Core Features & Use Cases - Session and pane inspection: List sessions, windows, and panes, and capture pane output including full scrollback for review. - Input injection: Send literal text, Enter, and special keys like Ctrl-C or Escape to any target pane using the session:window.pane addressing format. - Prompt monitoring: Poll pane output for patterns such as confirmation prompts and respond only when the prompt is understood, using the included find-sessions.sh and wait-for-text.sh helpers. - Use Case: A background worker process in a detached tmux session pauses at a "proceed?" prompt. Use wait-for-text.sh to detect the prompt, capture the pane to verify context, then send "y" followed by Enter to let the job continue. ## Quick Start Ask the assistant to list the running tmux sessions and capture the recent output of a specific pane to check what it is waiting for.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I send input to a tmux pane from a script?

Use tmux send-keys with the target in session:window.pane format. Send literal text with the -l flag followed by --, then send Enter as a separate command to avoid paste and newline issues.

How to capture the output of a tmux pane?

Run tmux capture-pane with the -p flag to print pane contents to stdout, targeting the pane as session:window.pane. Add -S - to include the full scrollback history instead of only the visible screen.

How do I wait for specific text to appear in a tmux pane?

Use the wait-for-text.sh helper script with a target pane and a regex or fixed-string pattern. It polls the pane output at a configurable interval and exits when the pattern matches or a timeout is reached.

Does this work with multiple tmux sockets?

Yes. The find-sessions.sh helper accepts -L for a socket name, -S for a socket path, or -A to scan all sockets under the configured socket directory, so sessions on non-default sockets can be discovered.

When should I use tmux instead of a normal shell command?

Use tmux control for existing interactive sessions that need ongoing input or monitoring. For one-shot commands use a normal shell, and for new non-interactive background jobs use standard background execution instead.