| name | task-delegation |
| description | When and how to delegate to subagents |
Task Delegation
Quick Check
- Independent parts? → if < 2, do it yourself
- Interfaces known? → if no, do it yourself
- Different skills needed? → if same, maybe don't split
- Plan ready? → if no, plan first
3+ yes → delegate
Model Selection (mandatory)
ALWAYS pass an explicit model to the Agent tool — never let a spawn
silently inherit the session model (the session tier is the orchestrator's;
paying it per worker doubles cost for no gain). Never haiku. Pick by
cost-of-error × mechanical safety net: where a linter/test-suite/compiler
catches mistakes, sonnet suffices; where nothing mechanical guards the
output, opus.
| Spawn | Model |
|---|
| Review batches with a lint report (.hx+hxq), instruction/config files, routine code | sonnet |
| Review of macro-heavy / concurrency / engine-critical / no-linter code | opus |
| Finding verification (one skeptic over aggregated findings) | opus |
| Code-writing agents: non-trivial logic | opus |
| Code-writing agents: mechanical edits from a detailed plan | sonnet |
| Explore / locate fan-out (returns locations, not judgements) | sonnet |
| Build/test/repro runners (verbatim-quote reporting) | sonnet |
| Web-research fetch/extract fan-out (synthesis stays in the parent) | sonnet |
| Analytical judgement subagents (blast-radius verdicts, design recon) |