Use when deciding which model an agent or subagent should run on, or reviewing an existing assignment. Triggers on "which model should this agent use", "assign a model", "is haiku enough for this agent", "should this be opus", "model frontmatter", "agent is too slow", "agent is too expensive", "subagent keeps losing track", "cut agent costs", or when writing a new agent's frontmatter. Applies a constraints-first decision procedure and explains the cost, speed, and reliability tradeoffs behind each tier.
Ships in agent-model-assignment. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An agent's model field takes a full model ID (e.g. claude-opus-5,
claude-haiku-4-5) — a tier alias (haiku, sonnet, opus, fable) or inherit
are not valid values here. Always set it explicitly to a full ID. Omitting the
field, or leaving it as a bare alias/inherit, cannot be told apart from an oversight,
and the next reader has no idea whether the pin was deliberate.
Always pin a full ID; never write a bare alias or inherit. Anthropic's dateless
model IDs are pinned snapshots, not evergreen pointers, so writing one freezes the
agent on that snapshot until someone revisits it — that staleness is a cost this
convention accepts deliberately, in exchange for every agent's behavior being
reproducible and reviewable from the file alone, with no dependency on what a bare
alias happens to resolve to on a given day or what the calling session's model is.
Treat a pinned ID the same way you'd treat a pinned dependency version: it needs
periodic review as models are deprecated, and that review is a known, recurring cost,
not a one-time decision.
Tiers below are a reasoning aid for picking which model to pin, not a set of valid
model: values. Prices per million tokens, verified 2026-08-06. Throughput is
third-party estimate: trust the ratios, not the absolute numbers. Re-check pricing at
platform.claude.com/docs/en/about-claude/pricing before making a cost argument, and
re-check the current full ID for each tier before pinning — the ones below drift the
same way the prices do.
| Tier | Full ID (verify before pinning) | Input / output | vs Haiku | Speed | Context | Knowledge cutoff |
|---|---|---|---|---|---|---|
| Haiku-class | claude-haiku-4-5 | $1 / $5 | 1× | fastest (~2–3× Sonnet) | 200K | Feb 2025 |
| Sonnet-class | claude-sonnet-5 | $3 / $15 | 3× | ~2–3× Opus | 1M | Jan 2026 |
| Opus-class | claude-opus-5 | $5 / $25 | 5× | slower | 1M | May 2026 |
| Fable-class | claude-fable-5 | $10 / $50 | 10× | slowest | 1M | Jan 2026 |
The whole ladder spans 10×, which is narrower than most people assume. Token volume
usually dominates tier choice: an agent that reads half a repo on haiku can cost
more than a tightly scoped one on opus. Scope the agent's context before optimizing
its tier — restricting tools and narrowing its brief buys more than downgrading it.
Work these in order. The first two are hard constraints that disqualify a tier outright; only then does task shape matter.
Haiku caps at 200K tokens of context (~150K words) and its knowledge ends Feb 2025. Every other tier has a 1M window and a 2026 cutoff. So a Haiku-class ID is off the table — regardless of how simple the task is — for an agent that:
This rules out more agents than the reasoning criterion does, and it is the failure people miss, because a context overflow looks like a bad answer, not an error.
Reliability degrades non-linearly with chain length, and it degrades earliest on the cheap tier:
| Loop length | Safe floor |
|---|---|
| Single-digit steps | Haiku-class |
| ~10–20 steps | Sonnet-class |
| 20+ steps of autonomous work | Opus-class |
Past roughly 7–10 steps, Haiku-class models start truncating loops, skipping steps, and losing state rather than simply answering less well.
| If the agent's job is… | Use | Because |
|---|---|---|
| Mechanical and bounded — git plumbing, filing an issue, updating a state file, syntactic checks, short structured extraction | Haiku-class | Procedural work with a checkable answer, 3–5× cheaper and 2–3× faster, and these agents run often. |
| A long or unbounded tool-use loop — driving a CLI, iterating over many files, multi-step orchestration | Sonnet-class | The production default for agentic loops, and empirically better than Opus at them: Sonnet 5 leads Opus 5 on Terminal-Bench 2.1 (80.4% vs 74.6%) because throughput compounds over a long chain. |
| Generating a whole artifact from an ambiguous brief — design, architecture, planning, writing a config for an unfamiliar system | Opus-class | Quality is bounded by reasoning and a weak result is expensive to detect. Opus 5 leads SWE-bench Verified 96.0% vs Sonnet 5's 85.2%. |
| Adversarially checking work a cheaper session may have produced — verification, security review, subtle bug hunting | Opus-class | A verifier pinned to the same tier that produced the error it's hunting shares its blind spots. |
| Behaviorally dependent on one specific model — a persona whose voice is that model | that model's exact full ID | The agent is that model's behavior; any other pin silently replaces it. |
| Judgment work whose quality should track whatever the caller is already paying for | not expressible with a required pin — see below | A full-ID-only convention has no equivalent to inherit; state the actual intent instead. |
An agent that genuinely wants "run at the caller's tier" has no direct equivalent once
inherit is banned. Don't work around this by pinning a bare alias anyway. Instead,
pin the highest tier the work could plausibly need (usually Opus-class, since this row
only applies to judgment work) and record in the description that the tier is a floor,
not a fixed cost — a caller running an expensive session was going to spend more than
this agent's pin regardless. If the agent is genuinely meant to inherit the caller's
exact model as a persona-consistency requirement, that is the "behaviorally dependent
on one specific model" row above, not this one.
Some models expose an adjustable reasoning-effort or thinking-budget control
alongside the model choice itself. Claude Code's agent frontmatter has no dedicated
field for this. GitHub Copilot CLI does: its custom-agent frontmatter schema
includes a real reasoning-effort: key (kebab-case, sibling to model:), verified
directly against the CLI binary. Unlike model:, this one reaches the live session —
the parsed value flows straight into the model-session setup
(this.definition.reasoningEffort feeds setSelectedModel(...)) with no catalog
lookup to fail. There is no equivalent context/context-tier frontmatter key on
either host; a context-window tier is not settable from the agent file at all.
model:, by contrast, is parsed successfully but is not reliably honored at
runtime even when it's a full, valid ID: this repo's own .claude/agents/*.md
dev-tooling files pin model: claude-haiku-4-5 today, and Copilot CLI's logs
(~/.copilot/logs/*.log) show, as recently as the same day this was verified,
model "claude-haiku-4-5" is not available; will use current model instead — the
exact silent-fallback behavior host-compat.json's agent-model-alias capability
already documents, now confirmed with a full pinned ID rather than only the bare
aliases (opus/haiku/inherit) it was originally evidenced with. Parsing
acceptance is not proof of effect — verify a field actually changes behavior before
trusting it, the same way agent-model-alias's evidence was gathered.
Because this repo's agent files are shared verbatim between both hosts, reasoning- effort: is a legitimate, committable frontmatter field where you want Copilot CLI to
honor a non-default effort — not a workaround. Claude Code will not recognize it;
treat it as an extra key Claude ignores, the same tolerance it already extends to
unknown fields. Whether or not you set it, still restate the intended level in the
description or a body comment for the Claude-only reader and for anyone auditing
intent, matching it to the task shape from the decision procedure above:
mechanical/bounded work wants the lowest effort that reliably produces a checkable
answer, long autonomous loops want a middle setting, and generating an artifact from
an ambiguous brief or adversarial review wants the highest effort available. Leaving
effort unstated when the model supports choosing it has the same "can't tell
deliberate from oversight" problem this skill exists to avoid for model itself.
Separately, GitHub Copilot CLI's /agents and /subagents TUI let a user override
model, effort, and context tier per agent at runtime. That choice is written to the
user's local ~/.copilot/settings.json (subagents.agents.<name>.model /
.effortLevel / .contextTier), which the CLI checks before falling back to the
agent file's own model/reasoning-effort declaration (TH()'s resolution order:
settings override, then the file's declared value, then the session default). That
settings block is local, unversioned, and takes precedence over the committed
frontmatter — two people running the same installed agent can end up on different
tiers with zero diff in the repo, and neither the override nor its absence is visible
from the file alone. Don't rely on it in place of a committed default: the frontmatter
fields are what ships with the plugin, and are the ones this skill governs.
State why the tier was chosen where a reviewer will see it: in the agent's
description when callers benefit from knowing ("Runs on a cheap model so the main
session does not burn tokens on git plumbing"), or in a comment in the body when it is
purely internal. Do not put an HTML comment above the frontmatter — the --- block
must start at line 1 or the file will not parse as an agent.
Do not keep a central list of which agent uses which model. Such lists drift from the files within a few changes, and a stale list reads as normative.
Pricing, context windows, and cutoffs are from Anthropic's published docs. SWE-bench and Terminal-Bench figures are from public leaderboards and agree across sources. Throughput figures are community estimates with no official numbers published. The security and creative-writing recommendations are extrapolated from general capability scaling — no tier-specific benchmark exists for either, so treat those two rows as reasoned defaults rather than measured results.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/agent-model-assignment:agent-model-assignmentfrom agent-model-assignment
npx claudepluginhub dotknewt/awesome-agency --plugin agent-model-assignment