tmux-controller

Send keystrokes and capture output from tmux sessions programmatically.

1|1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/yunseo-kim/agent-toolbox --skill tmux-controller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux-controller
Source: https://github.com/yunseo-kim/agent-toolbox/tree/main/catalog/skills/tmux-controller
Command: npx skills add https://github.com/yunseo-kim/agent-toolbox --skill tmux-controller

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to interact with and manage running tmux sessions, enabling you to send commands, capture output, and navigate panes programmatically, which is crucial for managing long-running terminal processes and interactive applications.

Core Features & Use Cases

  • Remote Command Execution: Send keystrokes and commands to specific tmux panes or windows.
  • Output Scraping: Capture the output from tmux panes for monitoring or analysis.
  • Session Management: List, create, and kill tmux sessions.
  • Use Case: You can use this skill to automate the deployment process to a server running a tmux session, sending build commands and monitoring the output for success or failure.

Quick Start

Use the tmux-controller skill to send the command 'npm run build' to the 'main' session, pane 0.

Frequently Asked Questions about tmux-controller

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

FAQPage Schema
How do I automate sending keystrokes to a running tmux session programmatically?

To automate sending keystrokes to a tmux session, you can programmatically target specific panes or windows to execute commands. This enables remote command execution and management of long-running terminal processes without manual interaction.

Can I capture terminal output from a specific tmux pane for monitoring?

Yes, you can capture output from tmux panes by scraping the terminal screen programmatically. This allows you to monitor interactive CLI applications and analyze the results of long-running terminal tasks.

What is the best way to manage long-running terminal processes remotely?

Managing long-running terminal processes remotely is best handled by using tmux sessions to keep tasks alive in the background. You can programmatically list, create, and kill sessions while sending commands and capturing output as needed.

Do I need direct interaction with the tmux CLI to control sessions programmatically?

Yes, controlling tmux sessions programmatically requires direct interaction with the tmux command-line interface. This approach facilitates session and pane manipulation by sending keystrokes and capturing pane output.

How do I automate a server deployment process using tmux sessions?

You can automate server deployment using tmux sessions by sending build commands to a specific pane and capturing the output. This allows you to monitor the terminal output programmatically to determine if the deployment succeeded or failed.

Can I list, create, and kill tmux sessions through an automated script?

Yes, you can list, create, and kill tmux sessions through an automated script by leveraging programmatic session management. This allows you to handle terminal tasks dynamically and manage interactive CLI applications.