tmux

by Unknown v1.0.0

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

What It Does

Enables remote control of tmux sessions, allowing for automated interaction with command-line interfaces. It sends keystrokes to tmux panes and scrapes their output, facilitating automation of tasks within terminal-based applications.

When To Use

Use this skill when you need to automate interactions within a terminal, run multiple coding agents in parallel, or manage long-running processes that require interactive input. Ideal for scenarios where you need to control and monitor tmux sessions remotely.

Inputs

Tmux socket path, session name, pane target, commands to send, regex patterns for output matching.

Outputs

Captured pane output, status of command execution, session information.

Limitations

Requires tmux to be installed and configured on the target system. May require adjustments for timing-sensitive TUI applications. Limited to macOS and Linux environments (WSL for Windows).

Installation

1. Ensure tmux is installed on your system (e.g., `brew install tmux` on macOS or `apt install tmux` on Linux).
2. Configure the `OPENCLAW_TMUX_SOCKET_DIR` environment variable to specify the location of your tmux socket directory.
3. Verify that the necessary scripts (e.g., `wait-for-text.sh`) are accessible from your system's PATH.

View Claude (Anthropic) documentation

1. Open the Cursor IDE settings and locate the 'Skills' section.
2. Add the tmux skill and configure the required parameters, such as the tmux socket path and session name.
3. Ensure that Cursor IDE has access to the tmux executable and the necessary scripts.

View Cursor IDE documentation

1. Install tmux on your operating system.
2. Set the `OPENCLAW_TMUX_SOCKET_DIR` environment variable.
3. Download the required scripts (e.g., `wait-for-text.sh`) from the OpenClaw repository and place them in a directory accessible from your PATH.
4. Verify that the tmux command is available in your system's PATH.

View Cline documentation

Have a Skill to Share?

Join the community and help AI agents learn new capabilities. Submit your skill and reach thousands of developers.