tmux

Send keystrokes and scrape output from tmux sessions.

4|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/Agent-Pattern-Labs/sparse-kernel --skill tmux-agent-pattern-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/Agent-Pattern-Labs/sparse-kernel/tree/main/skills/tmux
Command: npx skills add https://github.com/Agent-Pattern-Labs/sparse-kernel --skill tmux-agent-pattern-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the management of tmux sessions, enabling users to send keystrokes and scrape pane output without manual intervention.

Core Features & Use Cases

  • Session Control: Send keystrokes and read output from tmux sessions.
  • Use Case: When you need to monitor and interact with Claude/Codex sessions in tmux, or scrape output from long-running processes, this skill is invaluable.

Quick Start

Use the tmux skill to send the 'Ctrl+C' command to the 'shared' session.

Frequently Asked Questions about tmux

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

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

To automate keystrokes in tmux, you can send specific key inputs, such as 'Ctrl+C', directly to a named session pane. This allows automated control of interactive CLI sessions without manual terminal interaction.

Can I scrape output from long-running processes in tmux?

Yes, you can scrape pane output from long-running processes in tmux. The skill captures terminal output programmatically, enabling monitoring and data extraction from background tasks without attaching to the session.

Do I need tmux installed to use session control and output scraping?

Yes, tmux is a required dependency. You must have the tmux terminal multiplexer installed on your system to enable session listing, output capture, and key input automation.

What is the best way to monitor interactive CLI sessions in tmux?

The best way to monitor interactive CLI sessions is by combining keystroke automation with output scraping. This allows you to send commands and read terminal responses programmatically, ideal for managing Claude or Codex sessions.

Does tmux session control work with background scripts?

Yes, tmux session control works with background scripts by sending keystrokes and scraping output from detached panes. This is designed specifically for managing long-running processes and interactive CLI sessions.

How to send Ctrl+C to stop a process in a shared tmux session?

To send Ctrl+C to a shared tmux session, use the session control feature to target the specific pane and transmit the keystroke. This interrupts long-running processes without manually attaching to the terminal.