# cmux skill [![ci](https://github.com/george4data/cmux-skill/actions/workflows/ci.yml/badge.svg)](https://github.com/george4data/cmux-skill/actions/workflows/ci.yml) [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) **Give your coding agent control of the terminal it is already running in.** [cmux](https://github.com/manaflow-ai/cmux) is a Ghostty-based terminal multiplexer that exposes a Unix-socket control API through a `cmux` binary on `PATH`. This [Agent Skill](https://agentskills.io) teaches an agent to use it: anything you can do with the mouse — new split, browser pane, new tab — it can do from Bash. Without the skill, an agent in cmux is just an agent in a terminal. With it: - **Browser automation with no driver to install.** A real Chromium pane the user watches live — `navigate`, `snapshot --interactive`, `click`, `fill`, `eval`, `screenshot`, `console list`, `network`, cookies, storage, saved login state, tracing. - **Panes and splits.** Open a dev server or log tail beside the user, then `read-screen` it — including REPLs and TUIs that Bash can never capture. - **Nested agent sessions.** Launch a *separate* Claude Code or Codex session in another pane on a model you choose, prompt it, and read its replies back. - **Sidebar reporting.** Status pills, progress bars, logs and desktop notifications for long jobs, out of band from the transcript. It is opinionated about restraint, too: never type into your own pane, never create a workspace or window without asking, never steal focus, and close only what you opened. --- ## Requirements The skill activates only when the host terminal is cmux — it checks `$CMUX_SOCKET_PATH` / `$CMUX_SURFACE_ID` and `cmux ping` before doing anything, and stands down otherwise. Install [cmux](https://github.com/manaflow-ai/cmux) first; everything else here is markdown, no runtime or dependencies. ## Install ### Claude Code — as a plugin (recommended) ``` /plugin marketplace add george4data/cmux-skill /plugin install cmux@cmux-skill ``` ### Claude Code — as a plain skill Keeps the shorter `/cmux` invocation. ```bash git clone https://github.com/george4data/cmux-skill.git cd cmux-skill ./install.sh claude # → ~/.claude/skills/cmux ``` ### Cursor ```bash ./install.sh cursor # → ~/.cursor/skills/cmux ./install.sh cursor --project # → ./.cursor/skills/cmux, checked in with the repo ``` ### Codex, Gemini CLI, opencode, and other Agent Skills hosts `.agents/skills/` is the cross-agent location, and the default: ```bash ./install.sh # → ~/.agents/skills/cmux ``` Other flags: `--link` symlinks the checkout instead of copying, so edits take effect immediately; `--force` replaces an existing install, keeping the old one as `cmux.bak`; a bare path argument installs anywhere you like. ## Use Mostly you do not invoke it — just ask for the thing: > open the dev server in a browser pane and tell me what the console says > split a terminal beside me and tail the worker log > spin up a second Claude on sonnet to review `src/auth.ts` while you keep going Or call it directly with `/cmux` (plain skill) or `/cmux:cmux` (plugin). A taste of what it drives: ```bash cmux tree # the whole layout cmux browser open http://localhost:3000 # → surface:50 cmux browser surface:50 snapshot --interactive --compact cmux browser surface:50 click e115 --snapshot-after # refs beat CSS selectors cmux new-pane --type terminal --direction right cmux send --surface surface:12 "npm run dev" && cmux send-key --surface surface:12 enter cmux read-screen --surface surface:12 --scrollback --lines 100 cmux set-progress 0.4 --label "12/30 suites" ``` ## What is in here ``` skills/cmux/SKILL.md the skill itself skills/cmux/reference/browser-commands.md full `cmux browser` surface .claude-plugin/ Claude Code plugin + marketplace manifests install.sh installer for other Agent Skills hosts ``` `cmux docs` and `cmux --help` are authoritative — when this skill and the CLI disagree, the CLI wins, and the skill says so. ## License MIT — see [LICENSE](LICENSE).