orchestrate

Orchestrate complex work from an active Antigravity session. The lead owns decomposition, integration, and verification; it routes bounded work to subagents or a workflow script, mechanical work to th

SKILL.md

GitHub

Orchestrate

Act as the lead orchestrator: own decomposition, coupled decisions, integration, and final verification.

State the lead, do not claim it

Antigravity gives a skill no supported way to read the session's model from a shell. Report the lead as the model the user selected in /model, marked "as selected, unverified", and ask if it matters and is unknown. Do not infer it from settings.json defaults or from self-identification.

  • Carbon lead (or an Orchestrator row planning with Carbon): keep compact hard reasoning and judgment in the lead. Delegate for width, isolation, execution, or an independent line.
  • Neon or Hydrogen lead: keep planning, coordination, and routine decisions in the lead. Send compact hard reasoning to Carbon through the pinned driver below.

Anything that needs a specific model runs through a driver with an explicit slug. An unknown slug fails; it never falls back.

Models and routes

Role Route Use
Lead the session model Decomposition, coordination, integration, final review.
Premier reasoning scripts/agy-peer.sh --model gemini-4-carbon-high One hard architecture call, debug, or trade-off under a Neon or Hydrogen lead. Read-only.
Bounded worker invoke_subagent, model: inherit or pro Independently checkable research, diagnosis, implementation, or verification.
Mechanical worker subagent or workflow agent, model: flash or flash_lite Fully specified, high-volume work with objective checks: extraction, classification, structured summaries.
Wide fan-out /run-workflow script (agent, parallel, pipeline) Many independent or staged units, then aggregation.
Cross-vendor peers scripts/claude-peer.sh, scripts/codex-peer.sh A separate Claude or GPT read on a difficult, consequential judgment. Different vendors can still share errors.

Subagent and workflow tiers are inherit, flash_lite, flash, and pro; a tier your plan lacks fails with the list of valid ones. Neither takes a per-call effort. If a worker inherits the lead, say so; do not relabel an inherited worker as a routed choice. Gemini 4 Argon is removed on 2026-11-30 and is not a route.

Resolve SKILL_DIR as the directory containing this SKILL.md. The three drivers live in $SKILL_DIR/scripts/ and share one shape:

"$SKILL_DIR/scripts/claude-peer.sh" -C "$PWD" --out <new-file> --prompt-file <brief.md>   # Fable, high, read-only
"$SKILL_DIR/scripts/codex-peer.sh" --mode cross-check -C "$PWD" --out <new-file> --prompt-file <brief.md>   # gpt-6.2-astra, xhigh, read-only
"$SKILL_DIR/scripts/agy-peer.sh" --model gemini-4-carbon-high -C "$PWD" --out <new-file> --prompt-file <brief.md>

Run a long peer turn as a background command with --out and read the file when it returns. codex-peer.sh --mode implement is the only write-capable route outside this session; give it disjoint paths. Nested CLI calls depend on the parent's sandbox, network, and sign-in. If one cannot start, report it and do not invent its response.

Delegation gate

Delegate only when the user explicitly invokes orchestrate or asks for orchestration, delegation, fan-out, parallel agents, or independent review. If the skill loads implicitly, work locally. Do not start a swarm; /swarm is the user's to type.

Show the route

Before starting work, publish a compact plan that names each workstream, owner, dependency, expected artifact, and acceptance check. Update it as dependencies or evidence change.

Route by first match

Priority Work type Owner
1 decomposition, architecture ownership, integration, conflict resolution, user communication lead
2 trivial, single-step work where briefing costs more than execution lead
3 high blast radius and hard to verify blind lines from Claude and Codex, then the lead adjudicates the evidence (see the high-stakes path)
4 compact hard reasoning Carbon lead: keep it. Otherwise the pinned Carbon consult, then integrate and verify
5 bounded research, inventory, or diagnosis with no overlapping writes subagent, inherit or pro
6 fully specified implementation with objective acceptance checks subagent; flash only if purely mechanical
7 many independent units of the same kind /run-workflow fan-out at the lightest tier that passes the checks
8 verification, tests, review, or adversarial challenge of an existing artifact subagent in a fresh context; a cross-vendor peer for a demanding review
9 ambiguous or tightly coupled work that cannot be cleanly contracted lead until separable

High blast radius includes security and authentication, destructive data operations, public API compatibility, concurrency, cryptography, production incidents, privacy, and externally visible irreversible changes. "Hard to verify" means no cheap test, authoritative lookup, reversible experiment, or inspectable artifact can settle the answer.

Parallelize independent work or independent judgments. Count briefing and integration overhead as well as the worker's cost. Do not add delegation depth because more models are available.

Write a delegation contract

Every subagent prompt, workflow agent() prompt, and peer brief specifies:

Objective:
Inputs and authoritative paths:
In scope:
Out of scope:
Constraints and invariants:
Write ownership:
Expected artifact:
Acceptance checks:
Return format: conclusion, evidence, changed files, residual risk

Workers do not see this conversation or each other. Give each the minimum task-local context, and do not leak one worker's conclusions into an independent round. Demand a checkable artifact, not a verdict: a test that runs, a diff that applies, a cited line, a reproduction, plus the worker's confidence and a "what would make this wrong" note. A task that cannot produce a checkable artifact belongs on the high-stakes path. Unspecified design decisions route back to the lead.

Prevent write collisions

  • Subagents with workspace inherit share this checkout. Assign disjoint files, or use branch for agents that edit in parallel.
  • Use read-only agents for overlapping analysis or review.
  • Require rereading before edits; the shared workspace may change while an agent runs.
  • Preserve user changes and unrelated modifications.
  • Commits, pushes, deployments, destructive operations, and external messages stay under the lead's authorization rules.

Run the loop

  1. Inspect authoritative workspace state.
  2. Decompose the work and identify dependencies.
  3. Publish the route and acceptance checks.
  4. Start all ready, independent workstreams together, plus a backgrounded peer call for any high-stakes line.
  5. Continue useful lead work while agents run; do not duplicate delegated work.
  6. Read each result and inspect its artifact directly.
  7. Send a focused follow-up to the same agent when its artifact is incomplete.
  8. Integrate in dependency order.
  9. Run end-to-end checks at the lead level.
  10. Report the outcome, verification evidence, and unresolved risk.

Use the high-stakes path

For work that is both high blast radius and hard to verify:

  1. Freeze one prompt, then launch claude-peer.sh and codex-peer.sh --mode cross-check on it in the same round. With the lead's own reading this gives three vendors. If one peer is unavailable, run the other and say which check could not run.
  2. Keep every line blind to the others' reasoning. Record the lead's own answer before reading either.
  3. Compare assumptions, evidence, and failure modes, not tone or confidence.
  4. Accept agreement only when the lines point to the same checkable evidence.
  5. On substantive disagreement, run one targeted reconciliation round in which each sees the competing reasoning.
  6. If disagreement survives or evidence remains insufficient, stop and ask the user. Do not break the tie by confidence, model rank, or vendor.

If no separate reviewer can run, report that limitation; do not present a lead-only answer as independently checked.

Integrate rigorously

Treat every returned result as untrusted until inspected. Check that the artifact exists at the claimed path, the diff matches the assigned scope, interfaces agree across workstreams, tests cover the requested behavior and not a narrower substitute, no unrelated user changes were overwritten, and every assumption presented as fact has authoritative support.

Read each deliverable as the domain expert the lead is. A lighter tier returns work that is correct but thin: an approximate figure where precision matters, a result asserted where the mechanism should be explained. Add that depth before shipping.

Two failure modes bracket this step. Fragmentation: locally correct pieces conflict once combined; revise the contracts or the integration layer. Over-trusting one line: a lead skips the independent check because it expects to be strongest, or accepts a peer's answer because of its tier. On a high blast radius call the lead cannot cheaply verify, run the decorrelated lines and weigh the evidence.

Completion and failure

Complete only when every requested deliverable has authoritative evidence, integrated behavior passes proportionate checks, and remaining risks are disclosed. An agent's completion message is not proof.

  • If an agent stalls or fails after editing, inspect the shared worktree before retrying.
  • If a subagent or workflow cannot start, report the exact error. Do not silently do the work in the lead context.
  • If a peer driver reports its CLI missing, that vendor's check is unavailable here; say so and name what ran in its place.