Agent Orchestration
Prompt for bounded delegation, choose worker tiers, and verify condensed returns.
Agent orchestration: delegation and model choice
Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.
Start with a prompt
“Delegate the inventory to an explorer. Return file locations and uncertainties;
keep the implementation here. Use the cheapest capable worker.”
“Keep this task local. The edits share a design decision, and I need to discuss
the tradeoffs before changing anything.”
“Pick a standard coding worker for this bounded fix. Stop if its verification
fails; explain the evidence before asking me to authorize premium.”
“For this worker only, I elect flagship. Keep the other workers on their
existing tiers and show me the resolved model before launching.”
Name the outcome, owned files, acceptance check, and stop condition. Give workers specific input pointers rather than the entire conversation. Ask for a condensed return with evidence, confidence, and open questions. The conductor retains integration and verifies the result. For the complete dispatch and acceptance procedure, continue with Direct worker handoff.
Decide whether to delegate
The shipped subagent-scoping rule uses the merged `defaults.workerSelection.mode` policy:
| Mode | Prompt policy |
|---|---|
| `advisory` (omitted mode) | Consider delegation and weigh coordination costs. |
| `default` | Delegate bounded read-heavy, verbose, independent, or verification work when the rubric applies. |
| `off` | Disable automatic delegation guidance; explicit user requests still apply. |
Read-heavy work includes broad searches and reading more than three files under Rule 4a. This is a policy threshold, not a measured efficiency crossover. Verbose test/build/log inspection and independent review can keep bulky intermediate material out of the conductor's context.
Keep trivial lookups, coupled edits, serial dependencies, user back-and-forth, and tasks already handled reliably by the current agent local. Delegate reads and retain ownership of writes. Parallel writers need disjoint ownership, preferably separate worktrees. Use the minimum applicable provider, project, context, framework, and natural-decomposition caps; independence does not confer unlimited concurrency. These are scoping rules, not speed guarantees.
`parallelism.worker_dispatch` controls direct CLI/MCP dispatch separately from native subagent guidance. Turning that switch off does not disable native subagents. See opting out of direct dispatch. For a persistent automatic-delegation opt-out, use `mode: "off"` in the policy below; for a particular task, state “keep this local” in the prompt.
Choose the cheapest capable worker
The ladder is `economy → standard → premium → flagship`. Session model choice does not select worker tiers. Start with the wrapper suited to the task, then escalate a step when failed verification or low confidence warrants it. Premium needs explicit human authorization; flagship is exceptional and user-elected. A configured ceiling or a flagship conductor session is not an election.
| Wrapper | Role / tier | Assignment |
|---|---|---|
| `aiwg-model-explorer` | efficiency / economy | Read-only extraction, search, inventory; cited findings, no fixes. |
| `aiwg-model-efficiency-worker` | efficiency / economy | Other bounded low-cost work, including focused edits. |
| `aiwg-model-coding-worker` | coding / standard | Implementation, tests, debugging, routine technical delivery. |
| `aiwg-model-verifier` | coding / standard | Read-only checks against the exact supplied oracle. |
| `aiwg-model-reasoning-worker` | reasoning / premium | High-consequence reasoning after authorization. |
The wrapper definitions and wrapper bodies own these defaults. Read-only wrappers require conductor-established isolation; shell access alone is not read-only enforcement. If that isolation or the required non-flagship session cannot be confirmed, stop blocked. Workers do not change their own model, elect flagship, merge, or publish.
Use `strategy` and `maxAutoTier` explicitly when you need enforced ranking and a ceiling. `cost-effective` ranks eligible observed cost classes ascending; `balanced` retains configured order; `quality` ranks cost classes descending. Ties retain configured order. Cost class is a proxy, not measured quality or a dollar estimate. Role floors, capability checks, data policy, and authorization still apply. Projects can narrow an explicit user ceiling, never widen it. See the selection implementation.
For native delegation, an explicit invocation `requestedTier` takes precedence over `agentOverrides.<worker>.model-tier`, then role guidance; matching role assignments can raise the floor. Exact model pins can come from the invocation's `model` or the worker's `model-override`. These requests still pass ceiling and authorization checks. These are native resolver inputs, not additional direct CLI flags. Sources: delegation defaults and delegation resolution.
There are distinct omission behaviors: the generated prompt rubric uses advisory, cost-effective, and a premium guidance ceiling. Legacy qualified worker ranking adds no ceiling and preserves configured order when those keys are omitted. The native delegation resolver falls back to coding/standard, cost-effective, and a standard ceiling. Inspect the effective policy and resolution; do not infer runtime enforcement from the rubric alone.
Brief and return contract
“Brief the verifier with the exact oracle and current revision. If the oracle
cannot run safely, report blocked instead of replacing it with another check.”
Fill the existing subagent brief template:
OBJECTIVE: one measurable result
CONTEXT: specific inputs and revisions; workspace/base revision
SCOPE: allowed files, tools, network and ownership; explicit model/effort
CONSTRAINTS: token/wall-clock/attempt limits; no redelegation
ACCEPTANCE: criterion IDs and trusted checkRefs
uncertaintyPolicy: stop-and-report
mustNotRegress: existing regression checks
verificationOracle: exact commands and expected exit codes
OUTPUT: exact final artifact path; WorkerClaims; evidence and uncertainties
STOP WHEN: criteria have evidence, a prerequisite is missing, or limits expire
DO NOT: widen scope or claim unobserved results
For non-trivial implementation, include the design review artifact before dispatch. Carry the current head, writer lineage, review requirements, and known findings. The handoff guide describes review of the final head by a different observed model family and the retained findings ledger. Worker claims alone do not satisfy acceptance.
Return `WorkerClaims`, not a self-accepted `WorkerResult`. Its fields are `version`, `status`, `summary`, `claims`, `artifacts`, `checks`, and `limitations`. Each claim records its criterion ID, verdict and confidence in `text`, with `ref`/`digest` evidence. Checks record actual exit codes and their environment; artifact entries use `path`/`digest`/`change`. Preserve the exact final artifact. Use `partial`, `blocked`, or `failed` when appropriate and put open questions and failed attempts in `limitations`. Contract source: `WorkerClaims` and the `workerClaims` schema.
The rubric's omitted `returnBudgetTokens` is 2000 tokens, while the wrapper brief's omitted `delegation.return_budget_tokens` is 1000 tokens. These are separate shipped defaults, not performance measurements; sources are the rubric renderer and brief template. Set the brief's return budget explicitly and honor the task token limit too. If the result cannot fit, return valid partial output with evidence pointers; never truncate structured JSON. The conductor reconciles findings and checks evidence centrally rather than concatenating worker reports.
Delegation configuration reference
There is no top-level AIWG `delegation` configuration object. Prompt and worker selection policy lives in project-root `models.json` under `defaults.workerSelection`; builtin, user, then project policy is merged. `delegation.return_budget_tokens` is a brief field. Hermes's `delegation.model` and `delegation.effort` are provider settings, not AIWG config keys.
Example policy fragment (review it alongside existing role/group configuration):
{
"defaults": {
"workerSelection": {
"mode": "advisory",
"strategy": "cost-effective",
"maxAutoTier": "standard",
"returnBudgetTokens": 2000
}
}
}
| Key under `defaults.workerSelection` | Shipped meaning |
|---|---|
| `mode` | `default`, `advisory`, or `off`; automatic prompt policy. |
| `returnBudgetTokens` | Positive integer; condensed rubric return budget described above. |
| `strategy` | `cost-effective`, `balanced`, or `quality`; eligible cost-class ordering. |
| `maxAutoTier` | Automatic tier ceiling; does not grant premium authorization or flagship election. `max-quality` is a compatibility alias for `flagship`. |
| `roleGuidance` | Role groups, tier floor, initial effort and effort ladder; constrained project aliases retain base-role authority. |
| `taskClasses` | Map task names to roles; built-ins include inventory, implementation, architecture, and review. |
| `guards`, `dataPolicy`, `dataClasses`, `freshness` | Eligibility, data-use and observation restrictions; see the existing worker policy reference. |
Sources: compatibility schema, policy validation/merge, and worker configuration. Project `config set/reset` rejects model-owned defaults. Use the existing reviewed proposal/apply path in the CLI reference. Remove an override through that path to restore inheritance. See also model configuration.
Provider enforcement
| Provider | Wrapper model control | Wrapper effort control |
|---|---|---|
| Claude, Codex, Factory | Catalog pins | `effort`, `model_reasoning_effort`, `reasoningEffort`, respectively |
| Copilot, Cursor, OpenCode | Catalog pins | Not enforced |
| OMP | Inherited until exact role models configured | `thinkingLevel` with a pin |
| Antigravity, Hermes, Warp, Muse | Global/session/run controls; no per-wrapper pin | Not enforced per wrapper |
| Grokbot | Global-only report; no verified AIWG-owned model setting | Not enforced per wrapper |
| OpenClaw, OpenHuman, Devin Desktop, Pi, DeepSeek Harness, Grok Build | Inherited, hinted, or unsupported artifact selection | Not enforced |
This matrix describes generated artifacts, not a live resolved-model audit. Provider/account policy can substitute models; explicit operator pins are preserved where supported. See wrapper tier enforcement and its owning implementation for provider caveats, including Claude fallback/force environment settings and Cursor's concrete standard fallback. AIWG does not rewrite global settings to fill missing controls. Direct CLI selection and wrapper frontmatter are separate surfaces; confirm the actual worker model.
Cost, context, and evidence expectations
Bounded inputs and condensed returns can reduce material retained by the conductor, but worker context, startup, repeated reads, verification, and synthesis also consume resources. Compare end-to-end usage and correctness on your own task. Cheapest-capable selection is policy guidance, not a promised saving; parallelism does not guarantee lower latency, cost, or independent errors.
No external performance estimate is asserted here. The supporting-paper and Anthropic links in background reading carry their research-corpus REF IDs and assessments. They are not AIWG measurements. Apply REF-060's evidence-quality guidance when using later findings: retain study context and uncertainty, and do not generalize benchmark or practitioner results to every task.
Read-only CLI reference
Run these through your assistant to inspect policy before changing it:
Use AIWG to complete this documented outcome: Run these through your assistant to inspect policy before changing it
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.
the origins option includes source pointers and input digests. Direct invocation flags and reviewed configuration writes are documented in the CLI reference; full launch setup is in worker dispatch.