tmux

Send keystrokes and capture pane output from tmux sessions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables automated control of tmux sessions from AI agents by sending keystrokes and scraping pane output, eliminating manual TTY interactions for scripted workflows.

Core Features & Use Cases

  • Remote session orchestration: launch and manage multiple tmux sessions and panes across projects.
  • Output capture: fetch pane content for real-time monitoring and decision making.
  • Safe interactivity: provide isolated sockets and naming conventions to avoid interfering with user work.
  • Use Case: AI agent runs a Python REPL in a tmux session to test commands and collect results.

Quick Start

Use the tmux skill to open a new session, send a command, and capture the pane output for verification.

Frequently Asked Questions about tmux

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

FAQPage Schema
How do I automate tmux session management and send keystrokes from a script?

To automate tmux session management, you can use scripts to spawn isolated sessions, send keystrokes programmatically, and capture pane output for monitoring interactive workflows without manual TTY input.

What is the best way to capture pane output from a tmux session for real-time monitoring?

Capturing pane output in tmux involves using dedicated scripts to fetch current pane content, enabling real-time monitoring and decision making for automated interactive workflows running in the terminal.

Does tmux automation work on both macOS and Linux for managing multiple sessions?

Yes, tmux automation works on both macOS and Linux. It supports managing multiple sessions and panes across projects, using isolated sockets and naming conventions to avoid interfering with existing user work.

How do I run an interactive Python REPL in a tmux session and collect results automatically?

You can run an interactive Python REPL in tmux by using scripts to open a session, send keystrokes to execute commands, and capture the pane output to collect and verify the results automatically.

Do I need the tmux binary installed to use AI agents for remote terminal orchestration?

Yes, you need the tmux binary available on your PATH to enable AI agents to orchestrate terminal sessions, send keystrokes, and scrape pane output for automated workflows.

Why should I use isolated sockets when automating terminal sessions with keystrokes?

Using isolated sockets when automating terminal sessions provides safe interactivity by creating separation, preventing automated keystrokes and output capture from interfering with your active tmux work.