One-click install
npx skills add https://github.com/freire19/Mythos --skill tmux-freire19
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/freire19/Mythos/tree/main/skills/tmux
Command: npx skills add https://github.com/freire19/Mythos --skill tmux-freire19

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

tmux sessions running interactive CLI agents are hard to manage remotely without losing context, and it can be painful to safely observe output and provide approval-like input.

Core Features & Use Cases

  • Keystroke control of interactive terminals: Send text, special keys, and Enter safely to the correct pane/session.
  • Pane output scraping: Capture the latest lines or full scrollback from a target pane for monitoring and debugging.
  • Session and pane navigation: List sessions/windows, select targets, and perform basic lifecycle actions like kill/rename.
  • Use case: When an agent inside tmux prompts for confirmation, capture the prompt output, then send the appropriate response to the exact worker session.

Quick Start

Use the tmux skill to capture the last 20 lines of output from the shared session pane by running a request like: capture-pane last 20 lines from session shared.

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 terminal session remotely?

To send keystrokes to an interactive terminal session remotely, target the specific tmux pane using session:window.pane coordinates and inject text or special keys. This allows you to safely control interactive CLI agents and provide input without losing context.

How do I capture output from a tmux pane for monitoring long-running tasks?

To capture pane output from a tmux session, target the specific pane using session:window.pane coordinates and scrape the terminal display. You can capture the latest lines or full scrollback to monitor long-running tasks and debug interactive CLI agents.

Can I automate prompt approval for an agent running inside tmux?

Yes, you can automate prompt approval for an agent running inside tmux by scraping the pane output to detect confirmation requests. Once detected, send the appropriate response keystrokes directly to the exact worker session to approve the prompt.

Do I need a specific tmux installation to manage sessions from an agent?

Yes, managing interactive tmux sessions from an agent requires a working tmux installation on your system. The process targets existing sessions using session:window.pane coordinates to perform capture-pane and send-keys workflows without extra dependencies.

What's the best way to manage multiple tmux windows and panes during terminal automation?

The best way to manage multiple tmux windows and panes during terminal automation is using session:window.pane coordinates to navigate and select targets. You can list sessions, perform basic lifecycle actions like kill or rename, and send keystrokes to exact panes.

Why does my interactive CLI agent lose context when managed remotely outside tmux?

Interactive CLI agents lose context when managed remotely outside tmux because standard remote connections often drop session state. Using tmux session management preserves the interactive environment, allowing you to safely observe output and inject keystrokes.