assigning-subagent-models
Skill1 starsChanged 28 days agoMITView on GitHub
Use when writing or editing a Workflow script (agent()/pipeline()/parallel()), dispatching a subagent with the Agent tool, or writing a .claude/agents/*.md definition.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- sammasak/skillsword for word, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 1
- sammasak/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- agent-handoffSkill
- agent-orchestrationSkill
- credentialsSkill
- deep-modulesSkill
- device-protocol-investigationSkill
- e2e-testingSkill
- herdr-operationsSkill
- herdrSkill
- knowledge-vaultSkill
- kubernetes-gitopsSkill
- lean-codeSkill
- nix-audit-operatorSkill
- nix-flake-developmentSkill
- ntfy-notificationsSkill
- orchestrated-reviewSkill
- pcap-evidence-analysisSkill
- pi-offloadSkill
- pi-ticketSkill
- rf-chaos-experiment-reviewSkill
- rust-engineeringSkill
- sdlc-pipelineSkill
- secrets-managementSkill
- tooling-feedbackSkill
- verify-serviceSkill
- wireless-lab-diagnosticsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 91
Guessing model IDs from memory: Use the ladder above; the IDs there are current.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
assigning-subagent-models
Overview
Every subagent you spawn gets an explicit model. No exceptions. An agent() call, an Agent-tool dispatch, a pipeline/parallel stage, a .claude/agents/*.md definition — each one names a model, chosen from the effort ladder below.
Why the rule is absolute: a spawn with no model silently inherits the main-loop model. That inheritance is invisible in the code, unpredictable at runtime, and defeats the entire point of orchestration — matching model strength to task effort. A missing model is a defect, not a default.
Violating the letter of this rule is violating its spirit. "It'll inherit something reasonable" is the failure, not the workaround for it.
When to Use
- Authoring or editing a
Workflowscript — everyagent()call, including those insidepipeline()/parallel()stages. - Dispatching a one-off subagent with the
Agenttool. - Writing or editing a
.claude/agents/<name>.mdsubagent definition. - Reviewing any of the above — a spawn without an explicit model is a review blocker.
The Effort Ladder
Pick the tier by the cost of being wrong and the kind of thinking required. Pinned IDs are the source of truth for which model and why; the alias is the literal token you pass at a surface that only accepts aliases (see Surfaces below).
| Tier | Pinned ID | Alias | Use for |
| Author / plan | claude-fable-5 or claude-opus-5-5 | fable / opus | Designing, creating, or editing the workflow itself; top-tier reasoning and architecture. This is the model you run as while authoring. |
| Hard | claude-opus-5-5 | opus | Fact-checking, implementation, adversarial verification, synthesis, judging, decisions — anything where a wrong answer is costly. |
| Light | claude-sonnet-5 | sonnet | Research, information gathering, search fan-out, summarization, first-pass drafting. |
| Trivial | claude-haiku-4-5-20251001 | haiku | Mechanical work: lint/format, simple greps, boilerplate transforms, rote extraction. |
Heuristic: research / gather → Sonnet. verify / implement / decide → Opus. design the whole thing → Fable or Opus. pure mechanical → Haiku.
When torn between two tiers, pick the harder one. Under-powering a verification or implementation agent is the expensive mistake; over-powering a grep is cheap by comparison.
Surfaces: which token to pass where
The pinned ID names intent; the surface decides the literal token. Always keep the pinned ID visible (in a comment) even where you must pass an alias, so the why survives. Valid Agent-tool aliases: fable, opus, sonnet, haiku — fable is reserved for author-tier work (blind reviews, workflow authoring), never fan-out.
| Surface | Accepts | Pass |
.claude/agents/*.md frontmatter model: | Pinned ID | model: claude-opus-5-5 |
CLI --model flag | Pinned ID | --model claude-opus-5-5 |
Agent tool model parameter | Alias only | model: 'opus' // claude-opus-5-5 |
Workflow agent() / phase model opt | Alias | { model: 'opus', ... } // claude-opus-5-5 |
Example — a Workflow with a model on every spawn
// Research fans out on the LIGHT tier; verification and synthesis are HARD.
const research = await pipeline(
CANDIDATES,
(lib) => agent(`Research the library "${lib}" from primary sources.`,
{ model: 'sonnet', label: `research:${lib}`, schema: RESEARCH }), // claude-sonnet-5 — gathering
)
const design = await agent('Synthesize a recommendation from the research.',
{ model: 'opus', label: 'design', schema: DESIGN }) // claude-opus-5-5 — decision
const impl = await agent('Implement the chosen integration.',
{ model: 'opus', label: 'implement', schema: IMPL }) // claude-opus-5-5 — costly if wrong
const lint = await agent('Run the formatter and report warnings.',
{ model: 'haiku', label: 'lint' }) // claude-haiku-4-5-20251001 — mechanicalExample — an Agent-tool dispatch and an agent definition
// Agent tool — the model field is REQUIRED, alias only:
Agent({ subagent_type: 'general-purpose', model: 'sonnet', /* claude-sonnet-5 */
description: 'Gather API docs', prompt: '...' })# .claude/agents/verifier.md — pinned ID in frontmatter:
---
name: verifier
model: claude-opus-5-5 # hard tier: fact-checking is costly if wrong
---Common Mistakes
- Omitting the model to "keep it simple." The spawn then inherits the main-loop model invisibly. Simplicity is naming the model, not hiding it.
- Modeling the
agent()calls but forgetting the standaloneAgent-tool dispatch (or the final summary/lint step). Every spawn, including the last one, gets a model. - Passing a pinned ID to the
Agenttool'smodelparam. It rejectsclaude-opus-5-5— passopusand put the pinned ID in a comment. - Defaulting everything to
opus"to be safe." Research and gathering fan-outs are the bulk of most workflows; running them on Opus burns budget for no quality gain. Match the tier. - Guessing model IDs from memory. Use the ladder above; the IDs there are current.
Rationalization Table
| Excuse | Reality |
| "It'll inherit a sensible model." | Inheritance is invisible and unpredictable. That IS the defect. Name it. |
| "This agent is trivial, the model doesn't matter." | Then it's a one-word decision: haiku. Trivial ≠ omit. |
| "I'll add models once the structure works." | The structure isn't done until every spawn names a model. Add it now. |
| "I'm not sure the harness accepts model opts." | It does. Aliases at the tool/agent() surface, pinned IDs in frontmatter/--model. See Surfaces. |
| "The main-loop model is fine for all of them." | Then you wrote a pipeline that pays Opus rates for grep work, or Haiku rates for verification. Match the tier. |
| "Just this one dispatch can inherit." | One unnamed spawn is one silent defect. No spawn is exempt. |
Red Flags — STOP
- An
agent(),parallel(), orpipeline()stage with opts but nomodelkey. - An
Agent-tool dispatch withsubagent_type/descriptionbut nomodel. - A
.claude/agents/*.mdwith nomodel:line. - The phrase "it'll default to…" or "inherits the…" in your reasoning about a spawn.
- A workflow where every agent runs the same tier — you almost certainly skipped the effort-matching step.
All of these mean: assign the explicit model now, from the ladder, before the workflow is done.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

