tmux

Send keystrokes and scrape output from tmux sessions.

45|50|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/zocomputer/skills --skill tmux-zocomputer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/zocomputer/skills/tree/main/External/tmux
Command: npx skills add https://github.com/zocomputer/skills --skill tmux-zocomputer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to manage and interact with remote terminal sessions, making it easier to run and monitor command-line applications in a persistent environment.

Core Features & Use Cases

  • Session Management: Create, attach to, and kill tmux sessions.
  • Input Sending: Send keystrokes and commands to specific panes within sessions.
  • Output Scraping: Capture and monitor the output from tmux panes.
  • Use Case: You need to run a long-running data processing script on a remote server. Use this Skill to start a tmux session, run the script in a detached pane, and later attach to the session to check its progress or retrieve its output.

Quick Start

Use the tmux skill to start a new detached session named 'my-task' and run the command 'htop' inside it.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I run long-running processes in a persistent remote terminal session?

You can run long-running processes in a persistent remote terminal session by starting a detached tmux session, sending commands to its pane, and later retrieving the pane output. This ensures your commands keep running even if your connection drops.

How do I send keystrokes to an interactive CLI tool running in the background?

To send keystrokes to an interactive CLI tool in the background, use a tmux session manager to target the specific pane and inject the required keystrokes. This allows you to control interactive command-line applications without keeping a terminal window open.

Do I need to install tmux separately to control remote CLI sessions?

Yes, you need the 'tmux' binary installed and available in your system's PATH to control remote CLI sessions. This Skill relies on the underlying tmux binary to create sessions, send keystrokes, and scrape pane output.

Can I capture and monitor output from a tmux pane without attaching to it?

Yes, you can capture and monitor output from a tmux pane without attaching to it by using output scraping functions. This retrieves the current text state of the detached pane, allowing you to programmatically check the progress of long-running scripts remotely.

What is the best way to automate interactive command-line tools on a remote server?

The best way to automate interactive command-line tools on a remote server is using a tmux session controller. It enables you to programmatically manage session lifecycles, send keystrokes, and scrape terminal output to integrate interactive CLIs into automated workflows.