cmux-workspace

cmux-workspace is a skill for Codex from disler/learning-cmux-with-agents. It costs 43 tokens per session (2,495 once invoked), scanned A, original, MIT.

A set of rules for working with the cmux workspace that launched the agent. A workspace is a tab-like group containing panes, and each pane can contain terminal or browser surfaces.

In plain words
What is it for?
Use it when identifying or targeting the current workspace, pane, surface, socket, or terminal for cmux automation.
Why use it?
It keeps automation aimed at the correct caller workspace and avoids disrupting another workspace the user may be viewing.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/reload.sh --tag <short-tag>.

Good fit Use it when identifying or targeting the current workspace, pane, surface, socket, or terminal for cmux automation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/disler/learning-cmux-with-agents
agentmods
npx agentmods add skills/disler/learning-cmux-with-agents/cmux-workspace

Made for: 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 cmux-workspace

README.md
[![agentmods](https://agentmods.dev/badge/skills/disler/learning-cmux-with-agents/cmux-workspace/github.svg)](https://agentmods.dev/skills/disler/learning-cmux-with-agents/cmux-workspace)
Your own site
<a href="https://agentmods.dev/skills/disler/learning-cmux-with-agents/cmux-workspace"><img src="https://agentmods.dev/badge/skills/disler/learning-cmux-with-agents/cmux-workspace/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 cmux-workspace

Your own site · 80×15
<a href="https://agentmods.dev/skills/disler/learning-cmux-with-agents/cmux-workspace"><img src="https://agentmods.dev/badge/skills/disler/learning-cmux-with-agents/cmux-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,495 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.00043 $0.02495
Opus 5.5 $0.00017 $0.00998
Sonnet 5.5 $0.00009 $0.00499
Haiku 4.5 $0.00004 $0.00249

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

Security

Grade A, and why

cmux-workspace 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 3mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

ai_docs/cmux-skills/cmux-workspace/SKILL.md · 226 lines

How it starts

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

cmux Workspace

Use this skill when a task should be scoped to the cmux workspace that invoked the agent. A workspace is the sidebar tab-like unit in cmux. It contains split panes, and each pane contains one or more surfaces. A surface is the terminal or browser session the user interacts with.

Default Rule

Scope actions to the current caller workspace unless the user explicitly asks for another workspace, another window, or global state.

Do not assume the visually focused cmux workspace is the right target. An agent can be running in one workspace while the user is looking at another. Prefer the caller environment first:

printf 'workspace=%s\nsurface=%s\nsocket=%s\n' \
  "${CMUX_WORKSPACE_ID:-}" \
  "${CMUX_SURFACE_ID:-}" \
  "${CMUX_SOCKET_PATH:-}"
cmux identify --json

Use CMUX_WORKSPACE_ID as the default workspace anchor and CMUX_SURFACE_ID as the default caller terminal/surface anchor. If those are missing, use cmux identify --json and be explicit that you are using the currently focused cmux context.

Non-Disruptive Automation

The user may be visually focused on a different workspace, window, or app while an agent works in the caller workspace. Treat layout and focus as separate concerns. Never call focus-changing verbs speculatively.

Never call these without an explicit user ask:

  • select-workspace switches the visible sidebar tab.
  • focus-pane / focus-panel yanks pane or surface focus.
  • tab-action with focus-changing actions.

These are user-affecting actions, like clicks. The rule applies even inside the caller's own workspace, since the user may be looking elsewhere.

Build layout additively, in one shot. Prefer commands that create a new pane already populated with the right surface:

# pane and content in one call, no follow-up needed
cmux new-pane --workspace "${CMUX_WORKSPACE_ID}" --type browser --direction right --url "http://127.0.0.1:8765"
cmux new-pane --workspace "${CMUX_WORKSPACE_ID}" --type terminal --direction down

Read the full file on GitHub · 226 lines

Files

What ships with it

2 files 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. 3mo ago First seen · 226 lines · 43 tokens per session scan A 5f8c0b41951b

Subscribe to this mod's changes

cmux-workspace is a skill published in the GitHub repository disler/learning-cmux-with-agents (118 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 2,495 once invoked, about $0.0002 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

cmux-workspace compared with skills from other repositories

cmux-workspace next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cmux-workspacedisler/learning-cmux-with-agentsSkill1185mo agoMITA43Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code