cmux-help

Guides cmux CLI usage and routes to dedicated cmux skills via live help output.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/psw7205/skills --skill cmux-help-psw7205
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cmux-help
Source: https://github.com/psw7205/skills/tree/main/skills/cmux-help
Command: npx skills add https://github.com/psw7205/skills --skill cmux-help-psw7205

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Learning and operating the cmux CLI (a macOS-native, tmux-like terminal multiplexer with built-in browser and markdown viewer) is error-prone: commands like send/send-key are split, snapshot refs go stale, and static docs drift from the live CLI. This Skill provides the stable mental model and common pitfalls while delegating command syntax to live cmux --help output. ## Core Features & Use Cases - Live-first documentation: Directs you to cmux --help, cmux docs <topic>, and cmux capabilities instead of guessing command syntax, preventing stale-doc errors. - Routing to dedicated skills: Acts as the entry point to official cmux skills (cmux-browser, cmux-settings, cmux-workspace, etc.) with a fallback chain (dedicated skill → raw SKILL.md URL via cmux docs → --help) that works even when no dedicated skill is installed. - Stable concepts and pitfalls: Documents the 4-layer hierarchy (Window → Workspace → Pane → Surface), handle formats, CMUX_* environment variables, and frequent mistakes like forgetting send-key Enter after send or reusing stale browser snapshot refs. - Use Case: You want to run tests in one cmux surface and read the output. The Skill gives you the exact send → send-key Enter → sleep → read-screen workflow and warns you about timing pitfalls. ## Quick Start Ask the AI to show how to run a command in a cmux surface and read its output using the cmux CLI.

Frequently Asked Questions about cmux-help

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a command in cmux and read the output?▼

Use cmux send with the surface ref to type the command, then cmux send-key Enter separately to execute it, since send alone does not run anything. After a short sleep or completion-pattern poll, call cmux read-screen with --lines to capture the result.

What is the difference between cmux and tmux?▼

cmux is a macOS-native app controlled over a Unix socket, while tmux is a traditional terminal multiplexer. cmux renames sessions to workspaces, splits send-keys into send plus send-key Enter, uses direction names for splits, and adds surfaces (tabs mixing terminal, browser, and markdown) inside panes.

Why does cmux send not execute my command?▼

cmux send only types text into the surface; it never presses Enter. You must call cmux send-key Enter as a separate command afterward. This is the most common cmux mistake.

Why do cmux browser snapshot refs stop working?▼

Interactive snapshot refs like e1 and e2 become stale whenever the DOM changes through navigation or Ajax updates. After any action that modifies the page, take a fresh snapshot before referencing elements again.

Can I use cmux commands from outside the cmux app?▼

Yes, but the CMUX_WORKSPACE_ID, CMUX_SURFACE_ID, and related environment variables are only set inside cmux terminals. From outside, pass --workspace and --surface explicitly, and verify the app is running with cmux ping first.

What are the limitations of the cmux built-in browser?▼

The cmux browser is WKWebView-based, so it does not support viewport emulation, network interception, or trace recording. For those capabilities, use CDP-based tools like Playwright instead.