tmux

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

1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/JEROME-PRAKASH-L/openclaw --skill tmux-jerome-prakash-l
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/JEROME-PRAKASH-L/openclaw/tree/main/skills/tmux
Command: npx skills add https://github.com/JEROME-PRAKASH-L/openclaw --skill tmux-jerome-prakash-l

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 and drive programmatically. This Skill lets you list sessions, capture pane output, send keystrokes, and wait for prompts so long-running interactive CLIs can be monitored and controlled without manual terminal attachment. ## Core Features & Use Cases - Session Discovery: List and filter tmux sessions across default or custom sockets, including scanning all sockets under a socket directory. - Pane Interaction: Capture pane output (including full scrollback) and send literal text, Enter, or special keys like Ctrl-C and Escape to any session:window.pane target. - Prompt Monitoring: Poll a pane until a regex or fixed-string pattern appears, with configurable timeout, interval, and history depth. - Use Case: A background worker session asks for confirmation before proceeding. Use wait-for-text.sh to detect the prompt, inspect the last lines with capture-pane, then send "y" and Enter to approve it. ## Quick Start Ask the assistant to list my tmux sessions and capture the last 20 lines of the worker pane to check whether it is waiting for confirmation.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I send text and keys to a tmux pane from a script?

Use tmux send-keys with the target in session:window.pane format. Pass literal text with -l -- followed by the string, then send Enter separately, and use names like C-c, C-d, or Escape for special keys.

How to capture tmux pane output including scrollback?

Run tmux capture-pane -p -t target to print the visible pane to stdout, and add -S - to include the full scrollback history. You can pipe the result to tail or grep to inspect recent lines or search for prompts.

How do I wait until a tmux pane shows specific text?

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

Can I list tmux sessions on non-default sockets?

Yes, the find-sessions.sh script accepts -L for a socket name, -S for a socket path, or -A to scan all sockets under the configured socket directory. It reports each session's name, attachment state, and creation time.

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 background execution instead.