/rexymcp:dispatch <phase>from RexyMCP
Dispatches a phase to a local-LLM executor via the execute_phase MCP tool. Reads phase docs, checks executor health, invokes async run, and hands off for monitoring.
Ships in RexyMCP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill is thin glue around the execute_phase MCP tool. It does not
review, does not re-dispatch, does not decide escalation levers. It invokes
the executor, surfaces the result, and suggests the next step. Each step is
a user gate.
Before any action:
<repo>/docs/dev/NEXT.md to confirm the active phase pointer. If it
says "none," there is no active phase — tell the user and stop.<phase> from the argument — it may be
a short id like phase-01 or a full path). Confirm its Status: line is
todo or in-progress. todo = fresh first dispatch; in-progress =
re-dispatch after a bounce or escalation refinement (the executor reads
the phase doc + any bug docs + the Update Log's Notes-for-executor block
and continues). If it is review or done, tell the user the phase is
not dispatchable in its current state and stop.<repo>/rexymcp.toml to confirm bootstrap is complete (the
[executor] and [commands] sections are present). If missing, point the
user at /rexymcp:architect to bootstrap first.The repo root is <repo> — resolve it from CLAUDE_PROJECT_DIR, ANTIGRAVITY_PROJECT_DIR, or the
nearest directory containing the milestone layout (docs/dev/milestones/).
Invoke the executor_health MCP tool (no args, or pass base_url if the
user supplied an override from rexymcp.toml). If the endpoint is
unreachable, surface the error to the user and stop. Do not invoke
execute_phase against a dead endpoint.
Example healthy response: {"status": "ok", "model": "qwen-32b", ...}
Example unhealthy response: connection refused, timeout, or 5xx.
Call the execute_phase MCP tool with these arguments:
phase_doc_path: the absolute path to the phase doc. Resolve from the
<phase> argument using the milestone convention:
docs/dev/milestones/M<n>-<slug>/phase-<nn>-<slug>.md.repo_path: the target repo root (from CLAUDE_PROJECT_DIR, ANTIGRAVITY_PROJECT_DIR, or the
client's workspace roots).model (optional): if the user supplied a model override, pass it here.As of M30, execute_phase is an async job — it spawns the run inside the
serve process and returns immediately, before the phase finishes. Detect and
adapt on what it returns:
{ run_id } present → the run is in flight. Confirm it started with a
single get_run_status(run_id) (expect running), then stop polling and hand
off: tell the user the run is live and that they watch it via rexymcp status /
rexymcp dashboard. Reap the terminal PhaseResult when the user signals the
run finished (or on your next turn) with one more get_run_status(run_id). Do
not sit in a continuous poll loop, do not narrate turn-by-turn, and do
not grep/tail the session log for progress — each poll re-reads the whole
context (a large, avoidable Claude-token cost; see WORKFLOW.md "Governing a running
phase") and the dashboard already shows live progress. The run is bounded by its
own terminators (max_turns, wall_clock_secs, the governor); it does not need
you watching. (In an autonomous /rexymcp:auto run there is no human to hand
off to — reap by polling, but minimally: no narration, no log-grep, never cancel
for slow/stuck.) When you reap, branch on the terminal state:
state == "done" → result is the PhaseResult; branch on result.status
per §3–§6.state == "failed" → an infrastructure error (config load / scope / IO),
not a model hard_fail. Surface error and stop; suggest executor_health
and the log. Do not route to /rexymcp:escalate — there is no briefing.state == "unknown" after you have already seen running/done for this
id → the run was lost (the serve process likely restarted mid-run — a
rebuilt binary doesn't hot-swap a running serve, and the registry is
in-memory). Surface "run lost — check rexymcp status, then re-dispatch"; do
not report success.status present instead of run_id (an older blocking serve binary, or the
rexymcp run-phase CLI path) → the object is the PhaseResult. Use it
directly, no polling. This one branch keeps the skill working across the binary
transition until every serve process runs the M30 async binary.The user watches progress via rexymcp status / rexymcp dashboard (Claude Code
sends no MCP progressToken, so live notifications don't fire).
While a phase is in flight it can be stopped — the M30 interrupt path:
rexymcp stop writes the .rexymcp/stop sentinel;
the serve-side watcher cancels every live run in that repo (global stop-all).stop_phase(run_id) — but only for one of the three
enumerated reasons in WORKFLOW.md "Governing a running phase": (1) explicit human
instruction, (2) a clearly mis-dispatched run (wrong phase/repo/config), or (3) a
confirmed infrastructure fault the governor cannot see. Never cancel because a
run looks slow, stuck, long-running, or is fumbling a tool call — those are the
governor's terminators to fire, and cancelling them destroys the hard_fail +
briefing and the stall-calibration signal. A spec-shape problem (a too-large edit,
a missing example) is fixed by the next dispatch's spec via /rexymcp:escalate,
not by killing the current run.Either way the run comes back terminal with status: "cancelled" (§6): a partial
diff, a cancellation.reason, and the working tree left dirty. Stopping is a
deliberate, enumerated act — the skill never fires it on its own, and neither
does the architect out of impatience.
When PhaseResult.status == "complete", surface the result summary to the
user:
PhaseResult.files_changedlog_path for drill-down via /rexymcp:review or the
executor_log_tail / get_turn toolsSuggest the next step: "Run /rexymcp:review <phase> to verify against the
Definition of Done."
Do not review here — that is a separate skill with a separate verdict.
When PhaseResult.status == "hard_fail", a briefing is present. Surface
its fields to the user:
briefing.one_linebriefing.current_blockerbriefing.what_was_tried (list)briefing.diagnosticsSuggest the next step: "Run /rexymcp:escalate <phase> to decide whether to
refine and re-dispatch, or take over."
Do not decide the escalation lever here — that is the escalate skill's job.
When PhaseResult.status == "budget_exceeded", the shape is the same as
hard_fail — a briefing is present. Surface the same fields and suggest
the same next step: /rexymcp:escalate <phase>.
When the terminal PhaseResult.status == "cancelled", the run was deliberately
stopped mid-phase (a human rexymcp stop or an architect stop_phase). Surface:
cancellation.reason — user_stop (human sentinel) or claude_stop
(architect stop_phase)cancellation.stage + cancellation.turns_done (turns completed
before the stop)files_changed / diff — and note that the working tree is
left dirty (unreverted, uncommitted) for triage.Suggest the next step: the run was interrupted on purpose, so the user decides —
resume the partial work (/rexymcp:escalate <phase> → continue_phase),
re-dispatch fresh, or abandon. Do not auto-advance and do not treat a
cancel as a failure to escalate on your own.
/rexymcp:review./rexymcp:escalate.stop_phase is bound to the three enumerated
reasons (human instruction / mis-dispatch / infra fault) in WORKFLOW.md "Governing
a running phase"; everything else waits for the governor.rexymcp status /
dashboard, and reap when signalled (§2).What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
phase-dispatch, local-llm-executor, async-execution, rexymcp
5 skills in this plugin
/architectBootstrap a rexyMCP project, design the work, and author phase docs for the local-LLM executor. Use when the user wants to set up architect/executor workflow on a target repo, draft the next phase, or review milestone progress.
/autoRun the architect/executor loop hands-off across a milestone — draft, dispatch, review, escalate/re-dispatch — with full review rigor and no per-phase pause. Opt-in per run; stops at a milestone boundary, a blocker, assist-budget exhaustion, or the runaway backstop.
/escalateDecide what to do with a hard_fail briefing from execute_phase: refined re-dispatch (default), session takeover, or resume.
npx claudepluginhub ryanczak/rexymcp --plugin rexymcpOther plugins' skills for the same job