tmux

Send keystrokes and capture pane output to control tmux sessions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/larsboes/pai-marketplace --skill tmux-larsboes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/larsboes/pai-marketplace/tree/main/marketplace/plugins/terminal/skills/tmux
Command: npx skills add https://github.com/larsboes/pai-marketplace --skill tmux-larsboes

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Remote control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output, enabling automation, reproducible layouts, and remote operation across Python, GDB, Node, and other tools.

Core Features & Use Cases

  • Remote control of tmux sessions via scripted keystrokes and pane capture to drive interactive workflows.
  • Session presets, save/restore of layouts, and JSON capture for logging and post-analysis.
  • Use cases include automating REPL sessions, debugging workflows, and demos that require deterministic terminal states.

Quick Start

Launch a tmux session named my-session and drive a Python REPL by sending commands and capturing the pane output.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate a Python REPL session inside tmux?

Automate a Python REPL session inside tmux by using scripted keystrokes to send commands and capturing pane output for deterministic interaction. The skill creates and manages sessions via a shared socket to drive terminal workflows.

Can I capture GDB debugging output from a tmux pane as JSON?

You can capture GDB debugging output from a tmux pane as JSON for logging and post-analysis. The skill scrapes pane output and structures the data, enabling reproducible debugging workflows and session state tracking.

What's the best way to remotely control interactive CLI tools in terminal sessions?

Remotely control interactive CLI tools in terminal sessions by sending programmatic keystrokes and scraping pane output via a shared socket. This approach enables automation and remote operation across tools like Node.js and Python.

Do I need the tmux binary installed to manage interactive terminal workflows?

You need the tmux binary and jq installed to manage interactive terminal workflows. The skill depends on these binaries to create sessions, send keystrokes, and capture output via a shared socket stored in a specified directory.

Can I save and restore tmux layouts for reproducible terminal demos?

You can save and restore tmux layouts for reproducible terminal demos using session presets. The skill automates programmatic control of tmux sessions, allowing you to configure deterministic terminal states and capture output.

Why does my tmux session automation fail to capture pane output?

Tmux session automation may fail to capture pane output if the tmux binary or jq dependency is missing, or if the shared socket directory is incorrectly configured. The skill relies on these components to manage sessions and scrape output.