tmux

Control tmux sessions by sending keystrokes and capturing pane output.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/suwandre/my-codex-config --skill tmux-suwandre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/suwandre/my-codex-config/tree/main/skills/tmux
Command: npx skills add https://github.com/suwandre/my-codex-config --skill tmux-suwandre

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remote control tmux sessions for interactive CLIs (python, node, gdb, etc.) by sending keystrokes and capturing pane output. This Skill enables automating terminal workflows and coordinating multiple panes without manual keystrokes.

Core Features & Use Cases

  • Programmatic session creation, keystroke sending, and pane capture.
  • Safe, isolated control via dedicated tmux sockets to avoid conflicts with personal sessions.
  • Use cases include running REPLs, debuggers, databases, and long-running terminal tasks with automated input/output.
  • Example: orchestrate a Python REPL in tmux, feed commands, and capture results for AI analysis.

Quick Start

Launch a tmux session with a dedicated socket, then attach to it and start issuing commands to automate an interactive workflow.

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 workflows using tmux?

Automate interactive terminal workflows by controlling tmux sessions programmatically. You can send keystrokes to and capture pane output from interactive CLIs like Python REPLs, GDB, or databases, enabling automated run-and-monitor scenarios without manual input.

Can I control a Python REPL inside a tmux session and capture the output?

Yes, you can control a Python REPL inside a tmux session by sending keystrokes and capturing pane output. This allows you to feed commands programmatically and retrieve results for analysis or orchestration.

Does this tmux automation approach interfere with my existing personal sessions?

No, it uses safe, isolated control via dedicated tmux sockets to avoid conflicts with personal sessions. This deterministic socket-based approach ensures your automated workflows remain separate from manual terminal activity.

What is the best way to coordinate multiple terminal panes for long-running tasks?

The best way to coordinate multiple terminal panes for long-running tasks is through programmatic session creation and keystroke sending. This enables safe, isolated control over debuggers and databases without requiring manual keystrokes.

Are there limitations when sending keystrokes to interactive CLIs through tmux?

Limitations depend on the interactive CLI's behavior and terminal emulation compatibility. While the deterministic socket-based control safely manages session creation and output capture, complex terminal interfaces may still produce unexpected capture results.

Do I need any special dependencies to script tmux sessions for terminal automation?

No special dependencies are required to script tmux sessions for terminal automation. The Skill implements core commands for session creation, input, and output capture directly through deterministic socket-based control.