Agent skill

Cmux

by glebis in glebis/claude-skills

Controls the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API.

MITAuto-check passedAgent Workflows

Install Cmux

skills CLI
$ npx skills add glebis/claude-skills --skill cmux -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install glebis/claude-skills cmux --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/glebis/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cmux .claude/skills/cmux && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cmux
GitHub stars
390
Token cost
~2.7k tokens
SKILL.md length
911 words
Files
2 (incl. references)
Skills in repo
92
Repo updated
First seen
Licence
MIT

At a glance

Controls the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API.

  • Works in 5 steps: Auto Preview Routing → Subagent Workspaces → Sidebar Status & Progress → …
  • : open browser preview panes when a dev server starts
  • SKILL.md covers Quick Check, Core Use Cases, Combining Use Cases and Demo Mode (/cmux demo), plus 1 more section
  • Calls python3, claude and git

What it does

Cmux is an agent skill from glebis/claude-skills. Controls the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API. Use this skill to: open browser preview panes when a dev server starts or an HTML file is created; spin up named workspaces for parallel subagents; show live sidebar progress/status during long tasks; open utility splits on demand (logs, URLs, terminals) in any direction. Also handles /cmux demo — an interactive walkthrough with 3 screens of options that runs personalized live demos. Trigger when: a server starts and…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/api_reference.md`).

It sits in Agent Workflows, covering Subagents. It works with macOS. The repository describes itself as: Collection of Claude Code skills for enhanced AI workflows. The licence is MIT.

When your agent uses it

  • : open browser preview panes when a dev server starts
  • An HTML file is created
  • Spin up named workspaces for parallel subagents
  • Show live sidebar progress/status during long tasks

Example prompts

  • “Use the cmux skill to control the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API”
  • “/cmux”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Auto Preview Routing
  2. Subagent Workspaces
  3. Sidebar Status & Progress
  4. Utility Splits on Demand
  5. Workspace & Tab Actions

What it can do on your machine

Read from SKILL.md and the folder at commit 3b88261. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3
    • claude
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cmux loads about 2.7k tokens when it runs, and up to ~5.3k if it reads all its reference files. Until then it costs about 183 tokens; SKILL.md has 911 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~183
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from glebis/claude-skills at commit 3b88261, republished under its MIT licence (© glebis). 911 words, ~2,705 tokens.

Download SKILL.mdSave it as .claude/skills/cmux/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cmux
description
Controls the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API. Use this skill to: open browser preview panes when a dev server starts or an HTML file is created; spin up named workspaces for parallel subagents; show live sidebar progress/status during long tasks; open utility splits on demand (logs, URLs, terminals) in any direction. Also handles `/cmux demo` — an interactive walkthrough with 3 screens of options that runs personalized live demos. Trigger when: a server starts and needs previewing, an HTML/URL artifact is created, parallel subagents are dispatched, a long task needs visible progress, the user asks to open/show something in a split or tab, or the user invokes `/cmux demo`.

cmux

Controls the cmux macOS terminal app via its CLI socket API to orchestrate workspaces, panes, browser previews, sidebar status, and notifications.

Full CLI reference: references/api_reference.md

Quick Check

Always verify cmux is running before issuing commands:

bash
cmux ping 2>/dev/null && echo "ok" || echo "cmux not available"

If unavailable, skip cmux enhancements silently — never block the main task.

Core Use Cases

1. Auto Preview Routing

When a dev server starts or an HTML file is created, open it in a right-side browser pane:

bash
# Dev server detected (e.g. localhost:3000)
cmux new-pane --type browser --direction right --url http://localhost:3000

# HTML file created — serve it first, then preview
cd <project-dir> && python3 -m http.server 8080 &
cmux new-pane --type browser --direction right --url http://localhost:8080/<file>.html

When to trigger:

  • Output contains localhost:PORT, 127.0.0.1:PORT, Server running, Listening on
  • A .html file is written and the user would benefit from seeing it rendered
  • superpowers or another skill opens a visual artifact

Direction heuristic: right for wide layouts, down for narrow/tall terminals.


2. Subagent Workspaces

When dispatching parallel agents (via superpowers:dispatching-parallel-agents or similar), give each agent its own named cmux workspace so it's visible in the sidebar:

bash
# Create a workspace per agent (new-workspace has no --cwd — cd inside --command)
cmux new-workspace --command "cd /path/to/project && claude --dangerously-skip-permissions"
cmux rename-workspace "agent: fix-auth"

# Set status so the sidebar shows what the agent is doing
cmux set-status task "fix-auth" --icon "⚡"
cmux set-status state "running" --color "#F59E0B"

When an agent completes:

bash
cmux notify --title "Agent done" --subtitle "fix-auth" --body "Merged and cleaned up"
cmux set-status state "done" --color "#10B981"

Pattern: workspace 1 = orchestrator, workspaces 2–8 = subagents. Use cmux list-workspaces --json to track IDs.


3. Sidebar Status & Progress

Show live feedback for long-running tasks without interrupting the main session:

bash
# Task start
cmux set-progress 0 --label "Building..."
cmux set-status phase "build" --icon "🔨"

# Midpoint update
cmux set-progress 0.5 --label "Running tests..."
cmux set-status phase "test" --icon "🧪"

# Completion
cmux set-progress 1 --label "Done"
cmux notify --title "Task complete" --body "All tests passed"
cmux clear-progress

Use cmux log <message> --level info to append entries to the workspace log panel (visible via ⌘I).

When to use: any task taking >10 seconds — file processing, test runs, builds, research sweeps, code generation loops.


4. Utility Splits on Demand

Open any content in a split pane in the requested direction:

bash
# Open a URL in a browser split
cmux new-pane --type browser --direction right --url <url>

# Open a terminal split running a command (e.g. log tail)
cmux new-pane --type terminal --direction down
cmux send "tail -f /path/to/server.log"
cmux send-key "Enter"

# Resize to make it a narrow utility strip
cmux resize-pane --pane <id> -D --amount 20   # shrink height by 20 rows

Direction mapping for natural language:

User saysDirection flag
"on the right" / "beside"--direction right
"on the left"--direction left
"below" / "at the bottom"--direction down
"above" / "at the top"--direction up
"in a new tab" / "new workspace"cmux new-workspace

5. Workspace & Tab Actions

workspace-action and tab-action expose the right-click context-menu actions. Full table with flags in references/api_reference.md — the available action names are:

cmux workspace-action --action <name> (sidebar workspaces): pin · unpin · rename (needs --title) · clear-name · move-up · move-down · move-top · mark-read · mark-unread · close-others · close-above · close-below

cmux tab-action --action <name> (horizontal tabs): rename · clear-name · pin · unpin · reload · duplicate · new-terminal-right · new-browser-right · mark-read · mark-unread · close-left · close-right · close-others

⚠️ Destructive actions act on OTHER tabs, not the one you name. close-others / close-above / close-below (workspace) and close-left / close-right / close-others (tab) close everything except the target. close-others spares pinned workspaces only. Never run these to "test" — they will close the user's live tabs. Prefer close-workspace --workspace <id> to close one specific workspace.

Renaming / selecting (common gotchas):

  • Rename the sidebar/switcher label → cmux workspace-action --action rename --title "<name>" (or cmux rename-workspace <name>). rename-tab only renames an inner tab and does not change the switcher label.
  • Select/focus a workspace → cmux select-workspace --workspace <id>. There is no --action select (it errors "Unknown workspace action").

When unsure of a command's exact flags, run cmux <command> --help — every command embeds full usage.


Combining Use Cases

Full workflow example — superpowers runs a subagent that builds a UI:

bash
# 1. Announce work in sidebar
cmux set-progress 0 --label "Scaffolding UI..."
cmux set-status agent "ui-builder" --icon "🎨"

# 2. Subagent does its work...

# 3. Server starts → auto-preview
cmux new-pane --type browser --direction right --url http://localhost:5173

# 4. Mark done
cmux set-progress 1 --label "Preview ready"
cmux notify --title "UI ready" --body "Preview open on the right"
cmux clear-progress

Demo Mode (/cmux demo)

When invoked as /cmux demo, run an interactive personalized walkthrough. Always verify cmux ping first — abort with a clear message if unavailable.

Screen 1 — Workflow

Ask with AskUserQuestion:

question: "What best describes how you work?"
header: "Workflow"
options:
  - label: "Coding agent manager"
    description: "Running multiple Claude sessions in parallel"
  - label: "Web dev"
    description: "Browser preview, dev servers, HTML artifacts"
  - label: "Research / long tasks"
    description: "Vault work, builds, sweeps that take minutes"
  - label: "Show me everything"
    description: "Run all demos back to back"
Screen 2 — Mode
question: "How do you want to explore?"
header: "Demo mode"
options:
  - label: "Walk me through it"
    description: "Step by step with explanations between each demo"
  - label: "Auto-run"
    description: "Run all relevant demos back to back, narrate as you go"
  - label: "Just the commands"
    description: "Show what you'd run, skip execution"
Screen 3 — tmux
question: "Do you use tmux?"
header: "tmux"
options:
  - label: "Yes, daily"
    description: "Show me the cmux + tmux combo"
  - label: "For SSH / remote only"
    description: "Show the remote persistence pattern"
  - label: "Not really"
    description: "Skip tmux, focus on cmux-native features"
Show full SKILL.md (418 more words)Show less
Demo Catalog

Run demos based on Screen 1 answer. Each demo: announce what's happening, execute the commands, narrate what the user is seeing, suggest what to try next.

A — Browser preview pane (web dev, show everything)

  1. Create /tmp/cmux-preview.html with a minimal styled page
  2. python3 -m http.server <PORT> --directory /tmp &
  3. cmux new-pane --type browser --direction right --url http://localhost:<PORT>/cmux-preview.html
  4. Use cmux browser --surface <id> screenshot to show the rendered result inline
  5. Suggest: "Try editing the HTML — navigate the browser pane to reload"

B — Sidebar progress (research / long tasks, show everything)

  1. Animate through 0→0.3→0.7→1.0 with label changes (set-progress, set-status)
  2. Fire cmux notify on completion
  3. cmux log a few entries, mention ⌘I to open the log panel
  4. Suggest: "Watch this sidebar during your next vault scan or research sweep"

C — Subagent workspaces (coding agent manager, show everything)

  1. cmux new-workspace --command "echo 'agent: fix-auth'" + rename
  2. cmux set-status with agent name + color
  3. cmux notify simulating completion
  4. cmux close-workspace cleanup
  5. Suggest: "Next time you run parallel agents via /dispatching-parallel-agents, this happens automatically"

D — tmux inside cmux (if Screen 3 = daily or SSH)

  1. cmux new-pane --type terminal --direction right
  2. cmux send --surface <id> "tmux new-session -s work\n"
  3. Build 2–3 named windows (editor, server, git)
  4. Capture with cmux read-screen --surface <id> and show output
  5. Suggest: "tmux keeps the session alive if cmux restarts. Use tmux attach -t work to reconnect."

E — Utility split on demand (all workflows)

  1. cmux new-pane --type terminal --direction down
  2. Send a tail -f or git log --follow -p command into it
  3. cmux resize-pane -D --amount 10 to shrink it to a strip
  4. Suggest: "Say 'open a log strip at the bottom' during any task and this happens automatically"
Auto mode

In auto mode (Screen 2 = "Auto-run"):

  • Run all demos relevant to Screen 1 without pausing for confirmation
  • Use cmux set-progress and cmux set-status to show overall demo progress in the sidebar
  • Narrate each step in text as it executes
  • At the end: print a summary of what ran and key shortcuts to remember
Cleanup

After each demo (or at the end of auto mode), close any panes/workspaces/processes created:

bash
cmux close-surface --surface <id>   # or close-workspace
kill <server-pid>
cmux clear-progress
cmux clear-status <key>

Error Handling

  • If cmux ping fails: skip all cmux calls, proceed with task normally
  • If a new-pane or new-workspace call fails: log a warning, don't retry
  • Never let cmux failures block or slow down the main task
  • In demo mode: if a command fails, explain what should have happened and move on

© glebis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/cmux of glebis/claude-skills.

  • SKILL.md
  • references/api_reference.md

Open the folder on GitHubat commit 3b88261

Compare with similar skills

Cmux next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cmux compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cmux this skillglebis/claude-skills390—~2.7kAutomated safety check: PassMIT
Agent Desktopsuperagent-ai/grok-cli3.5k—~720Automated safety check: PassMIT
Homebrew Cask Creatormalob/nix-config463—~1.6kAutomated safety check: PassMIT
Claude Code Agent Developmentanthropics/claude-plugins-official38k7 repos~2.8kAutomated safety check: PassApache-2.0
Subagent Driven DevelopmentAsvarox/allkaraoke26137 repos~1.2kAutomated safety check: PassNone
Dispatching Parallel Agentsultralisp/ultralisp25840 repos~1.5kAutomated safety check: PassNone

Similar skills

  • Agent Desktop

    superagent-ai/grok-cli

    Use the built-in Computer sub-agent with agent-desktop for macOS desktop automation.

    3.5k GitHub stars~720 tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed
  • Homebrew Cask Creator

    malob/nix-config

    Coordinates specialist agents to create a Homebrew cask for a macOS app: pre-flight checks, download and inspection, a livecheck strategy and the remaining cask steps.

    463 GitHub stars~1.6k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Subagent Driven Development

    Asvarox/allkaraoke

    A skill your agent uses when executing implementation plans with independent tasks in the current session

    261 GitHub starsUsed in 37 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Dispatching Parallel Agents

    ultralisp/ultralisp

    A skill your agent uses when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

    258 GitHub starsUsed in 40 repos~1.5k tokens
    Agent WorkflowsAuto-check passed
  • Launches one separate agent through Paseo to give a second opinion on the current task, with a self-contained briefing and no permission to edit files.

    20k GitHub starsUsed in 1 repo~756 tokens
    Agent WorkflowsAuto-check passed

More from glebis/claude-skills

All 92 skills in this repo
  • Runs a human-first workflow for labeling PII spans in a transcript, then scores inter-annotator agreement and drafts an adjudicated gold set.

    390 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Automates a dedicated, logged-in Chrome instance per profile without ever closing the user's own open tabs or browser windows.

    390 GitHub stars~973 tokensUpdated yesterday
    Auto-check passed
  • Deep Research

    glebis/claude-skills

    This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API.

    390 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check: notes
  • Elimination Research

    glebis/claude-skills

    This skill should be used for elimination-style research where the user wants to choose from a shortlist of products, tools, services, vendors, or other options using explicit criteria, numeric…

    390 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Narrated HTML Presentations

    glebis/claude-skills

    Generates a self-contained HTML presentation with article and slides modes, ElevenLabs voiceover narration and optional GPT Image 2 illustrations.

    390 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check: notes
  • Writes fictional but realistic coaching or therapy session transcripts for evals, demos and few-shot examples, in several modalities and export formats.

    390 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Cmux

What does Cmux do?

Controls the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API. Cmux is an agent skill from glebis/claude-skills. Controls the cmux macOS terminal app (Ghostty-based, AI-agent-aware) via its CLI socket API.

When should I use Cmux?

Cmux fits situations like: : open browser preview panes when a dev server starts; an HTML file is created; spin up named workspaces for parallel subagents; show live sidebar progress/status during long tasks.

How do I install Cmux in Claude Code?

Run `npx skills add glebis/claude-skills --skill cmux -a claude-code`. Or copy the skill folder (skills/cmux in glebis/claude-skills) into .claude/skills/cmux in your project. Claude Code loads it when a task matches its description.

How do I install Cmux in Codex?

Run `npx skills add glebis/claude-skills --skill cmux -a codex`. Or copy the skill folder (skills/cmux in glebis/claude-skills) into .agents/skills/cmux in your project. Codex loads it when a task matches its description.

Can I use Cmux in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add glebis/claude-skills --skill cmux -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cmux, .gemini/skills/cmux, .github/skills/cmux and .opencode/skills/cmux in your project.

What does Cmux need to run?

Going by SKILL.md and its folder, Cmux needs the command-line tools its instructions call (python3, claude and git). Our summary lists: Python 3.

Does Cmux access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cmux safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cmux use?

Cmux is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cmux use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Cmux?

Skills that share tags, products or a category with Cmux: Agent Desktop (superagent-ai/grok-cli, 3.5k stars), Homebrew Cask Creator (malob/nix-config, 463 stars), Claude Code Agent Development (anthropics/claude-plugins-official, 38k stars) and Subagent Driven Development (Asvarox/allkaraoke, 261 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cmux?

glebis (a GitHub user) maintains it in glebis/claude-skills, which has 390 GitHub stars. The repository holds 92 skills in this directory. The repository was last updated on October 8, 2026.

Source: glebis/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.