tmux

Control tmux sessions, panes, and output for remote CLI automation.

4|1|Updated Jul 23, 2020
One-click install
npx skills add https://github.com/onbjerg/dot --skill tmux-onbjerg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/onbjerg/dot/tree/main/pi/skills/tmux
Command: npx skills add https://github.com/onbjerg/dot --skill tmux-onbjerg

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables remote control and automation of tmux sessions for interactive command-line tasks, simplifying session management.

Core Features & Use Cases

  • Session Automation: Create, attach, and kill tmux sessions automatically to streamline workflows.
  • Pane Interaction: Send keystrokes and capture output from specific panes, allowing remote scripting of CLI tools like python or gdb.
  • Use Case: Suppose you need to start a debugging session or keep a Python REPL running for automated testing. Use this Skill to control tmux sessions remotely, send commands, and monitor outputs efficiently.

Quick Start

Use the tmux skill to start a new session named "claude-python" in an isolated socket, send the command "python3 -q", and monitor the output by attaching to the session or 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 terminal sessions and control tmux remotely?

Automate terminal sessions by using scripting to control tmux remotely, which handles session creation, sends keystrokes to panes, and captures output for CLI workflow automation.

Can I use tmux to keep a Python REPL running and send commands to it?

Yes, tmux supports remote scripting to keep a Python REPL running in an isolated session, send commands as keystrokes, and monitor the output directly for automated testing.

What do I need to manage tmux sessions on Linux and macOS?

Managing tmux sessions on Linux and macOS requires a working tmux installation and scripting support to execute commands, handle sessions, and safely read pane output.

How does pane interaction work when automating command-line workflows?

Pane interaction works by sending specific keystrokes to individual terminal panes and capturing their output, allowing remote scripting of interactive tools like python or gdb.

What is the best way to start an isolated tmux session for automated testing?

Start an isolated tmux session by creating a new session with a custom name in an isolated socket, send the startup command, and monitor the output by capturing the pane content.

Are there limitations to monitoring output from remote tmux sessions?

Monitoring output from remote tmux sessions requires active tmux and scripting support to safely read pane output, limiting use to Linux and macOS command-line environments.