cmux-architecture
cmux package architecture, refactor layering, dependency inversion, file organization, DocC documentation, package design discipline, testability, and Swift 6…
Adversarial code review workflow for agent-written changes: build a change map, run independent discovery, suppress low-value noise, challenge credible findings, gather executable evidence, and produce a compact review receipt. Use before opening a PR, after substantial agent
$ npx -y skills add manaflow-ai/cmux --skill cmux-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cmux-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Adversarial code review workflow for agent-written changes: build a change map, run independent discovery, suppress low-value noise, challenge credible findings, gather executable evidence, and produce a compact review receipt. Use before opening a PR, after substantial agent
name: cmux-review description: "Subagent code review for agent-written changes. The default pre-merge pass is a review subagent on the exact diff (correctness first), fixes, and a quick second pass when the fixes were non-trivial. The full adversarial protocol (change map, independent discovery, challenge, executable evidence, review receipt) is for high-risk changes or when the user asks for a deep review. Use before merging, after substantial agent edits, or when re-reviewing a repair."
Review code to reduce developer attention, not to maximize comment count.
> Spend compute freely on investigation; spend developer attention reluctantly.
The final output should be small enough that every surfaced finding deserves attention.
1. Spawn a review subagent with the task intent, the base and head SHAs, and the exact diff. Ask for correctness first (regressions, broken edge cases, lifecycle, races, data loss), then repository rules. Do not pass it your own reasoning. 2. Fix the concrete findings and push. 3. When the fixes were non-trivial, run a quick second subagent pass on the updated diff. 4. Merge once the checks that judge the change pass (`CLAUDE.md`, "Merge fast, not blind") and, for app/runtime/UI changes, the user approved after dogfood or gave a direct merge directive.
Review runs as subagents in the current agent runtime, not as a second model or an external review service. Use the full protocol below for high-risk changes (security, persistence, concurrency, data loss) or when the user asks for a deep review.
1. Resolve the repository root with `git rev-parse --show-toplevel`. 2. Resolve a comparison base:
3. Capture:
4. If cmux is available, set the current workspace to review while the run is active:
cmux workspace status set review
Keep the review read-only through discovery and challenge.
Before looking for defects, explain the change.
Produce:
Keep this brief useful even when the review finds zero defects.
Many agent failures come from implementing the wrong behavior cleanly. Treat task compliance as a first-class review dimension before local bug hunting.
Turn the requested task into concrete requirements and constraints. For each one, record:
Also call out material **out-of-scope changes**: behavior, dependencies, permissions, APIs, persistence, or refactors that the task did not require and that increase review surface.
A requirement mismatch is a real finding even when every changed line is locally valid. Prefer observable task language over assumptions about what the author meant.
Prefer independent reviewer contexts.
When the agent runtime supports subagents or fresh review sessions, run at least two discovery passes without showing them each other's findings. Give initial reviewers:
Avoid feeding the author's conversational justification into initial discovery. Fresh reviewers should evaluate the result rather than inherit the reasoning that produced it.
Suggested roles:
Look for concrete regressions, broken edge cases, lifecycle errors, races, stale state, incorrect assumptions, missing cleanup, bad error handling, and data-loss paths.
Trace changed APIs and state across callers, consumers, persistence, tests, configuration, and platform boundaries. Look beyond changed lines.
Apply repo-local guidance such as `AGENTS.md`, `CLAUDE.md`, and `.github/review-bot-rules/`.
If only one reviewer context is available, run these as separate passes and clear previous candidate findings from the prompt between passes where practical.
Normalize candidate findings into one list and merge semantic duplicates.
Each candidate needs:
Severity guidance:
Default publication policy:
A vague concern is a hypothesis, not a finding.
Open source Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents. Built for multitasking, organization, and programmability.
Repo: manaflow-ai/cmux
cmux package architecture, refactor layering, dependency inversion, file organization, DocC documentation, package design discipline, testability, and Swift 6…
Backend TypeScript and Cloud VM development rules for cmux. Use when editing web/app/api, web/services, backend scripts, Cloud VM lifecycle, provider…
Stripe checkout, pricing, subscription, Pro plan, webhook, and entitlement runbook for cmux billing work. Use when editing or debugging billing, pricing,…
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…
Operate cmux Cloud machines, run durable remote commands or agents, and present their workspaces or services. Use for cmux vm/cloud tasks; backend…
Use only after the user explicitly asks for Computer Use: drive real macOS apps from a cmux agent session via the bundled engine (accessibility tree +…