tmux

Send keystrokes and scrape output from tmux panes.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/tomelliot/timezones --skill tmux-tomelliot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/tomelliot/timezones/tree/main/.cursor/skills/tmux
Command: npx skills add https://github.com/tomelliot/timezones --skill tmux-tomelliot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to manage and interact with tmux sessions programmatically, simplifying complex terminal workflows and debugging tasks.

Core Features & Use Cases

  • Remote Control: Send keystrokes and scrape output from tmux panes.
  • Interactive Debugging: Ideal for debugging applications, running REPLs (Python, gdb, psql), and automating terminal tasks.
  • Use Case: Debug a Python application in a tmux session by sending commands, inspecting output, and attaching/detaching as needed, all controlled via this Skill.

Quick Start

Use the tmux skill to create a new Python REPL session named 'my-python'.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate interactive shell tasks using a terminal multiplexer?

Automating interactive shell tasks with a terminal multiplexer involves programmatically managing session lifecycles and sending keystrokes to specific panes. This approach enables remote control of command-line applications and persistent debugging environments.

Can I send keystrokes and scrape output from a running gdb or Python session?

Yes, you can send keystrokes to and scrape output from running gdb or Python sessions. This allows you to interact with REPLs programmatically, inspect application output, and issue debugging commands without direct human input.

What is the best way to manage tmux sessions for debugging command-line applications?

Managing tmux sessions for debugging command-line applications is best handled through programmatic session creation and safe command sending. This facilitates attaching and detaching from interactive processes like Python or gdb while retaining control over the session lifecycle.

Do I need to manually clean up terminal sessions after automating interactive commands?

Manual cleanup of terminal sessions after automating interactive commands is not strictly necessary. Helper scripts can manage the session lifecycle, ensuring safe command sending and proper cleanup of interactive shells after tasks complete.

Does this approach work for automating interactive git commands in a persistent environment?

Yes, this approach works for automating interactive git commands by utilizing a persistent terminal environment. You can send keystrokes to a dedicated shell, manage the session lifecycle, and scrape output to handle interactive version control workflows programmatically.