tmux

Sends keystrokes and scrapes pane output to control tmux sessions.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/tedtv1007-ctrl/milk-skills-library --skill tmux-tedtv1007-ctrl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/tedtv1007-ctrl/milk-skills-library/tree/main/tmux
Command: npx skills add https://github.com/tedtv1007-ctrl/milk-skills-library --skill tmux-tedtv1007-ctrl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tmux.

What problem does it solve?

This skill solves the challenge of interacting with long-running terminal applications and background processes that are not natively accessible to an AI agent.

Core Features & Use Cases

  • Session Monitoring: Capture output from specific tmux panes to track the progress of background tasks or interactive sessions.
  • Interactive Control: Send keystrokes, commands, and control signals (like Ctrl+C or Enter) to running terminal applications.
  • Use Case: Use this to manage Claude Code sessions by programmatically checking for prompts, approving actions, and sending task instructions to specific worker panes.

Quick Start

Use the tmux skill to capture the last twenty lines of output from the session named shared to check the current status of the process.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate interactive terminal sessions and send keystrokes to background processes?

You can automate interactive terminal sessions by using tmux to programmatically send keystrokes, commands, and control signals like Ctrl+C to long-running CLI processes. This skill injects input and scrapes pane output to manage background tasks.

Can I monitor and capture output from a specific tmux pane to track background task progress?

Yes, you can capture output from specific tmux panes to monitor background task progress. The skill scrapes terminal pane output, allowing you to check the current status of interactive sessions or long-running worker tasks.

Do I need tmux installed on my host system to control terminal sessions programmatically?

Yes, you need the tmux binary installed on your host system to control terminal sessions programmatically. The skill requires tmux to execute session navigation, output scraping, and input injection commands for interactive CLIs.

What is the best way to manage multiple Claude Code sessions running in the background?

The best way to manage multiple background Claude Code sessions is using tmux session control to programmatically check for prompts, approve actions, and send task instructions to specific worker panes for interactive automation.

How does programmatic session control handle interactive CLI processes that require user input?

Programmatic session control handles interactive CLI processes by sending keystrokes and control signals directly to the running terminal application via tmux. This allows automated approval of prompts and task instruction injection without manual intervention.

Why use tmux session management instead of direct script execution for long-running processes?

Use tmux session management for long-running processes because it enables persistent monitoring and interactive control of background applications that are not natively accessible to AI agents, allowing output scraping and keystroke injection.