manaflow-ai/cmux/cmux-browser
Claude Code and agent skill by manaflow-ai/cmux
- community
Checking that the SKILL.md file is still in the repository.
End-user browser automation with cmux. Use when you need to open sites, inspect or interact with browser surfaces, wait for page state, and extract data without stealing focus.
Install
npx vskill@latest install manaflow-ai/cmux/cmux-browserSKILL.md
The same SKILL.md was published earlier as manaflow-ai/cmux/cmux-browser.
Browser Automation with cmux
Read the CLI contract first
Check the binary that will actually run before giving an exact command:
There are two deliberately different command shapes:
- Create a browser surface with
open,open-split, ornew. These commands may be workspace-scoped and do not need a surface handle. - Use an existing surface with every surface-bound navigation, inspection, interaction, tab, state, or diagnostic command. Pass the handle explicitly with
--surface <handle>or as the first positional token.
Prefer the flag form in scripts because it makes the target unmissable:
The positional form is equivalent (cmux browser "$SURFACE" get url). url and get-url are accepted URL aliases, and the short interactive snapshot flag is accepted when a surface is already present; use get url and snapshot --interactive in new documentation so the target and operation are clear. Surface-bound operations have no unscoped form. The current CLI's explicitly global browser verbs (open, open-split, new, identify, import, profile, profiles, react-grab, reactgrab, devtools, dev-tools, focus-mode, design-mode, zoom, and history) may omit the handle and use caller/workspace routing; do not infer a target from visible focus for any other verb.
Find an existing browser surface without changing focus
identify, tree, and list commands are read-only and do not select a workspace, pane, or browser. Do not infer that the visually focused surface is the one the user wants.
First inspect the caller context (useful for the default workspace):
To discover browser surfaces in the caller or another workspace/window, use the all-window tree. It includes parent refs, so a browser in a different workspace can be targeted directly without selecting that workspace:
The filtered output is window, workspace, pane, and surface refs. Keep the surface ref, then target it explicitly:
If the user gives a URL or title instead of a workspace/pane, match that metadata locally and emit only the unique surface ref. This never prints the matched URL or title:
For one known workspace, cmux --json list-pane-surfaces --workspace <workspace> is a smaller read-only query. Raw tree/list payloads can contain page URLs and titles; filter or redact them before logging or pasting them. Never use a focus/select command merely to discover a surface.
Core workflow
Open (or create) a surface without stealing focus, capture the returned ref, then use that ref for every existing-surface operation:
After a browser download finishes, inspect the same surface's bounded history without opening the file or consuming a waiter:
The JSON records expose the stable download_id, filename, actual saved path when known, status (downloading, saved, or failed), byte count when known, and whether a known path still exists. Listing is newest first and repeatable; it remains scoped to the requested surface. Use download wait to keep the existing event-wait workflow.
The open response contains the new surface ref; in a script, extract it from the JSON response instead of printing the full response. If get url is empty or about:blank, navigate first instead of waiting on load state. Re-snapshot after navigation, modal open/close, or any major DOM change because refs go stale.
Wait
Viewport sizing (WKWebView)
cmux browser --surface "$SURFACE" viewport <width> <height> sets an exact logical viewport from 1 to 4096 CSS pixels. The page is aspect-fitted inside its existing pane, so pane layout and focus stay unchanged, and screenshots use the requested logical dimensions. viewport reset returns to native pane sizing.
Close or detach the browser inspector first: its inspector-managed split layout cannot be combined with viewport emulation, and opening or redocking an attached inspector resets emulation to native sizing. Large viewport and page-zoom combinations are bounded; the command returns structured maximum_page_zoom details and leaves the viewport unchanged when the combination exceeds WKWebView render limits.
Limits (WKWebView)
Trace/screencast recording, network route interception/mocking, and low-level raw input injection return not_supported; they depend on Chrome/CDP-only APIs. Use click, fill, press, scroll, wait, and snapshot instead. geolocation <lat> <lon> and offline true|false work: pages get the given position without a permission prompt, and offline mode blocks http(s) and ws(s) loads and reports navigator.onLine === false.
Troubleshooting js_error
Some complex pages reject the JavaScript behind snapshot --interactive and eval. Recover by checking whether the page actually navigated, then fall back to raw text or HTML:
If it still fails, navigate to a simpler intermediate page and retry from there. If the CLI and this skill disagree, refresh help (cmux browser --help) and refresh the installed skill before continuing; do not invent an implicit target.
Skill distribution and refresh
The repository copies are the source of truth: .claude/skills/cmux-browser and .agents/skills/cmux-browser point at skills/cmux-browser. Do not edit a mirror by hand. The supported Vercel installer (pinned here to the reviewed skills 1.5.23 release) refreshes both global Claude Code and Codex discovery roots and copies the complete skill (including references and templates):
Restart an agent session after a refresh if it cached the previous document. The repository's skills.sh remains available for a Codex-only destination; pass its --dest explicitly when that is the installation path:
Never commit home-directory skill copies, credentials, cookies, or saved browser state.
Deep-dive references
| Reference | When to Use | |
|---|---|---|
| references/surface-discovery.md | Find and target an existing browser surface without focus changes | |
| references/commands.md | Full command mapping, aliases, agent-browser equivalents, viewport error codes | |
| references/snapshot-refs.md | Ref lifecycle and stale-ref troubleshooting | |
| references/authentication.md | Login/OAuth/2FA patterns and state save/load | |
| references/session-management.md | Multi-surface isolation and state persistence | |
| references/video-recording.md | Recording status and practical alternatives | |
| references/proxy-support.md | Proxy behavior in WKWebView and workarounds |
Ready-to-use templates
| Template | Description | |
|---|---|---|
| templates/form-automation.sh | Snapshot/ref form fill loop (requires an explicit surface) | |
| templates/authenticated-session.sh | Login once, save/load state (requires an explicit surface) | |
| templates/capture-workflow.sh | Navigate and capture snapshots/screenshots (requires an explicit surface) |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cmux-browser/SKILL.md
Popularity
- Repository stars
- 27,405
- Repository forks
- 2,410
- 7-day trend score
- 51
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/manaflow-ai/cmux/cmux-browser)