tmux

Send keystrokes and monitor tmux panes in running terminal sessions.

2|Updated May 23, 2026
One-click install
npx skills add https://github.com/enclawed/enclawed-oss --skill tmux-enclawed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/enclawed/enclawed-oss/tree/main/skills/tmux
Command: npx skills add https://github.com/enclawed/enclawed-oss --skill tmux-enclawed

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the friction of managing long-running interactive terminal sessions by letting you inspect tmux panes, send keystrokes, and react to prompts without manually attaching to the session.

Core Features & Use Cases

  • Session Discovery: List tmux sessions on the default socket, a named socket, or across all known sockets.
  • Pane Monitoring: Poll pane scrollback for specific text and wait for prompts, confirmations, or status messages to appear.
  • Interactive Control: Send text, Enter, and special keys to running CLI tools and background workflows.
  • Use Case: Keep a Claude Code or Codex session moving by checking for a permission prompt, confirming it, and then verifying the next output appears in the target pane.

Quick Start

Use the tmux skill to inspect the target session, confirm the current pane state, and send the next keystroke to continue the interactive workflow.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I send keystrokes to an interactive CLI session running in tmux?

You can send text, Enter, and special keys to interactive CLI sessions in tmux by using shell scripts to remotely deliver input to specific panes without manually attaching.

Can I monitor tmux pane output and wait for a specific prompt to appear?

Yes, you can poll tmux pane scrollback to monitor output and wait for specific text, prompts, or status messages to appear before taking further interactive action.

How do I list active tmux sessions across different sockets?

You can discover active tmux sessions by listing sessions on the default socket, a named socket, or across all known sockets using shell scripts that query the tmux environment.

Does this approach work for approving permission prompts in Claude Code background workflows?

Yes, it supports interactive CLI workflows like Claude Code by checking for permission prompts, confirming them with keystrokes, and verifying subsequent output appears in the target tmux pane.

What do I need to use tmux for remote terminal session control?

You need tmux installed and available on your system, plus pane-capture and session-listing support to safely scrape pane content and deliver input through shell scripts.

What are the limitations of monitoring terminal sessions through tmux?

Monitoring relies on tmux pane-capture and session-listing support; if the target session is not running in tmux or lacks these capabilities, scraping output and sending keystrokes will not function.