/modelplan:model-planfrom modelplan
Helps choose an AI coding model and reasoning effort by showing cost/benefit tradeoffs, and tracks remaining quota and reset times across Claude Code, Codex, and other coding plans using live ModelPlan data.
Ships in modelplan. 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; scripts run unread.
Answer with live ModelPlan data (modelplan.ai), never with remembered rankings or prices. This Skill needs a shell and anonymous HTTPS. No account, key or MCP server is involved, and nothing about the user leaves the machine. Read reference.md for commands, fields and edge cases before the lookup you need.
With the modelplan CLI (command -v modelplan, else ~/.local/bin/modelplan or the bundled plugin copy at ~/.cache/modelplan-cli/modelplan):
modelplan sync # once per answer; later reads are offline
modelplan effort '<model>' --json --offline # one model's effort ladder
modelplan lineup --dev <maker> --json --offline # a maker's models at their ★ effort
modelplan windows --plan <id> --json # public time rates, cache only (if --help lists it)
modelplan quota --json # the user's own windows, read locally
modelplan advise --json # what is worth saying about them now (v0.4+)
Without it the Skill still works, and the published data is the same:
curl -fsS --max-time 20 https://modelplan.ai/v1/client
python3 '<this skill directory>/scripts/quota.py'
The CLI adds local quota readings when available, remembered advise hints, account reset credits when available, quota history, measured speed and a hash-verified publication cache. Claude Code quota comes from Claude Code's own saved login when readable (on macOS a Keychain-only login needs the user's permission first), else from the optional ModelPlan status line's snapshot. Neither is required: without a reading, Claude Code quota stays unknown while public model/effort advice and other available readings still work. The Python helper above is deprecated; keep it only as a temporary fallback until CLI auto-detection lands for every supported tool.
For model or effort questions, use public data without an installation prompt. When the user asks about their own quota and no CLI is available, first read ~/.config/modelplan/cli-install-choice if present and respect any earlier answer in this conversation or a plugin. With no prior answer, ask once: “Install the ModelPlan CLI? It is checksum-checked and installs into ~/.local/bin.” Wait for an explicit yes; asking is not permission to install.
Record the answer as accepted or declined in ~/.config/modelplan/cli-install-choice (create its parent directory if needed). After a no, never ask again, including in future sessions; continue with public data and available fallback readings, and mark unknown quota as unknown. If the choice cannot be saved, remember it in the conversation and explain that it was not persisted. A later explicit request to install is a new yes. A previous acceptance followed by an unavailable CLI is an installation problem to report, not a reason to repeat the question or retry silently.
Only after a yes, run:
sh '<this skill directory>/scripts/install-cli.sh'
It uses this Skill's cli-pin.json and the same checksum-verifying fetcher as the plugins, then installs into ~/.local/bin. It keeps an installed CLI at or above the pinned version. It does not edit PATH or shell profiles. Use the full installed path if PATH does not include it. On failure report the script's error; do not claim installation succeeded or install from another source without the user's request.
Before answering a quota question, read it, never from memory. For Codex, run modelplan quota --json --refresh-account; refresh.status says what happened: refreshed, too_soon (use the cached reading and give its age), failed or not_allowed. The flag refreshes Codex only; every other source keeps its own schedule. Never report a window with stale: true, or an account with stale: true, as the current figure: give its age and say it may have moved.
quota reports one account per source: Claude Code (its own saved login when readable, else a local reading), Codex (its account reading and session logs), other connected plans and plans the user typed into ~/.config/modelplan/local.json. Each window has usedPercent, resetsInMinutes, pace, its own ageMinutes and, with recent readings, runsOutInMinutes (used up that soon at the recent rate, before the reset; say it as "at the recent rate", never as a forecast), and each account a headroom and a harness model/effort when known. harness.attribution says whose model and effort these are: current-thread only when the reader ran inside this thread (Codex: it matched CODEX_THREAD_ID; Claude Code: the status line last rendered for this CLAUDE_CODE_SESSION_ID, or kept this session's own last reading); recent-thread is another conversation's (Codex: the newest interactive thread on the machine; Claude Code: the session the status line rendered for last). Claude Code's usage windows are the account's either way. Say "latest local reading, this conversation unknown" for it, and give its observedAt. A window missing from the report was not seen, not proven absent.
For "which plan still has quota", "Claude ran out, what now" or before a large batch on a tight plan, use the same modelplan quota --json (with --refresh-account for Codex). Answer with:
stale: true, whose window has unknownReason (reset_passed: waiting for a reading of the new cycle), or that is listed in sources as not read is not "still has quota": say it is unknown and why (sources[].reason). Never fill in a number.List only plans the report shows; never suggest buying a plan. Nothing switches on its own: the user decides. The plugins' hooks may already have named one other plan with room beside a low-quota notice; that line is a cached reading, so read the report before you build on it.
best_value, strongest, and dominated / equivalent_costlier models to skip. Do not recompute these verdicts.
+N points and cost ×R against the step below; time ×T only when both efforts share a time basis. Give USD per reference task only if asked.headroom | What it means | What to suggest |
|---|---|---|
spend | A window resets soon with ≥30% unused, or is far below pace, and no window is near its limit | Unused allowance is lost at the reset. A step up or the stronger model is reasonable for real work before resetsInMinutes; on Codex, Fast too (it draws included usage) |
normal | On pace | Stay at ★ |
conserve | The deciding window is on pace to run out before it resets | Stay at ★ or one step lower, use the cheaper sibling for routine work, keep the strong model for the hard parts |
exhausted | A window is used up | Wait for its reset, or use another plan or the API |
unknown | No usable reading | Give public advice and say how to enable readings (see reference) |
modelplan advise --json: it already matched the harness's current model and effort, picked the next effort that scores higher, and remembers windows it advised on, with the configuration in use then, so after their reset it can point back to it. A tight window may also carry alternative: a cheaper published model that scores at least as high. Offer it beside stepping down; the user decides, and the current model may still be right for the task.conserve.stale) may have moved; say how old it is. reset_passed means the window has reset since the reading./v1/client data.speedTiers (client-v1.2; modelplan effort --json includes the model's speedTiers): each tier lists models (modelId, speed.ratio with up-to/approximate/unstated) and billing[] with what it draws on (plan-quota, usage-credits, credits, api). Speed is token generation, not task time: an up-to ×8 tier means generation time ≥ ×0.13, never a promise. If the publication has no speedTiers yet, use these official figures (October 2026):
spend headroom or when time matters.modelplan windows when listed in --help, otherwise /v1/client data.multipliers; follow the reference's matching rules. lineup / plan and task-start briefs may include billingContext with multiplierNow and nextCheaperAt for explicitly declared plans. These are context only: keep base costs and published verdicts, mark tentative rates as unverified, and offer waiting as an option. The user decides; never switch models, effort or Fast. Expired horizons are unknown./v1/reset-events. A public reset is not this user's balance: their meter is in the quota report.modelplan quota or scripts/quota.py. Never open credential or auth files, never cat session logs or local.json, never put quota or task text in a URL.Reply in the user's language, short:
Recommend: Claude Opus 5.5 · High (★ Med)
Ladder (vs one step lower): High +4.8 pts ×1.37 · XHigh +3.7 pts ×1.45 · Max +3.6 pts ×1.92
Your quota (Claude Code, 2 min ago): 5h 39% used, resets in 42 min · week 41% → surplus
Why: the five-hour window will reset with ~60% unused, so High for this refactor costs nothing extra; drop back to ★ Med after the reset.
Data: modelplan.ai publication df01c4d4…, as of 2026-10-14. Unknown: time ratio for High.
Use recommend, wait, needs_confirmation or abstain as the opening verb when the decision is not a plain recommendation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub modelplan/modelplan --plugin modelplanOther plugins' skills for the same job