Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# tmux Session Control
Control tmux sessions by sending keystrokes and reading output. Essential for managing Claude Code sessions.
## When to Use
✅ **USE this skill when:**
- Monitoring Claude/Codex sessions in tmux
- Sending input to interactive terminal applications
- Scraping output from long-running processes in tmux
- Navigating tmux panes/windows programmatically
- Checking on background work in existing sessions
## When NOT to Use
❌ **DON'T use this skill when:**
- Running one-off shell commands → use `exec` tool directly
- Starting new background processes → use `exec` with `background:true`
- Non-interactive scripts → use `exec` tool
- The process isn't in tmux
- You need to create a new tmux session → use `exec` with `tmux new-session`
## Example Sessions
| Session | Purpose |
| ----------------------- | --------------------------- |
| `shared` | Primary interactive session |
| `worker-2` - `worker-8` | Parallel worker sessions |
## Common Commands
### List Sessions
```bash
tmux list-sessions
tmux ls
```
### Capture Output
```bash
# Last 20 lines of pane
tmux capture-pane -t shared -p | tail -20
…
The line at the top of this page pins the label git:20260304.8ebbeae, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_eitjhnldkh6cndcl
GET https://markdownregistry.com/api/v1/resolve?ref=trpc-group/trpc-agent-go/tmux
GET https://markdownregistry.com/api/v1/blob/25f7d9ee550752298014a83f2aa402f8015f9c4c781d70ac75bf6b043c0113f8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
trpc-group/trpc-agent-go · examples/agui/server/skill_artifacts/skills/artifact_demo/SKILL.md · Demo skill that writes an output file and persists it as an artifact.
trpc-group/trpc-agent-go · examples/dynamicworkflow/skills/skills/fanout-analysis/SKILL.md · Use this workflow recipe when a question benefits from several independent perspectives followed by a single…
trpc-group/trpc-agent-go · examples/dynamicworkflow/skills/skills/quality-loop/SKILL.md · Use this workflow recipe when a draft, plan, proposal, or other deliverable should be independently reviewed and…
trpc-group/trpc-agent-go · examples/mcpbroker/basic/skills/remote-http-mcp/SKILL.md · Connect to a remote streamable HTTP MCP service that exposes announcements and FAQ tools.
trpc-group/trpc-agent-go · examples/skilldynamicschema/skills/plan_route/SKILL.md · Plan a route and return distance + ETA (schema + deterministic result).
team-commonly/commonly · backend/commonly-bundled-skills/tmux/SKILL.md · Manage long-running shell sessions with tmux — start a detached session, run a long task, reattach later, capture…