tmux

Inject keystrokes and capture pane output from tmux sessions.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/wangqianCAI/OBI --skill tmux-wangqiancai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/wangqianCAI/OBI/tree/main/skills/tmux
Command: npx skills add https://github.com/wangqianCAI/OBI --skill tmux-wangqiancai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the challenge of programmatically interacting with terminal-based applications that run inside tmux, allowing for automated monitoring and input without manual intervention.

Core Features & Use Cases

  • Session Monitoring: Capture and scrape output from long-running terminal processes or background workers.
  • Interactive Automation: Send keystrokes, commands, or control sequences to specific tmux panes to drive interactive CLIs.
  • Use Case: Use this skill to monitor a long-running build process in a background tmux session and automatically trigger a cleanup command when a specific success message appears in the logs.

Quick Start

Use the tmux skill to capture the last 50 lines of output from the shared session and search for the build completion pattern.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate interactive CLI applications in a tmux session?

You can automate interactive CLI applications by injecting keystrokes and capturing pane output programmatically. This enables driving terminal-based interfaces and sending control sequences without manual intervention.

Can I capture output from a long-running background process in tmux?

Yes, you can capture and scrape pane output from long-running terminal processes or background workers. This allows monitoring build logs or continuous processes by retrieving specific lines of output.

What is the best way to send keystrokes to a specific tmux pane?

The best way to send keystrokes is through programmatic keystroke injection targeted at specific tmux panes. This facilitates interactive automation by dispatching commands or control sequences directly to the terminal.

Do I need a functional tmux installation to use terminal automation scripts?

Yes, a functional tmux installation and system shell access are required. The scripts rely on executing session management commands to control panes and capture output from the terminal multiplexer.

How does session monitoring work for background workers in tmux?

Session monitoring works by capturing pane output from shared tmux sessions running background workers. You can retrieve the last lines of output and search for specific patterns to trigger automated responses.