Development

tmux - Claude MCP Skill

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

SEO Guide: Enhance your AI agent with the tmux tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to control tmux sessions/panes for interactive clis: list, capture output, send keys, paste text, monit... Download and configure this skill to unlock new capabilities for your AI workflow.

🌟6370 stars • 81592 forks
📥0 downloads

Documentation

SKILL.md
# tmux

Use for existing interactive tmux sessions. For one-shot commands, use normal shell. For new non-interactive background jobs, use background execution.

## Basics

```bash
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:

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

Special keys:

```bash
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

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

## Prompt checks

```bash
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:

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

## Helpers

- `scripts/find-sessions.sh`: discover sessions.
- `scripts/wait-for-text.sh`: wait until pane output contains text.

## Notes

- `capture-pane -p` prints to stdout for scripts.
- `-S -` captures full scrollback.
- tmux sessions persist across SSH disconnects.

Signals

Avg rating0.0
Reviews0
Favorites0

Information

Repository
clawdbot/clawdbot
Author
clawdbot
Last Sync
9/3/2026
Repo Updated
9/2/2026
Created
1/12/2026

Reviews (0)

No reviews yet. Be the first to review this skill!

tmux - Claude/MCP Skill for AI Agents | SkillAvatars | SkillAvatars