# tmux

Control interactive CLIs in tmux by sending input and reading pane output. Useful for monitoring terminal tasks or running coding agents in separate sessions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 152 installs · ★ 42570 repo stars
- Author: volcengine
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/volcengine/OpenViking/tree/HEAD/bot/workspace/skills/tmux/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/volcengine-tmux

## What it does

The skill creates and locates tmux sessions, sends commands or key presses, and reads text from a pane. Its `wait-for-text.sh` helper checks for a pattern in terminal output; `find-sessions.sh` searches one socket or scans across sockets.

You can run Codex or Claude Code agents in separate sessions and check whether a shell prompt has returned. For parallel fixes, the instructions recommend separate git worktrees. Use tmux for interactive TTY processes; non-interactive background work should run through exec instead.

The `tmux` binary must be on `PATH`, and the skill is intended for macOS and Linux. On Windows, it requires WSL with tmux installed inside it, so a Windows shell alone will not run these sessions.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill tmux -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/tmux/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/tmux/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill tmux -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/tmux/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill tmux -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/tmux/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install volcengine/OpenViking bot/workspace/skills/tmux
```

2. **Manually: put the files in place**
- File: `.github/skills/tmux/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill tmux -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/volcengine/OpenViking --path bot/workspace/skills/tmux
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/tmux/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill tmux -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/volcengine/OpenViking/tree/HEAD/bot/workspace/skills/tmux/SKILL.md

## When to use it
- Send commands to an interactive CLI session
- Read recent text from a terminal pane
- Wait until a prompt or pattern appears
- Run coding agents in separate tmux sessions
- Find sessions attached to a socket

## Example prompts
- Start an interactive Python session in tmux and show its output.
- Run two Codex agents in separate sessions and check whether they have finished.
- Find tmux sessions on this socket and read the latest pane output.

## Similar
- [tmux-terminal](https://affpapa.org/en/nevibecode/skills/tmux-terminal.md) — skill · ★ 3206 repo stars
- [tmux-status](https://affpapa.org/en/nevibecode/plugins/tmux-status.md) — plugin · ★ 6 repo stars
- [using-tmux-for-interactive-commands](https://affpapa.org/en/nevibecode/skills/using-tmux-for-interactive-commands.md) — skill · 515 installs
- [tmux-cli](https://affpapa.org/en/nevibecode/skills/tmux-cli.md) — skill · ★ 2039 repo stars
- [smux](https://affpapa.org/en/nevibecode/skills/smux.md) — skill · 2900 installs
- [control-cli](https://affpapa.org/en/nevibecode/skills/control-cli.md) — skill · 2700 installs

## Other versions with the same name
- [tmux · openclaw](https://affpapa.org/en/nevibecode/skills/tmux.md) — 8500 installs
- [tmux · mitsuhiko](https://affpapa.org/en/nevibecode/skills/mitsuhiko-tmux.md) — 425 installs

From the same set: [volcengine/openviking](https://affpapa.org/en/nevibecode/by/volcengine/openviking.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
