Operations

/cmux-agents

Spawn AI workers in cmux via MCP/repoGolem. Triggers: visible workers, terminal agents, orchestration, audits.

$ golems-cli skills install cmux-agents
39 evals
1 workflow

Updated 6 days ago

Orchestration layer for AI agents in cmux panes. Low-level pane operations use cmuxlayer MCP tools; this skill owns the visible-worker lifecycle, delivery, recovery, and pane hygiene on top.

Naming: cmux is the terminal app/CLI; cmuxlayer is the MCP/managed-agent/orchestration layer this skill drives. The MCP tools keep the literal mcp__cmuxlayer__* namespace (and .mcp.json server key cmux) for back-compat, but the layer is called cmuxlayer — never cmux MCP, cmux.layer, or cmux layer. See /cmux → "cmux vs cmuxlayer".

Ownership boundaries

Fleet canon #5 owns model policy, #6 owns launcher naming/skip-perms, and #7 owns claim/guard/DONE/harvest-close. This skill keeps cmux pane mechanics, worker lifecycle controls, and delivery/recovery adapters.

  • Engine selection and review routing → /agent-routing § Review routing.
  • Launcher, -s, -m, resume, and FR-01 workaround → /repogolem.
  • Monitor/cron/loop payloads, inbound guards and reviewer handoff → /collab-monitor (payload rules: its references/cron-payloads.md).
  • Full collab scaffolding → /large-plan workflows/collab.md; PR stop/end state → /pr-loop.
  • Visual evidence → /never-fabricate R7 and /qa-verdict-gate; shell mechanics → /cyber (references/shell.md).

Decide first

NeedRoute
Visible implementation workerCurrent workspace, role worker
Read-only audit/researchSeparate named workspace unless Etan asks to keep it beside the lead
Lead/orchestratorRole orchestrator
One-shot nudge or tiny lookupUse an in-session subagent; do not create a persistent cmux pane
Manual launcher, non-agent terminal, or FR-01 recoveryFollow /repogolem, then use the same boot and delivery verification as a managed worker

cmuxlayer enforces two-column role geometry: orchestrators land LEFT, workers RIGHT, and extra workers tab into the rightmost worker pane. Pass the role; never compute a column. Pass workspace for every cross-workspace spawn. focus defaults to false and restores the original focus after initialization.

Default lifecycle

  1. Discover current topology with list_agents or list_agents({mine:true}); after crashes or layout changes, rediscover before acting.
  2. Spawn every visible worker with mcp__cmuxlayer__spawn_agent({repo, cli, prompt, workspace?, parent_agent_id?, role?}). Do not hand-roll a repoGolem launch unless FR-01 or a non-agent terminal requires it.
  3. Capture agent_id immediately in the collab/AGENT_REGISTRY and maintain the registry cadence in references/monitoring-and-collaboration.md. It is the durable handle; surface refs are for raw inspection and non-agent panes.
  4. Verify boot with wait_for({agent_id, target_state:"ready"|"working", timeout_ms:120000}); use list_agents(detail:"full") next and read_screen only to adjudicate parser/pane disagreement.
  5. Send follow-ups by agent_id, after a current health check. Verify every dispatch within 15 seconds; visible text after the composer prompt means it was not submitted.
  6. For multi-minute work, require an output file with an exact final DONE marker and wait for target_state:"done"; fleet canon #7/#9 owns DONE-versus-artifact law. Read the artifact immediately when the worker finishes.
  7. Follow Pane Hygiene, then close the worker with close_surface({scope:"agent", agent_id, force:true}). Only live processes remain open.

Workflows

/cmux-agents:prompt-audit