tmux

Inject keystrokes and scrape output from tmux sessions.

6|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/me2Doc/friendlyclaw --skill tmux-me2doc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/me2Doc/friendlyclaw/tree/main/body/skills/tmux
Command: npx skills add https://github.com/me2Doc/friendlyclaw --skill tmux-me2doc

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the challenge of managing and interacting with long-running terminal processes, such as AI agents or build tasks, that are trapped inside isolated tmux sessions.

Core Features & Use Cases

  • Remote Keystroke Injection: Send commands or input to specific tmux panes without needing to manually attach to the session.
  • Output Scraping: Capture and analyze the scrollback history of terminal sessions to monitor progress or detect prompts.
  • Use Case: Use this skill to monitor a background worker session, detect when it requires user input, and automatically send the confirmation key to proceed with the task.

Quick Start

Use the tmux skill to capture the last twenty lines of output from the shared session to check for recent activity.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate keystroke injection into a background terminal session?

Automating keystroke injection into a background terminal session is achieved by sending commands directly to specific tmux panes. This allows you to interact with long-running CLI applications without manually attaching to the session.

Can I capture and scrape terminal output from an isolated tmux session?

Capturing terminal output from an isolated tmux session is supported through output scraping. You can extract and analyze the scrollback history to monitor progress or detect when an interactive application requires user input.

Do I need the tmux binary installed to manage interactive CLI applications programmatically?

The tmux binary must be installed and accessible within your system path to manage interactive CLI applications programmatically. This dependency is required for session manipulation and remote control.

What is the best way to monitor a background worker process that requires occasional user input?

Monitoring a background worker process that requires user input is done by scraping terminal scrollback to detect prompts. Once detected, remote keystroke injection automatically sends the confirmation key to proceed with the task.

How does session management work for long-running build tasks trapped inside terminal panes?

Session management for long-running build tasks works by maintaining processes across multiple terminal panes within tmux. This prevents tasks from being trapped or lost when disconnecting, enabling remote interaction and output scraping.

Are there limitations when trying to manage multiple terminal panes across different sessions?

Managing multiple terminal panes requires the tmux binary to be accessible in the system path. The skill facilitates session manipulation and output scraping, but relies entirely on tmux's native capabilities for pane handling.