/model-router:log-calibration [optional outcome notes]from Model Router
Append 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.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Append one entry to ${CLAUDE_PROJECT_DIR}/.claude/model-calibration.jsonl
describing how the task that just finished actually went. The schema and the
thresholds that consume this log live in the plugin's
reference/calibration.md — this skill only records, it never routes. A part
of a plan-execution plan counts as a task of its own: log it under the part's
category slug when it finishes.
The one rule: outcomes come from evidence, not optimism. Every field you
fill must be traceable to something that happened in this session. If you
cannot determine a field from the conversation, ask the user or omit it
(--minutes is the only omittable outcome) — never guess.
From the current session, determine:
| Field | Where it comes from |
|---|---|
category | Read the existing log first (.claude/model-calibration.jsonl) and reuse a slug when one fits — inventing near-duplicate slugs is what stops categories from ever reaching the three-entry threshold. If the advisor ran, its calibration command names the slug it chose. |
provider | anthropic (default) or openai — the provider of the model the task ran on. |
model / effort | What the task actually started with, not what was recommended. Current Anthropic aliases, including Haiku 5.5, take an effort level. Each provider has its own level names — log the literal level used. |
escalated | true only if a stronger model or higher effort was actually needed mid-task (the user switched, or the work had to be redone on a stronger tier). |
corrections | Count the user turns that corrected your work — wrong approach, wrong output, missed requirement. Clarifications and scope additions are not corrections. |
minutes | Wall-clock duration if it is evident or the user tells you. Omit otherwise. |
tokens_in / tokens_out | From /cost or the harness's usage display, if available. Omit otherwise — never estimate token counts. |
tests | pass / fail from the last relevant test run in the session; none if nothing was run. |
rework | true only if the result required architectural rework afterward. |
note | Include the advisor's score ("scored N/15") if a choose-model recommendation exists in the conversation, and whether the recommendation matched reality. $ARGUMENTS, if provided, goes here too. |
Show the user the assembled entry as a single line and ask them to confirm it is honest — the log drives future routing, so a flattering entry is worse than no entry. Adjust anything they push back on.
Run the bundled script — this is the only write path, and it validates every field before touching the file:
python3 "${CLAUDE_SKILL_DIR}/log-calibration.py" \
--provider <anthropic|openai> --category "<slug>" \
--model <alias> --effort <level> \
--escalated <true|false> --corrections <n> --minutes <n> \
--tests <pass|fail|none> --rework <true|false> \
--note "<free text>"
The script is append-only against the fixed path
${CLAUDE_PROJECT_DIR}/.claude/model-calibration.jsonl; it exits non-zero
without writing if any field is invalid. Do not edit the log by any other
means — if an existing entry is wrong, tell the user and let them fix it.
escalated: true under the model it started with — not two entries.What SKILL.md sets; muted values are Claude Code's defaults
Use at the end of a task whose model or effort was chosen via the choose-model advisor, or whenever the user asks to log a calibration entry. Never use before or during the task — the outcome fields are only knowable after it ends.
npx claudepluginhub jr-jesse123/claude-tookit --plugin model-router4 skills in this plugin
/choose-modelRecommend 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./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./prepare-promptOther plugins' skills for the same job