Operations

/cmux-agents

Spawn AI agents in cmux panes — Claude workers as splits, audits/research as surfaces. Covers Claude, Cursor, Gemini, Codex, Kiro. Includes monitoring, prompt delivery, and collab patterns. Use this skill whenever the user mentions cmux agents, terminal agents, split agents, multi-agent orchestration, or wants to spawn AI workers in visible terminal panes.

$ golems-cli skills install cmux-agents
Good
100% best pass rate
23 assertions
9 evals
fixtures
1 workflow

Updated 2 weeks ago

Orchestration layer for AI agents in cmux panes. Low-level pane operations (splits, reads, sends) use cmux MCP tools — this skill handles the workflow on top.

STOP — Before Anything Else

1. Source agent-functions.sh:

source ~/.claude/commands/cmux-agents/scripts/agent-functions.sh

This gives you spawn-agent, agent-status, agent-nudge, agent-kill. 99% failure rate when hand-rolling cmux commands — these are NOT optional.

2. You WILL use spawn-agent for every agent. No exceptions. No hand-rolled cmux send + cd + claude.

3. AGENT_REGISTRY — maintain after CLAUDE_COUNTER in every response with active agents:

AGENT_REGISTRY:
| Surface | Tab | Task | Status | Last Check |
|---------|-----|------|--------|------------|
| surface:153 | cmux-analysis | Digest failures | WORKING | 12:35 |

Add on spawn. Update on check. Remove on kill.

MCP Primitives (use these for low-level ops)

OperationMCP Tool
Create splitmcp__cmux__new_split
Read agent outputmcp__cmux__read_screen
Send command/textmcp__cmux__send_input
Send keystrokemcp__cmux__send_key
List surfacesmcp__cmux__list_surfaces
Rename tabmcp__cmux__rename_tab
Set status barmcp__cmux__set_status
Set progressmcp__cmux__set_progress
Close surfacemcp__cmux__close_surface
Open browsermcp__cmux__browser_surface

Use MCP tools directly for ad-hoc pane interaction. Use spawn-agent for full agent lifecycle.

Create surface via MCP, then spawn

spawn-agent '' '' [options]


**Options:** `--model sonnet|opus`, `--launcher <func>`, `--cli gemini|codex|cursor-audit|cursor-work|kiro`

**Examples:**
```bash
spawn-agent golems surface:114 'T1 search-fix' 'Fix search ranking' --model sonnet
spawn-agent golems surface:115 'T2 audit' 'Audit code quality' --cli cursor-audit
spawn-agent orchestrator surface:116 'T3 research' 'Survey patterns' --cli gemini
spawn-agent golems surface:117 'T4 refactor' 'Refactor retry' --cli codex

Multiple agents: Create ALL splits first (3s between for Touch ID), verify $ prompt on each via read_screen, THEN spawn sequentially.

Task Routing

NeedBest CLIWhy
Deep reasoning, multi-fileClaudeBest reasoning, MCP, native worktrees
Codebase-wide auditCursor@codebase indexing, text output
Fast structured outputCodexOutput contracts, GPT-5.4
Large context researchGemini1M tokens, free
Quick PRsCodexFast, low overhead
Big refactorsClaude--worktree, session resume
Cross-model verificationClaude + CursorDifferent blind spots

Full CLI syntax and capabilities: adapters/ directory + adapters/capabilities.yaml.

Workflows

/cmux-agents:prompt-audit