Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By a-pavithraav0.8.2In 1 marketplace
After each ask you type, says what it looked like it needed and what it cost; after a simple or routine ask on a bigger model or effort than it needed, what Haiku, Sonnet or a lower effort would have cost; warns when an ask runs on too small a model or a complex one at low effort; says when the context has grown expensive and how to shrink it; ships /model-fit:baton, a handoff note for a fresh session. Optional Jev shadow labels for comparison.
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Prompt cache lifetimecacheTtl
auto: worked out from your settings and environment (an hour on a subscription, five minutes with an API key or a cloud provider). Set 5m when a subscription has run into usage credits, which model-fit cannot see.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it makes network requests; reads environment variables (ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL, CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS, CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CODE_USE_ANTHROPIC_AWS, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_MANTLE, CLAUDE_CODE_USE_VERTEX, ENABLE_PROMPT_CACHING_1H, FORCE_PROMPT_CACHING_5M, TYPESAFE_API_KEY); reads your settings; calls a model on your account; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
One of auto, 5m, 1h
stringOptionaldefault auto
Jev modeljevModel
Pinned so the shadow comparison stays on one model. jev-1.14.0 is newer; jev-latest follows whatever TypeSafe points it at.
One of jev-1.13.0, jev-1.14.0, jev-latest
stringOptionaldefault jev-1.13.0
Jev shadow labelsjevShadow
on: Jev labels each ask beside Haiku and /fit compares them. Haiku still drives the advice. Sends the ask and the end of the last reply to TypeSafe.
One of off, on
stringOptionaldefault off
TypeSafe API keytypesafeApiKey
Key for Jev shadow labels. Left empty, TYPESAFE_API_KEY is used.
SensitivestringOptional
It is a mod rather than a hook because its advice is for you, not the model: a hook's output goes into Claude's context, costs tokens and can steer the answer, while the band and its buttons reach you directly and keep the session's cache and cost state between asks.
Haiku labels each prompt you type as trivial, normal or complex, reading it together with the end of the last reply, so "yes please" is judged by the plan it approves. A concept or arithmetic question that needs no code read ("what is a hashmap") counts as trivial.
After every ask you type, one dim line says what it looked like, the model it ran on, what it cost and who judged it: ◇ Looked routine · Opus/high · ≈ $0.04 · judged by Haiku. A silent band no longer leaves you guessing whether the mod ran.
Each label has a model and effort it needs: trivial → Haiku at low effort, normal (routine) → Sonnet at medium, complex → Opus at high.
After a simple ask on a bigger model than Haiku, or a routine ask on Opus or Fable, the advice weighs what switching itself costs. Prompt caches are per model, so /model haiku or /model sonnet mid-conversation makes the new model re-cache the whole conversation once, at 2x the input price on the one-hour cache or 1.25x on the five-minute one (and on Haiku, every price is five times higher above 100k tokens). Routine-ask advice shows once a session, since most asks are routine. A second Haiku call judges whether the ask needed the conversation:
/model haiku in the prompt box.When only the effort was higher than the ask needed, it suggests /effort low (simple) or /effort medium (routine), with a button. On Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1, with an API key or a subscription, an effort change keeps the cache, so this is offered at any context size and beside "stay". Elsewhere (Bedrock, Agent Platform, Foundry, Claude Platform on AWS, a custom ANTHROPIC_BASE_URL, CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS) it rebuilds the cache, so it is offered only below 50k tokens. The saving is not priced: Anthropic publishes no output per effort level.
After a long pause (past the cache lifetime), the cache has expired on every model, so the context alert says that is the cheapest moment to change model.
While a complex ask runs on Haiku, it warns that the answer may be thin and offers /model opus, with what moving the conversation to Opus costs once; a routine ask on Haiku gets the same for /model sonnet, once a session. A complex ask at low effort gets /effort high, and says whether that keeps the cache.
As the context grows past a few size levels, it says what each step costs and how to shrink it: /clear for a new task, /compact or /model-fit:baton for the same task, /rewind after a wrong turn. Buttons put /compact keep: or /model-fit:baton in the prompt box. After a long idle spell it adds what the next action costs while the cache is rebuilt, and says to shrink first.
/model-fit:baton writes a handoff note to the OS temp folder (or a path you give): next action first, verified versus assumed state, decisions with rejected options, gotchas, pointers, and the skills to invoke next. It writes in plain ASD-STE100 style and gives the line to paste after /clear.
All dollar figures are list-price estimates; /cost is the authority. /fit shows the typical steps and output per label, learned from your turns, and how many turns it suspects were mislabelled: those that ran over three times the steps their label predicts. It also totals the session: what the judged asks cost, how many were simple and how many of those did not need the conversation, and an estimate of the Haiku labelling itself (two small calls per ask; the mod API does not report their usage, so it is guessed from their length).
npx claudepluginhub a-pavithraa/claude-mods --plugin model-fitBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground