ito-tmux

Send keystrokes to tmux sessions and scrape pane output.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/withakay/research --skill ito-tmux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ito-tmux
Source: https://github.com/withakay/research/tree/main/.opencode/skills/ito-tmux
Command: npx skills add https://github.com/withakay/research --skill ito-tmux

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of remotely controlling tmux sessions for interactive command-line interfaces, enabling keystroke input and scraping pane output.

Core Features & Use Cases

  • Remote Keystroke Control: Send keystrokes to tmux sessions from an external tool or script.
  • Output Scraping: Extract output from tmux panes for further processing or logging.
  • Use Case: Ideal for automating tasks within tmux sessions, such as running Python scripts, debugging with gdb, or monitoring long-running commands.

Quick Start

Use the ito-tmux skill to start a Python session in a tmux window and execute a simple script.

Frequently Asked Questions about ito-tmux

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

FAQPage Schema
How do I send keystrokes to a tmux session from an external script?

To send keystrokes to a tmux session from an external script, you can use a tool that remotely controls tmux by injecting input and scraping pane output. This allows you to automate interactive command-line interfaces like Python or gdb.

Can I capture and scrape output from a tmux pane for logging?

Yes, you can capture and scrape output from a tmux pane for logging. This is achieved by remotely controlling the tmux session to extract pane output, enabling further processing or monitoring of long-running commands.

Do I need tmux and bash installed to automate interactive CLI sessions?

Yes, you need tmux and bash installed to automate interactive CLI sessions. This approach requires tmux and bash scripting to handle session creation, keystroke input, and output capture for interactive command-line interfaces.

What is the best way to automate tasks within a Python or gdb session using tmux?

The best way to automate tasks within a Python or gdb session using tmux is by remotely controlling the session. This involves sending keystrokes and scraping pane output to interact with the command-line interface programmatically.

Does controlling tmux sessions work for long-running command monitoring?

Yes, controlling tmux sessions works for long-running command monitoring. By scraping pane output from the tmux session, you can extract ongoing output for further processing, logging, or automated response generation.

Are there limitations when scraping output from interactive command-line interfaces in tmux?

When scraping output from interactive command-line interfaces in tmux, limitations may arise from complex terminal rendering. This approach handles session creation and output capture, but heavily formatted interactive displays might complicate clean text extraction.