# tmux-skill

This skill lets an agent run commands in tmux sessions and inspect their output. Use it for long-running builds, servers, REPLs, or terminal apps.

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

## What it does

The skill covers controlling tmux from the command line: create a detached session, send input to a pane, then read its output while the process runs. That lets an agent keep work alive between turns or inspect a running program. It also explains checking for a completion marker and handling pane input such as `Enter` or `C-c`.

The examples use a separate `pi-agent` socket for agent-owned sessions. You need `tmux` installed to run these commands. For a background command whose output only needs to go to a log, shell redirection is simpler.

## Install

### Claude Code (native platform)

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

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Agents365-ai/365-skills --skill tmux-skill -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Agents365-ai/365-skills --skill tmux-skill -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Agents365-ai/365-skills plugins/tmux/skills/tmux-skill
```

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

### Gemini CLI

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

2. **Platform CLI**
```bash
gemini skills install https://github.com/Agents365-ai/365-skills --path plugins/tmux/skills/tmux-skill
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Agents365-ai/365-skills --skill tmux-skill -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/Agents365-ai/365-skills/tree/HEAD/plugins/tmux/skills/tmux-skill/SKILL.md

## When to use it
- keep a build running after an agent turn ends
- send input to a REPL or terminal app
- inspect pane output and scrollback
- check whether a command finished by reading its output

## Example prompts
- Run the tests in a separate tmux session and report the process exit code.
- Keep the development server running in tmux, then inspect its pane output.
- Send `C-c` to the process in the tmux session and show the resulting terminal output.

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

From the same set: [agents365-ai/365-skills](https://affpapa.org/en/nevibecode/by/agents365-ai/365-skills.md) — 33 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
