tmux

Send keystrokes and capture pane output from tmux sessions.

4|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/adamhjouj/shieldclaw --skill tmux-adamhjouj
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/adamhjouj/shieldclaw/tree/main/openclaw/skills/tmux
Command: npx skills add https://github.com/adamhjouj/shieldclaw --skill tmux-adamhjouj

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Remote-control tmux sessions to automate interactive CLIs by sending keystrokes and scraping pane output, enabling AI agents to drive long-running terminal tasks without manual input.

Core Features & Use Cases

  • Send keystrokes to tmux sessions to drive interactive commands.
  • Capture output from panes for real-time monitoring and AI decision-making.
  • Navigate and manage windows/panes, attach to or create sessions, and orchestrate multi-session workflows for Claude Code and similar agents.
  • Use cases include debugging, automation of long-running tasks, and terminal-based orchestration in OpenClaw environments.

Quick Start

Start by ensuring tmux is installed and a target session exists, then instruct the AI to attach and begin sending keystrokes.

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 sessions with an AI agent?▼

Automating interactive terminal sessions with an AI agent is achieved by sending keystrokes and capturing pane output programmatically. This Skill exposes scripts to drive long-running terminal tasks and manage sessions without manual input.

Can I use tmux to manage Claude Code sessions programmatically?▼

Yes, you can use tmux to manage Claude Code sessions programmatically. The Skill provides scripts for session discovery, attaching, and orchestrating multi-session workflows for AI agents operating in terminal environments.

What is the best way to capture pane output for AI decision-making?▼

The best way to capture pane output for AI decision-making is using scripts that scrape real-time terminal text. The Skill enables text waiting and output extraction, allowing agents to monitor interactive CLI responses.

Do I need tmux installed to control terminal sessions with an AI?▼

Yes, you need the tmux binary installed and a target session existing to control terminal sessions with an AI. The Skill requires tmux as a dependency to execute automation, navigation, and session management commands.

Are there limitations when sending keystrokes to tmux sessions via scripts?▼

Limitations when sending keystrokes to tmux sessions via scripts include handling unexpected CLI errors and managing multi-pane navigation. The Skill addresses these by providing robust automation with error handling and logging mechanisms.