tmux

tmux is a skill for Claude Code, Codex from bks-lab/open-bridge. It costs 74 tokens per session (1,015 once invoked), scanned A, original, MIT.

A driver that lets workplace scripts steer tabs and terminal sessions running in tmux, a terminal multiplexer that keeps multiple terminal windows and panes in one session. It provides the same workplace controls as the other supported terminal driver.

In plain words
What is it for?
Use it to open, launch, inspect, send input to, and adopt tmux-backed terminal tabs and sessions.
Why use it?
It lets the workplace system control tmux sessions instead of requiring a different terminal application. Without tmux, the driver cannot provide tab information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to open, launch, inspect, send input to, and adopt tmux-backed terminal tabs and sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bks-lab/open-bridge/tmux
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 bks-lab/open-bridge --skill tmux
Clone the repo
git clone --depth 1 https://github.com/bks-lab/open-bridge

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/bks-lab/open-bridge/tmux/github.svg)](https://agentmods.dev/skills/bks-lab/open-bridge/tmux)
Your own site
<a href="https://agentmods.dev/skills/bks-lab/open-bridge/tmux"><img src="https://agentmods.dev/badge/skills/bks-lab/open-bridge/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/bks-lab/open-bridge/tmux"><img src="https://agentmods.dev/badge/skills/bks-lab/open-bridge/tmux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,015 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.
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.00074 $0.01015
Opus 5.5 $0.00030 $0.00406
Sonnet 5.5 $0.00015 $0.00203
Haiku 4.5 $0.00007 $0.00102

Measured today against content hash 1fa49807d4e6, 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tmux_driver.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 77 lines

How it starts

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

tmux

A second terminal driver beside skills/cmux. It speaks the workplace JSON protocol (docs/workplace.md § Writing a driver), so the plan, the briefing, the inbox and the cockpit work the same in any terminal app that runs tmux.

Optional. It needs the tmux binary ($BRIDGE_TMUX_BIN, else tmux on PATH, else Homebrew's path). Without it the driver answers an error, which scripts/workplace.py reads as "tab view unknown", never as "no tabs open".

Wire it

workplace:
  driver: {command: ["python3", "${root}/skills/tmux/scripts/tmux_driver.py"]}

Then python3 scripts/workplace.py open --yes [--here "$TMUX_PANE"], launch, status, send and adopt steer the tabs, exactly as with cmux. BRIDGE_TMUX_SOCKET=<name> points the driver at a separate server (tmux -L <name>); the tests use that so they never touch your own tmux.

Mapping

Workplace tmux
workspace session (: and . in a name become _, as tmux does)
tab window, its name is the tab name
ref / id pane id of the window's active pane, %3
is_self the window holds $TMUX_PANE of the caller
state read from the pane: no agent process below the pane is shell; esc to interrupt is working; a permission or numbered choice prompt is needs-you; else waiting
sessions --resume <uuid>, -r <uuid> or --session-id <uuid> in the agent's process args

All twelve verbs are served: tabs, sessions, open, launch, send, rename, control, caps, focus, key, screen, close.

What it guarantees

  • It never closes a window or a session on its own. close kills one pane on request, and refuses the last pane of the server, which would end the server.
  • It never moves the last window out of a session (tmux destroys an emptied session); such a tab is renamed where it is and the report says so.
  • open and control reuse a window of the same name in the target session. launch does not, like cmux: workplace.py already skips an agent that runs, and --again asks for a second tab on purpose.
  • launch --target tab opens in the caller's session (here, else $TMUX_PANE) and refuses when neither is known, never the attached session.
  • A command over 1000 bytes goes into a private launcher file (~/.cache/bridge-tmux/commands/, mode 0600, pruned after 7 days), since tmux carries a command in one message of at most 16 KB. Every command keeps a shell open after the agent exits.
  • A step tmux refuses is an ERROR line, never a success line. No server running is a true "no tabs".

Read the full file on GitHub · 77 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 77 lines · 74 tokens per session scan A 1fa49807d4e6

Subscribe to this mod's changes

tmux is a skill published in the GitHub repository bks-lab/open-bridge (13 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,015 once invoked, about $0.0003 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-10-16.