buildoak/agent-mux/skill
Claude Code and agent skill by buildoak/agent-mux
- community
Checking that the SKILL.md file is still in the repository.
Cross-engine dispatch layer for AI coding agents. Use when you need to: launch a worker on Codex/Claude/Gemini/agy/Grok, recover a timed-out dispatch, steer a running agent, or fan out parallel work. Profiles live in ~/.agent-mux/prompts/.
Install
npx vskill@latest install buildoak/agent-mux/skillSKILL.md
agent-mux
QUICKSTART (95% of use cases)
1. Discover workers:
Selection: scout for reads, lifter for writes, architect for plans, grunt for bulk edits.
2. Profile dispatch (the 80% case):
Blocks until done. Result is stdout JSON with status, response, activity.files_changed.
3. Prompt-file dispatch (for heredoc quoting issues):
Or use --stdin JSON mode for full quoting control. --stdin implies --yes, so machine JSON dispatches do not stop for interactive confirmation by default.
4. Effort note: Don't override -e unless upgrading. Check config prompts for profile defaults -- passing -e=high to an xhigh profile (scout, auditor, grunt, architect) is a DOWNGRADE.
For opt-in GPT-5.6 depth, inspect config engines --json first. Sol and Terra may expose max/ultra; Luna stops at max; GPT-5.5/5.4-family models stop at xhigh on Codex 0.144.1. Max/Ultra require an explicit model and verified live/bundled catalog support:
Ultra may trigger native Codex collaboration, but delegation is not guaranteed. --reasoning is a deprecated one-release alias; use --effort, and never pass differing explicit values.
Key flags: -P profile, -E engine, -m model, -e effort, --cwd / -C cwd, --async, --timeout. Prefer spelling --cwd in plans for clarity. Note: -E (engine) and -e (effort) are different — case matters.
5. Sync wait + result:
Async-first: Prefer --async for dispatches over 2 minutes — lets you monitor, steer, or bail early. Sync is fine for quick probes.
6. Async pattern:
Note: --async does NOT daemonize -- the CLI writes an ack and keeps a host process alive. Shell & is required for true parallel startup. wait --poll <duration> <id> is the lifecycle wait primitive; result <id> --json is the structured collection primitive.
DETAILS (remaining 5%)
1. Engine override:
- Codex: implementation, debugging, precise edits. Model discovery uses the PATH-resolved CLI once per process: live catalog, bundled fallback, then conservative legacy fallback.
DispatchSpec.Effortis forwarded on initial and resume invocations. - Claude: planning, synthesis, review
- Gemini: analysis, second opinion (models:
gemini-3-flash-preview,gemini-3.1-pro-preview) - agy: experimental CLI-first model access. Plain stdout; agent-mux internally invokes the local agy CLI with its fixed
--sandbox, discovers Antigravity conversation IDs fromagy.log, and uses inbox +--conversationfor nudge/redirect resume. Operator-supplied sandbox/permission/reasoning/max-turn/full-access options are rejected. This does not imply plugins, MCP, browser automation, Google services, or provider service actions. - Grok: Grok Build CLI support. Default dispatch is headless
prompt-fileplus streaming JSON with exact UUID resume, adapter-owned prompt/session/debug files, modelgrok-4.5by default, omitted native sandbox flags by default, and public artifact scanning with private Grok sidecars excluded. Opt-in v1.5 structured reports use private prompt-file transport plusgrok-worker-report-schema=agent-mux.worker-report.v1; this is text/code-only, fake-covered, and live-smoke-proven on Grok CLI 0.2.93 for bounded worker reports.worker_report.jsonis the sanitized public report sidecar;grok_prompt.mdsidecars are private. Web/X search, image input/output, structured activity, token/cost usage, custom sandbox aliases, native allow/deny, max-turns, plugins/MCP/hooks/memory/subagents, and GAAL-native indexing are not claimed. Useagent-mux config engines --jsonfor the active Grok model allowlist; refresh explicitly withagent-mux config engines --refresh-models --engine grok --json.
Gemini ignores -e -- use model selection for depth control.
2. Steering:
status <id> --jsonis the one-off live check. Do not poll status in a loop.steer <id> redirect "new direction"narrows or redirects a running worker; then wait and collect result.steer <id> nudge "message"asks for a wrap-up/status nudge.steer <id> abortSIGTERMs async host when live; otherwise writescontrol.jsonfor the watchdog.
3. Data model (3 paths):
~/.agent-mux/dispatches/<ULID>/-- durable (meta.json, result.json)$XDG_RUNTIME_DIR/agent-mux/<ULID>/or/tmp/agent-mux-$UID/<ULID>/-- runtime (events.jsonl, inbox.md)~/.agent-mux/prompts/-- profiles;<cwd>/.agent-mux/-- skills/, hooks/
4. Gaal tracing: (session_id available after session start; absent for startup failures; Grok session IDs are exact UUIDs for agent-mux resume and are not GAAL-native trace IDs)
5. Bash timeout: Claude Code defaults to 120s. Long dispatches need explicit timeout: 300000 or run_in_background: true on the Bash tool call.
6. Recovery:
timed_out+activity.files_changednon-empty ->--recover=<id>with a continuation prompttimed_out+ emptyactivity.files_changed-> reframe into a narrower fresh dispatchfailed-> check cause, retry once or escalate
7. Landmines:
--asyncdoes NOT daemonize -- use shell&status: completeddoes not mean task success -- checkresponse-eis effort,-Eis engine (case matters)- Codex Max/Ultra require
-m; legacy discovery cannot prove them. Luna rejects Ultra and GPT-5.5/5.4-family models reject Max/Ultra on the Codex 0.144.1 matrix --reasoningis deprecated; it aliases--effort, and a differing explicit pair fails preflight- agy rejects explicit portable sandbox, permission, reasoning, max-turn, and full-access options; use model/add-dir/prompt only
- Grok rejects explicit add-dir, permission, reasoning, full-access, max-turns, raw
prompt-json/json-schema, web/X, image, native allow/deny, plugin/MCP/hook, trace/export/debug, subagent, and memory controls; use model, optional supported Grok sandbox (off,workspace,read-only,strict,devbox), prompt, timeout, and the AgentMUX-owned v1.5 report schema only --recoverresumes with NEW prompt, does not fetch result (useresult <id>)-e=highon xhigh profiles is a downgrade, not a floorwaithas no--timeout— only--pollfor cadence (e.g.,wait --poll 30s <id>)- There is no
agent-mux config pipelinescommand in the current CLI. Useagent-mux config promptsand compose multi-step flows with profiles unless a named pipeline profile appears in the prompt roster.
8. References: Deep dives in references/:
- first-run.md -- first-launch/onboarding contract for cold machines
- pitfalls.md -- audit-grounded landmines with session evidence
- async-and-steering.md -- lifecycle, fan-out, steering mechanics
- recovery-guide.md -- timeout/failure handling
- gemini-specifics.md -- Gemini approval mode, resume quirks
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/SKILL.md
Popularity
- Repository stars
- 35
- Repository forks
- 8
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/buildoak/agent-mux/skill)