Skip to content
Agent Orchestration
Skill

/run-wave

Front door for running a multi-item wave of MCP work items through a generated run plan — resolves a frontier of ready/resumed items, derives per-item seat stages from their resolved schemas, opens a server run for them, and executes the plan via the Workflow tool (Method A) or

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

$ npx -y skills add jpicklyk/task-orchestrator --skill run-wave --agent claude-code

SKILL.md

run-wave.SKILL.md
name: run-wave
description: "Front door for running a multi-item wave of MCP work items through a generated run plan — resolves a frontier of ready/resumed items, derives per-item seat stages from their resolved schemas, opens a server run for them, and executes the plan via the Workflow tool (Method A) or direct Agent dispatch (Method B) when Workflow is unavailable. Use when a user says: run the wave, launch the wave, run a wave over <feature>, run these ready items as a wave, run-wave, resume run r-…, or when a task notification arrives from task-orchestrator:implement-wave. NOT for a single Direct-tier fix (use /status-progression or a direct dispatch) and NOT for headless unattended queue draining (use /ralph). Does not itself decide whether to plan or implement — it executes a run plan over items whose specification/task-scope notes already exist."
argument-hint: "[ancestorId | itemIds] [--method A|B] [--mode shared|per-item] [--worktree <path> --branch <name>] [--resume <runId>] [--altitude-safe]"

run-wave — Multi-Item Run Plan Front Door

This skill resolves a frontier of ready (and resumable) MCP work items into a **run plan** — a deterministic set of per-item seat stages derived from each item's resolved schema — opens a **server run** over those items, and executes the plan either through the `Workflow` tool (**Method A**) or through direct `Agent` dispatch (**Method B**, the fallback when `Workflow` is unavailable or the server doesn't yet serve enough capability data for Method A). Both methods execute the **same** run plan and the same seat prompts — Method B reuses the Method A core byte-for-byte (see `references/method-b.md`).

The skill itself does no planning arithmetic. All frontier resolution, edge classification, stage derivation and the exact server ops are produced by a pure Node helper (`scripts/run-planner.mjs` / `run-planner-lib.mjs` / `run-exec-lib.mjs`). This skill's job is: call the helper with the right inputs, show the human the plan, send the ops the helper renders, launch, and drive post-run verification and advancement. Side effects (MCP calls, token files, `git worktree add`, `Workflow`/`Agent` dispatch) stay in this prose, never in the helper. The Workflow runtime has no MCP access: every `runs_write`, `runs_read` and coordinator `advance` call is yours.

**Do not attempt to replicate the helper's algorithm in your head.** If a helper call fails or its output looks wrong, report the raw stderr/stdout rather than improvising a plan by reading MCP responses directly — the whole point of the helper split is that frontier/edge/stage logic is fixture-tested, not reasoned about fresh each run.

**Code Mode.** In a Code Mode session (only `REPL` and `Poll` are visible), run each step that `references/code-mode.md` covers through its recipe; the steps, rules, checkpoints and reports here are unchanged.

---

The server run

A run-wave run is a server run (`current/docs/api-reference.md` → "Category: Runs"). Two ids name it:

  • the **plan id** `runId` (`r-…`), from `plan`: the scratchpad directory, the plan document's

`args.runId`, the provenance `run=` field and the run's `label`;

  • the **server run id** (a UUID), from `runs_write` `open`: bound into the plan with `bind-run` as

`args.serverRunId` and passed as `runId` to every `runs_write`/`runs_read` call.

The run view (`runs_read` `get`, `frontier`, `seats`) is the run's state: there is no plan or state document on the server. The local scratch files (`<scratchpad>/run-wave/<runId>/plan.json`, `state.json`, `result.json`) hold what the helper reads.

**Tokens.** `open` answers a `coordinatorToken` once (a keyed replay omits it); `assign` answers each seat's `seatToken` once. Write each seat token, and nothing else, as one line to the token file `run-ops assign` names (`<scratchpad>/run-wave/<runId>/tokens/<short>.<seat>.token`); the seat prompt names that path and the seat reads it. Write the coordinator token the same way, as one line to the `tokenFile` that `run-ops --phase open` names (`tokens/coordinator.token`), so a restart, `--resume` or compaction can read it back; pass it as `seatToken` from that file, and delete `tokens/` at close. Never put a token in a prompt, a note, a log line, a commit, the plan or a helper input, and never echo one back to the user. A lost coordinator token (no file, or the file's token is refused) cannot be recovered: close the run on the director connection (no `seatToken`) or with a human credential, and open another.

A seat envelope is stripped before it is persisted: any `seatToken` or `coordinatorToken` key is removed at any depth in both methods, and Method B's `stage-result` also redacts every value read from the run's token files. Method A strips by key only (the Workflow sandbox cannot read token files), so a token echoed under another key is not caught there. The coordinator token file sits in the same `tokens/` directory, so Method B redacts its value too.

**Which token goes on a call.** Every coordinator call (`update`, `assign`, `close`, the coordinator `advance` calls, `withdraw` of a decision this run raised, and every `notes_write` `upsert` to an `orchestrator`-seat key of a run member while the run is open: post-run Step 3 and the Step 5 pointer) carries the coordinator token as the top-level `seatToken`; `end_seat` carries the seat's own token; `open` carries none.

**RESULTS.** A write tool answers `data.results[i]`, one entry per `ops[]` element: read each element's own `ok` and `data.results[i].error` (`code`, `detail`, `fix`). A call-level `partial_failure` only means "an element failed, look per element" and carries no detail. The exception is an atomic batch (`atomic: true`): it answers only the failing element's own error with `error.index`, and nothing was written.

**Retry classes the coordinator meets.**

| Answer | What to do | |---|---| | `run_paused {pauseReason, pauseDecisionId}` | never retry. Save the answer as `paused.j

Read more
@jpicklyk
Ships withtask-orchestrator

Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.

21430 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
214
Star history of jpicklyk/task-orchestrator on GitHub, a chart by star-history.com

Other skills on task-orchestrator.

implement

implement

End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…

perf-review

perf-review

Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw8d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca6d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip7d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about run-wave.

Which coding agents can use run-wave?
run-wave installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.