tmux

tmux is a skill for Claude Code, Codex from the-open-agent/openagent. It costs 22 tokens per session (729 once invoked), scanned A, original, Apache-2.0.

A remote-control helper for tmux, a terminal program that keeps interactive command-line sessions running in panes and windows.

In plain words
What is it for?
Use it to list sessions, read pane output, send keystrokes, monitor running commands, and interact with terminal applications already running in tmux.
Why use it?
It lets an agent inspect and control long-running terminal programs without taking over the interactive session manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list sessions, read pane output, send keystrokes, monitor running commands, and interact with terminal applications already running in tmux.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/the-open-agent/openagent/tmux
About the project

OpenAgent is a self-hostable personal AI assistant that combines language models, document-based retrieval, and autonomous agent loops. It lets people connect model providers and their own knowledge bases, then have agents browse the web, run code, use computers, and call MCP-compatible tools.

the-open-agent/openagent · 5,698 stars · on GitHub · openagentai.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add the-open-agent/openagent --skill tmux
Clone the repo
git clone --depth 1 https://github.com/the-open-agent/openagent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tmux

README.md
[![agentmods](https://agentmods.dev/badge/skills/the-open-agent/openagent/tmux/github.svg)](https://agentmods.dev/skills/the-open-agent/openagent/tmux)
Your own site
<a href="https://agentmods.dev/skills/the-open-agent/openagent/tmux"><img src="https://agentmods.dev/badge/skills/the-open-agent/openagent/tmux/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tmux

Your own site · 80×15
<a href="https://agentmods.dev/skills/the-open-agent/openagent/tmux"><img src="https://agentmods.dev/badge/skills/the-open-agent/openagent/tmux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 729 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00729
Opus 5.5 $0.00009 $0.00292
Sonnet 5.5 $0.00004 $0.00146
Haiku 4.5 $0.00002 $0.00073

Measured 1mo ago against content hash a3463c9d4c07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tmux scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tmux/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tmux Session Control

Control tmux sessions by sending keystrokes and reading output. Essential for managing long-running terminal sessions.

When to Use

✅ USE this skill when:

  • Monitoring 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 → run them directly
  • Starting new background processes → use shell backgrounding
  • Non-interactive scripts → run them directly
  • The process isn't in tmux
  • You need to create a new tmux session → use tmux new-session

Common Commands

List Sessions

tmux list-sessions
tmux ls

Capture Output

# Last 20 lines of pane
tmux capture-pane -t shared -p | tail -20

# Entire scrollback
tmux capture-pane -t shared -p -S -

# Specific pane in window
tmux capture-pane -t shared:0.0 -p

Send Keys

# Send text (doesn't press Enter)
tmux send-keys -t shared "hello"

# Send text + Enter
tmux send-keys -t shared "y" Enter

# Send special keys
tmux send-keys -t shared Enter
tmux send-keys -t shared Escape
tmux send-keys -t shared C-c          # Ctrl+C
tmux send-keys -t shared C-d          # Ctrl+D (EOF)
tmux send-keys -t shared C-z          # Ctrl+Z (suspend)

Window/Pane Navigation

# Select window
tmux select-window -t shared:0

# Select pane
tmux select-pane -t shared:0.1

# List windows
tmux list-windows -t shared

Session Management

# Create new session
tmux new-session -d -s newsession

# Kill session
tmux kill-session -t sessionname

# Rename session
tmux rename-session -t old new

Sending Input Safely

For interactive TUIs, split text and Enter into separate sends to avoid paste/multiline edge cases:

tmux send-keys -t shared -l -- "Please apply the patch in src/foo.ts"
sleep 0.1
tmux send-keys -t shared Enter

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 125 lines · 22 tokens per session scan A a3463c9d4c07

Subscribe to this mod's changes

tmux is a skill published in the GitHub repository the-open-agent/openagent (5,698 stars, last pushed yesterday), licensed Apache-2.0. It adds 22 tokens to every session and 729 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

documents

Create, read, edit, review, comment on, sanitize, render, and validate Microsoft Word DOCX documents. Use whenever a DOCX or Word document is a primary input or deliverable, including reports, proposals, forms, templates, tracked revisions, comments, tables, images, headers, footers, and style-preserving edits.

AstrBotDevs/AstrBot · 70 tokens

pdf

Read, create, inspect, merge, split, rotate, encrypt, fill, and validate PDF files. Use when the user asks to work with a PDF or convert supported Markdown into a polished PDF in AstrBot.

AstrBotDevs/AstrBot · 45 tokens

spreadsheets

Create, read, edit, analyze, convert, chart, and validate spreadsheet files including XLSX, XLSM, XLS, CSV, and TSV. Use when a spreadsheet is a primary input or deliverable, or when tabular data must remain editable and auditable in workbook form.

AstrBotDevs/AstrBot · 61 tokens

skill-creator

Create, revise, and validate AstrBot Skills built around SKILL.md instruction bundles. Use when the user asks to create, scaffold, improve, package, or review a Skill for an AstrBot workspace, local installation, or plugin.

AstrBotDevs/AstrBot · 51 tokens

session-rag-eval

Run and debug Chatbox session attachment RAG model evaluation with synthetic and real long-file fixtures.

chatboxai/chatbox · 25 tokens

keybindings-help

Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify /.claude/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".

asgeirtj/system_prompts_leaks · 57 tokens