/model-router:choose-model [task description] [--providers=anthropic,openai] [--research|--no-research]from Model Router
Recommend the cheapest model, effort level, and execution shape likely to complete a proposed task reliably, across the providers the project accepts (currently Anthropic and OpenAI). Routes one atomic task; when the shape turns out to be multi-model, it hands off to plan-execution instead of guessing. Use before coding, debugging, architecture, research, migrations, or long agentic work when the model choice is uncertain.
Ships in Model Router. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Recommend how to run the task in $ARGUMENTS. If $ARGUMENTS is empty, evaluate
the most recent task the user described.
You are not doing the task. Do not implement, edit, or execute it, and do not run the command you end up suggesting. Inspect the repository only when the description leaves a scoring dimension genuinely undecidable, and only with the read-only tools above.
This skill routes one atomic task — one piece of work one model runs end to
end. The rubric, tiers, tie-break, and effort rule are shared plugin material in
${CLAUDE_PLUGIN_ROOT}/reference/routing-core.md; everything model-specific
lives in one policy file per provider. This file owns only the procedure and
the single-task output.
Accepted providers come from, in order of precedence:
--providers= in $ARGUMENTS — comma-separated; claude is an alias for
anthropic.providers array in ${CLAUDE_PROJECT_DIR}/.claude/model-router.json
(example: {"providers": ["anthropic", "openai"], "research": "auto"}).anthropic alone.Then read:
${CLAUDE_PLUGIN_ROOT}/reference/routing-core.md — always; it is the rubric
you apply in step 2.${CLAUDE_PLUGIN_ROOT}/reference/review-escalation.md — always; after routing
the primary task, use it to decide whether normal self-verification is enough
or whether the execution is no longer honestly single-model.${CLAUDE_PLUGIN_ROOT}/reference/policies/<provider>.md for each
accepted provider (progressive disclosure). Never load a policy for a
provider that is not accepted — it costs context and can leak non-candidates
into the reasoning. If a task category is listed explicitly in an accepted
policy, that listing wins — score it anyway, but say so when the score
disagrees.${CLAUDE_PROJECT_DIR}/.claude/model-calibration.jsonl if it exists. It is
absent on a fresh project; that is normal, and you proceed on policy alone.
Interpret it with the routing core's Calibration-log thresholds section;
the schema lives in ${CLAUDE_PLUGIN_ROOT}/reference/calibration.md.Apply routing-core.md in order:
review-escalation.md. Compute hypothesis dependence
from the task/evidence. R0 keeps the task single-model; R1–R4 make review a
separately routed part and therefore force a plan-execution hand-off.When the input is an agent definition rather than a single task — the model:
field of a Claude Code subagent, a Managed Agent config, a Codex agent — the
same rubric applies with three adjustments:
Execution shape: predetermined (agent definition) and spend
the recommendation on tier and effort; the suggested command becomes the
config line to put in the definition (e.g. model: sonnet, or the provider
policy's equivalent).category slug. Design-time
choices multiply across every future invocation, and this closes the loop on
them: three clean entries at the frontier tier for that slug is the log
telling you to downgrade the definition's model field; three escalations is
the log telling you to upgrade it.Exactly one:
| Shape | When | Routable here? |
|---|---|---|
| Current session | The active model and effort already fit | yes |
| Temporary effort increase | Same model, one bounded difficult step | yes |
| New session | A different model is needed for substantial work | yes |
| Autonomous long run | Exceptional long-horizon task, per the provider's exceptional-tier notes | yes |
| Subagent | A bounded specialist task should use another model without disturbing the main conversation — still one task, one model | yes |
| Parallel scouts | Several independent searches or analyses on a cheaper tier | no — hand off |
| Advisor plus implementer | A frontier model analyzes and reviews; a workhorse model implements | no — hand off |
| Review escalation | review-escalation.md resolves to R1–R4; the primary task needs a separately routed fresh-context reviewer or panel | no — hand off |
| Agent team | Genuinely independent workstreams justify the coordination overhead | no — hand off |
| Orchestrated workflow | Exhaustiveness or adversarial verification justifies structured multi-agent fan-out. Typically Oracle weakness ≥ 2 with Blast radius ≥ 2, or Context scale = 3 | no — hand off |
The single-model shapes (including Subagent — one bounded task on one model) you route fully: model, effort, suggested command. For a Subagent recommendation, read the accepted policies' Execution-shape notes first — they carry per-provider caveats (fan-out caps, redundant-verification warnings) that change whether the shape is worth it.
The multi-model shapes are a detection, not a recommendation you finish:
they mean the honest answer to "which model" is plural, so the task must be
decomposed before each piece can be routed — and decompose-then-route is the
plan-execution skill's job, not this one's. When one of them fits: still
output tier, model, and effort for the dominant part (the part that drove
the score), name the shape, and add the Decomposition hand-off section to
the output. Do not sketch the part breakdown, the per-part models, or the
orchestration here — a shape label plus a hand-off is the whole deliverable.
You are running in a forked context, not in the calling session. This
skill executes on its own configured model (model: sonnet in the
frontmatter), so your own identity says nothing about the session that invoked
you. Never conclude "the current session runs sonnet" — or recommend "New
session" to reach a stronger model — from what model you are. Determine the
calling session's model from the conversation context; when it is genuinely
unknown, say so and make the shape conditional: "Current session if it already
runs ; otherwise ."
When the recommended model is not from the harness the session runs in, "Current session" is unavailable — the shape must name the actual harness (Codex CLI, API script, other agent) and account for the switch cost from the routing core's tie-break rule 3.
--research in $ARGUMENTS forces it on; --no-research forbids it."research": "never" in .claude/model-router.json forbids it;
"always" acts as the flag.low. Otherwise skip it — policy
plus log already answer, and research is pure latency.When researching:
External evidence output section, and close it with
a Proposed policy edit block: the exact lines to add to
reference/policies/<provider>.md, each with source and date, so the
research lands in the policy instead of being repeated on the next
invocation. Do not apply the edit — Write is disallowed here; the user
decides what enters the policy.Return exactly this structure and nothing else. Every angle-bracket field is required; omit an optional section only when the stated condition does not hold.
Provider: <anthropic | openai>
Model: <model alias or id from that provider's policy>
Effort: <provider's level; omit when the model does not accept one>
Tier: <mechanical | workhorse | frontier | exceptional>
Execution shape: <one shape from the table above>
Review level: <R0 | R1 | R2 | R3 | R4>
Confidence: <low | medium | high>
Score: novelty N, horizon N, oracle N, blast radius N, context N — total N/15
<or: "Hard override: <which one> — scoring skipped">
Reasons:
- <what in the task drove the highest-scoring dimension>
- <what drove the effort level>
- <what drove the execution shape>
Why not one tier cheaper:
- <the specific thing the cheaper tier would likely get wrong, not a restatement of the score>
Why this provider (only when more than one is accepted):
- <which tie-break rule from the routing core decided, and on what evidence>
Escalate if:
- <observable signal that would justify moving up>
- <a second signal>
Suggested command: <from the provider policy's execution notes>
Prompt hand-off: Run /model-router:prepare-prompt --provider <provider> --model <alias-or-id> --effort <level, omit when n/a> --harness <resolved-harness-or-unknown> "<task>"
Calibration (run after the task, with the real outcomes filled in — or invoke
/log-calibration to have them filled from the session):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/log-calibration/log-calibration.py" \
--provider <provider> --category "<slug>" --model <alias> \
--effort <level, omit when n/a> --note "scored N/15" \
--escalated <?> --corrections <?> --minutes <?> --tests <?> --rework <?>
Emit the calibration command every time — except on a Decomposition hand-off,
which skips it (see below) — with provider, category, model,
effort, and the score in --note already filled in and the outcome flags
left as <?> placeholders — those are only knowable after the task runs. Reuse
an existing category slug from the log whenever one fits; inventing a
near-duplicate slug is what stops the log from ever reaching the three-entry
threshold. Do not run the command and do not write the log — Write is
disallowed here by design, this skill runs before the task, and logging belongs
to the log-calibration skill (or the user) after the task ends.
Conditional sections, each included only when its condition holds:
Run /model-router:plan-execution "<task>" to decompose and route the parts.
Skip the Suggested command, Prompt hand-off, and Calibration lines in this
case — they belong to the plan, not to a half-routed bundle.plan-execution can
route the reviewer independently.low whenever you scored a dimension from an assumption rather
than from the task description or the repository — and never higher than
medium when the decision leaned on external research.prepare-prompt yourself;
the user may inspect the routing decision first.What SKILL.md sets; muted values are Claude Code's defaults
Use when the user asks which model or effort to use, when a task may cross files or architectural layers, or before delegating expensive or long-running work. Never execute the task itself. For a task that visibly needs several models or agents, prefer plan-execution.
sonnetmediumnpx claudepluginhub jr-jesse123/claude-tookit --plugin model-router4 skills in this plugin
/log-calibrationAppend an honest entry to the project's model-calibration log after a task finishes, filling the outcome fields from what actually happened in the session. Companion to the choose-model and plan-execution advisors, which advise before the task and never write./plan-executionDecompose a task that is too large or heterogeneous to route as one unit, then route each part with the shared rubric — producing an execution plan with parts, dependencies, a model and effort per part, an assembly shape, and fan-out caps, across the providers the project accepts. Companion to choose-model, which routes atomic tasks and hands off here when it detects a multi-model shape./Other plugins' skills for the same job