control

A command that turns the conversation into a control center for monitoring coding-agent sessions running in cmux, a terminal workspace manager.

In plain words
What is it for?
Use it to discover active cmux workspaces, choose which sessions to monitor, record the day's focus, and start a background watcher that reports important events.
Why use it?
It gathers only events that need human attention, such as questions, pauses, plans, and completed work, instead of requiring someone to watch every session.

Command

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.

agentmods
npx agentmods add commands/bvdr/claude-plugins/control
Clone the repo
git clone --depth 1 https://github.com/bvdr/claude-plugins
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,286 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00046 $0.03286
Opus 5 $0.00023 $0.01643
Sonnet 5 $0.00009 $0.00657
Haiku 4.5 $0.00005 $0.00329

Measured yesterday against content hash f3572dd13e8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

control 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 yesterday.

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.

plugins/bvdr/commands/control.md · 245 lines

How it starts

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

/control

Stand up the cmux control-center pattern: this conversation becomes the orchestrator that watches every claude/codex/opencode session running inside cmux and surfaces only the events that need a human (questions, plan-mode, idle, done). Routine work is handled silently in each sub-session.

When to use

User invokes /control to start (or re-start) supervising sub-agents. The command:

  1. Discovers what's running across cmux right now
  2. Asks the user which sessions to focus on today
  3. Asks what they're working on (one sentence — used as a "north star" while routing decisions back)
  4. Spawns / restarts the background watcher
  5. Switches the rest of the conversation into orchestrator mode

Pre-flight

  1. Locate cmux — try command -v cmux; fall back to /Applications/cmux.app/Contents/Resources/bin/cmux. Cache as CMUX=. If neither exists, tell the user cmux isn't installed and stop.
  2. Verify daemon"$CMUX" ping. If it returns Broken pipe (errno 32), see the cmux command's pre-flight notes (socketControlMode). Stop until resolved.
  3. Ensure config dirmkdir -p ~/.config/cmux-control.
  4. Ensure watcher script — if ~/.config/cmux-control/filter.py is missing, write it from the source in this repo (plugins/bvdr/scripts/cmux-control-filter.py), or fail loudly and tell the user where to install it from.

Step 1 — Discover sessions

Read three sources and join them:

Source What you get
cmux list-workspaces Workspace refs and names
~/Library/Application Support/cmux/session-com.cmuxterm.app.json Per-workspace cwd, customColor, panel sessionIds (panels[].terminal.agent.sessionId)
~/.cmuxterm/claude-hook-sessions.json Per-session lastSubtitle (Waiting/Working), lastBody, cwd
~/.cmuxterm/workstream.jsonl Per-session activity history; tail to derive last user prompt + recent tool descriptions

For each workspace with a claude/codex/opencode panel, build a one-line summary:

Read the full file on GitHub · 245 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. yesterday First seen · 245 lines · 46 tokens per session scan A f3572dd13e8e

Subscribe to this mod's changes

control is a command published in the GitHub repository bvdr/claude-plugins (3 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 3,286 once invoked, about $0.0002 per session on Opus 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-31.