Skip to content
Agent Orchestration
Skill

/tmux

Control tmux-compatible sessions/windows/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts.

From plugin
atomic
88622 skills9 agents

Claude Code

$ npx -y skills add bastani-inc/atomic --skill tmux --agent claude-code

SKILL.md

tmux.SKILL.md
name: tmux
description: "Control tmux-compatible sessions/windows/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts."
license: MIT. LICENSE.txt has complete terms
metadata:
  {
    "github-repo": "https://github.com/openclaw/openclaw",
    "github-path": "skills/tmux",
    "github-ref": "refs/heads/main",
    "github-tree-sha": "65bac7c67ae8d4acaf2d8cd2e7e3fc6e7ff90803",
    "atomic":
      {
        "os": ["darwin", "linux", "windows"],
        "requires": { "bins": ["tmux", "psmux"] },
        "install":
          [
            {
              "id": "brew",
              "kind": "brew",
              "formula": "tmux",
              "bins": ["tmux"],
              "label": "Install tmux (brew)",
            },
            {
              "id": "winget-psmux",
              "kind": "winget",
              "package": "psmux",
              "bins": ["tmux"],
              "label": "Install psmux (WinGet)",
            },
            {
              "id": "cargo-psmux",
              "kind": "cargo",
              "crate": "psmux",
              "bins": ["tmux"],
              "label": "Install psmux (Cargo)",
            },
            {
              "id": "scoop-psmux",
              "kind": "scoop",
              "bucket": "https://github.com/psmux/scoop-psmux",
              "package": "psmux",
              "bins": ["tmux"],
              "label": "Install psmux (Scoop)",
            },
            {
              "id": "choco-psmux",
              "kind": "choco",
              "package": "psmux",
              "bins": ["tmux"],
              "label": "Install psmux (Chocolatey)",
            },
          ],
      },
  }

tmux

Use tmux for interactive terminal sessions and terminal UI verification. For ordinary commands, use `bash`: supported owner-bound calls can run in the background explicitly with `wait: { kind: "background" }` or automatically after their foreground observation budget expires. Use tmux when you need a separate interactive terminal, not merely because a command outlives a tool call. Background tasks remain bound to their owning Atomic session.

On Windows, use [psmux](https://github.com/psmux/psmux), the native Windows tmux-compatible multiplexer. psmux automatically provides the `tmux` alias, so keep using the `tmux` commands below; no command changes are needed.

When this skill is invoked, first confirm `tmux` is available before running tmux commands (`command -v tmux` or `tmux -V`; on Windows PowerShell, `Get-Command tmux`). If `tmux` is not found, tell the user to install tmux on macOS/Linux or psmux on Windows, depending on their OS, using one of the options below.

Installation

Choose the install path that matches the host OS and package manager.

macOS/Linux tmux

Package managers are preferred when available:

brew install tmux

To build official tmux from a release tarball, install `libevent` 2.x, `ncurses`, a C compiler, `make`, `pkg-config`, and `yacc` or `bison`, then run:

./configure && make
sudo make install

To build the latest tmux from version control, also install `autoconf` and `automake`:

git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
./configure && make
sudo make install

Windows psmux

psmux installs `psmux`, `pmux`, and `tmux`; this skill should continue to use `tmux` in examples and scripts.

winget install psmux
cargo install psmux
scoop bucket add psmux https://github.com/psmux/scoop-psmux
scoop install psmux
choco install psmux

Alternatively, download the latest `.zip` from GitHub Releases and add it to `PATH`, or build from source with Cargo:

git clone https://github.com/psmux/psmux.git
cd psmux
cargo build --release

Basics

tmux ls
tmux list-windows -t shared
tmux list-panes -t shared:0
tmux capture-pane -t shared:0.0 -p
tmux capture-pane -t shared:0.0 -p -S -

Target format: `session:window.pane`, e.g. `shared:0.0`.

Send input

Literal text, then Enter:

tmux send-keys -t shared:0.0 -l -- "Please continue"
tmux send-keys -t shared:0.0 Enter

Special keys:

tmux send-keys -t shared:0.0 C-c
tmux send-keys -t shared:0.0 C-d
tmux send-keys -t shared:0.0 Escape

Use `-l --` for arbitrary text. Split text and Enter to avoid paste/newline surprises.

Sessions

tmux new-session -d -s worker
tmux rename-session -t old new
tmux kill-session -t worker

Prompt checks

tmux capture-pane -t worker-3 -p | tail -20
tmux capture-pane -t worker-3 -p | rg "proceed|permission|Yes|No|❯"

Approve/select only when the prompt is understood:

tmux send-keys -t worker-3 -l -- "y"
tmux send-keys -t worker-3 Enter

QA/testing and analysis

Prefer read-only inspection before sending input. These commands are especially useful for diagnosing interactive tests, stuck agents, TUI apps, and long-running CLI workflows.

Discover every pane with useful state:

tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_current_command} #{pane_current_path} active=#{pane_active} dead=#{pane_dead}'

Capture output for assertions or log review:

tmux capture-pane -t shared:0.0 -p -S -          # full scrollback
tmux capture-pane -t shared:0.0 -p -S - -J       # join wrapped lines
tmux capture-pane -t shared:0.0 -p -S -1000      # recent output only
tmux capture-pane -t shared:0.0 -p -e -S -1000   # include escape/color codes for TUI debugging

Inspect what a pane is running:

tmux display-message -p -t shared:0.0 '#{pane_current_command} #{pane_current_path} pid=#{pane_pid}'
tmux show-messages

Stream pane output to a file for later analysis without interrupting the process:

tmux pipe-pane -t shared:0.0 -o 'cat >> /tmp/tmux-pane-shared-0-0.log'

Coordinate tests or scripts with tmux signals:

tmux wait-for qa-ready      # wait
tmux wait-for -S qa-ready   #
Read more
@flora131
Ships withatomic

The verifiable coding agent runtime. Define your coding agent's process in natural language with stages, checks, and approval gates instead of hoping it follows your instructions. Primitives for verifiable software factories.

88622 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
886
Star history of flora131/atomic on GitHub, a chart by star-history.com

Other skills on atomic.

intercom

intercom

Streamline session-to-session coordination with the intercom extension. Send messages, delegate tasks, and coordinate work across…

@flora131@flora131Install Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@flora131@flora131Install Skill
agent-desktop

agent-desktop

Operate native desktop applications on macOS, Windows and Linux through accessibility trees with the agent-desktop CLI. Use when…

@flora131@flora131Install Skill
bro

bro

Restate the last message in plain human language, with no jargon.

@flora131@flora131Install Skill
create-spec

create-spec

Create a detailed execution plan/spec/PRD for implementing features or refactors in a codebase, designed around the program's…

@flora131@flora131Install Skill
feedback

feedback

Draft, revise and post privacy-scrubbed Atomic bug reports or enhancements through ordinary conversation.

@flora131@flora131Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about tmux.

Which coding agents can use tmux?
tmux installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.