Orchestrating
Skill lawzava/megapowers/plugins/mega-orchestration/skills/orchestrating
Skills, plugins, and hooks that change how coding agents work — Claude Code, Codex, OpenCode, Antigravity. Measured, not vibed.
npx -y skills add lawzava/megapowers --skill orchestratingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use before a non-trivial, multi-part, or high-stakes task to decide how to approach, split, delegate, compare candidates, or run autonomously. This is the routing skill.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
7.2 KB, as published. Nobody here has run it
Orchestrating
One decision, made once, at task arrival: what structure does this work deserve? Answer it deliberately instead of drifting into doing everything inline in one context.
First decision: structure at all?
Inline, solo work is the default. Structure costs briefing, integration, and review, so it must pay for itself. Split or delegate only when at least one of these holds:
- Independent subtasks exist that do not reshape each other.
- Bulk reads or long execution would drown the context that has to decide later. Protect the orchestrator's context; spend subagent context.
- A different model or runtime is demonstrably better at a subtask.
- Stakes times uncertainty justify multiple attempts or independent checks.
Keep inline anything you cannot yet decompose, any critical path where each step reshapes the next, and anything small enough that coordination costs more than the work.
Route by task shape
| Task shape | Structure |
|---|---|
| One clear path, routine stakes | Inline. No structure. |
| Long-horizon work with unknown ownership, unresolved decisions, or unclear sequencing that prevents an honest spec or plan | mega-orchestration:wayfinding: map uncertainty and resolve the next decision before design or planning. |
| 2+ independent tasks, no shared state | Parallel fan-out (below): one focused agent per task, dispatched together. |
| Deterministic mechanical changes sharing one oracle | Bulk mechanical mode: one owner, one bounded batch, one focused verification set. |
| A written plan of mostly-independent tasks | megapowers:subagent-driven-development (if installed): fresh subagent per task with per-task review. |
| A subtask another model/runtime does better (review, small scoped impl, browser/visual) | mega-orchestration:multi-agent-delegation: resolve the role via delegates.toml. |
| Wide solution space, high stakes work product | mega-orchestration:best-of-n: N independent candidates; select by oracle when one can exist, blind judge otherwise. |
| A hard decision, no executable oracle | mega-orchestration:council-adjudication: independent answers, blind ranking, synthesize from the best. |
| A risky claim or diff to trust (billing, auth, concurrency, security) | mega-orchestration:cross-model-verification: a different-vendor model tries to refute it. |
| A long, many-step or multi-session goal with minimal supervision | mega-orchestration:autonomous-run: charter, plan, journal, autonomy dial. |
| An action that leaves the working tree (deploy, send, migrate) | mega-orchestration:effect-broker before acting. |
These compose: an autonomous run's milestones can each run through subagent-driven-development, best-of-n can use cross-model-verification as its blind judge, and any structure's risky output earns a verification pass. Route the outer shape first, then the inner steps as they arrive.
Parallel fan-out
For 2+ independent, parallel-safe tasks: one agent per task, all dispatch calls in one response so they run concurrently. Every brief is focused (one scoped task, constraints on what not to touch), self-contained (paths, identifiers, error messages; pin fresh context explicitly where the harness supports it), and explicit about what to return. You own integration: review each summary, check for conflicts between agents' edits, and run the full verification suite yourself. If one task's outcome could reshape another, handle them in one agent; a written plan of tasks belongs to megapowers:subagent-driven-development instead.
For bulk mechanical mode, partition only when the oracle or ownership genuinely differs. One-file-per-agent fan-out multiplies briefing and review cost without adding independence.
How much compute: spend by stakes times uncertainty
Anchor the spend: a multi-agent structure runs roughly 15x the token cost of a single chat (Anthropic's multi-agent research system), so the pay-for-itself bar is high. Size the fan-out to the question: 1 agent for a fact-find, 2 to 4 for direct comparisons, 10 plus only for wide research.
- Routine and certain: inline, verified by tests.
- Uncertain approach, moderate stakes: one independent review (the
code_revieworplan_reviewrole), or best-of-n with N=2. - High stakes (money, auth, data loss, public API): cross-model verification is mandatory; a wide solution space also earns best-of-n with N of 3 to 5.
- Long horizon: autonomous-run, with external stop budgets (time, step, or token caps) declared in the charter up front.
Every escalation needs a stopping rule before it starts: an oracle that ends the search, a candidate cap, or a fix/re-verify attempt cap.
Two rules cut across the ladder:
- Delegate or subagent output that misses the bar: redo it on a stronger model or higher effort on your own authority; do not ship it, and do not park the task waiting for a human to approve the extra spend. Judge the output, not the price tag. Scoped, named defects get a bounded fix pass first; structural misses get the redo. One automatic stronger redo per artifact; beyond that, a declared cap or a human.
- Nothing that ships routes below the floor declared in models.toml
(
[defaults] floorin mega-orchestration:multi-agent-delegation).
After dispatch, wait for completion, blocked, needs-context, failure, or user interruption. Do not poll unchanged state on a timer. Inspect status on a reported transition or a bounded stuck-worker timeout. Use a harness-native watcher for CI and deployment status when available.
Harness primitives
Subagents, agent teams, background tasks, workflow engines, and effort dials go by different names in each runtime, and not every runtime has all of them. See harness-primitives for what each maps to in Claude Code, Codex, OpenCode, and Antigravity. When a primitive is missing, fall back to sequential inline work and say so; never fabricate a call to a primitive the runtime does not have.
Guardrails
- Decide the structure once, out loud, before dispatching anything. One journal or chat line ("structure: SDD, 6 tasks, delegate review per task") makes the choice reviewable.
- Use
fork_turns = "none"by default. A positive count is exceptional, limited to the indispensable recent continuation, at most three turns. Useallonly for an explicit same-context resumption. - Give each delegate one report channel. Small results return directly; bulky results go to a file and return only status plus the path.
- Single-writer always: whatever the structure, one integrator owns the tree and the commits (see mega-orchestration:multi-agent-delegation). Claude Code prevents teammate messages from counting as human approval or changing permissions or config, but that does not make ordinary subagents or workflow agents single-writer. Enforce the rule on every harness with sandbox, tool, and worktree controls where available, plus explicit skill wording.
- Re-route when the shape changes: a task that stops decomposing cleanly drops back to inline; a task that grows milestones graduates to autonomous-run.