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 archid21v0.16.3MITIn 1 marketplace
Sends each prompt to the cheapest model and effort that fits, and raises effort only when a turn shows trouble. Needs Claude Code 2.1.287 or newer, and claims logs stay on your machine with nothing sent to its author.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; makes network requests; writes files; reads files; reads environment variables (ANTHROPIC_BASE_URL, CLAUDE_CODE_DISABLE_FAST_MODE, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, CLAUDE_CONFIG_DIR, DISABLE_AUTO_COMPACT, ENABLE_PROMPT_CACHING_1H, FORCE_PROMPT_CACHING_5M, HOME, TRIM_HOME); reads your settings; changes your /config settings; runs commands; calls a model on your account; reads or rewrites your prompts; sends prompts on its own.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
model-routing, cost-optimization, token-usage, prompt-caching, effort-control, subagents, claude-opus, haiku ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Bandband
The row above the prompt that shows what rightsize did, with buttons to retry it at the original effort or run it on your model, and a ⋯ menu to change the rule, mark a hand-off or lowering 👍 or 👎 (kept on this machine), or change cache choices. when it acts: only when it changes something. always: on every rated prompt, no change included. off: status line only.
One of when it acts, always, off
stringdefault when it acts
Modemode
act (default): rightsize changes effort, switches reviews to Opus and hands work to helpers as your rules say. watch only: it rates and plans every prompt, applies nothing, and the band says what it would have done; /rightsize report sums what that would have saved. Use it for a week to see rightsize's calls on your own work before turning it on.
One of act, watch only
stringdefault act
Advanced · Tipstips
on: the band shows a short tip at the end of a turn, asks once whether to star rightsize on GitHub, and hints at whatsnext (install it, or run whatsnext init in this project) after a compaction that a handoff note would have made cheaper. off: none of these show. The Stop tips and Don't show again buttons on them set this row to off. /rightsize tips sets it back to on.
One of on, off
stringdefault on
Cachecache
on (default): rightsize keeps an eye on the prompt cache: the offer to keep it warm, keep warm itself, a handoff or a compaction before it goes cold, and the idle warning when you return to a cold cache. off: none of those; a keep-warm run in progress stops at once. The rows Idle warning and Before the cache goes cold fine-tune it while Cache is on, and are not used while it is off.
One of on, off
stringdefault on
Advanced · Lowest effortfloor
The lowest effort level rightsize will lower to.
One of low, medium, high
stringdefault low
Advanced · Budget pacingpacing
on: on a subscription, move the hand-off and lowering bars by how fast the 5-hour and 7-day windows are being used. Running out early: hand off and lower more readily, and the band says which bars moved. Much left near a reset: nothing changes. Over 90% used: save all it can, which skips raises and stronger models while Raising and Stronger model are not set. A rule you set stays as you set it. off: always use the fixed bars (90% for hand-offs, 90% for lowering).
One of on, off
stringdefault on
Advanced · Stronger modelupRule
When a stronger model than yours would do better, or a review runs on Opus for one turn. ask first: ask before it. always send: do it without asking. stay, raise effort only: stay on your model and raise effort. ask each time: ask what to do each time. not set (the default): Changes decides (Auto: done without asking; Ask: asked first), and the band says so the first time the case comes up in a session, with the other rules in its ⋯ menu. A rule set here is used as it is. The band's ⋯ menu and /rightsize settings set it too; set it back to not set to let Changes decide again.
One of ask first, always send, stay, raise effort only, ask each time, not set
stringdefault not set
Advanced · Reportsbilling
api: subagent reports show dollars. subscription: they show the share of usage and of the 5-hour window, with API-equivalent dollars beside it. rightsize reads this off each response's rate limits when they show it. A value set here is your answer: the rate limits never change it, and /rightsize says when they disagree.
One of api, subscription
stringdefault api
Advanced · Highest effortceiling
The highest effort level rightsize will raise to. It never goes above this: not when a prompt needs more, not mid-turn when Claude looks stuck (those also never reach max), and not for the subagent it hands work to, which runs at most at this level. A level you are already on above it is left alone: this stops raises, it never lowers.
One of high, xhigh, max
stringdefault max
Changeschanges
Auto (default): rightsize lowers or raises effort, switches a review to Opus and hands work to a helper without asking, and the band says what it did. Ask: every move rightsize would make on its own asks first, in a timed dialog (see Question wait), and nothing changes until you answer. Either way an Advanced rule row you set (Lowering, Raising, Stronger model, Cheaper model) wins for its case, and so does an Advanced area row (Prompt changes, Cache changes, Compact changes) that is not Same as Changes. Replaces the old Ask before changing row: a value stored for it becomes this row once, and a Quality profile saved by an older release reads as Ask until you set this row.
One of Auto, Ask
stringdefault Auto
Advanced · Cold-compact tipcoldTip
on: when the cache has gone cold on a big Opus or Fable chat and compacting on Sonnet would save money, the band walks you through the compaction one command at a time. off: the tip never shows. Its Don't show again button sets this row to off.
One of on, off
stringdefault on
Routingrouting
on (default): rightsize changes effort on your main chat (lowering for easy prompts, raising for hard ones, a session switch you pick), runs a review on Opus for one turn, and raises effort mid-turn when Claude looks stuck, as your rules say. off: none of those happen; your effort and model stay as you set them. With Routing and Hand-offs both off, rightsize rates no prompt and spends nothing on rating (the cache features still work). A row below that belongs to Routing, such as Raise when stuck, is then not used.
One of on, off
stringdefault on
Advanced · Cheaper modeldownRule
When a task could run on a cheaper model than yours. ask first: ask before sending it to a subagent on that model. always send: send it without asking. stay, lower effort only: stay on your model and lower effort. ask each time: ask what to do each time. not set (the default): Changes decides (Auto: done without asking; Ask: asked first), and the band says so the first time the case comes up in a session, with the other rules in its ⋯ menu. A rule set here is used as it is. The band's ⋯ menu and /rightsize settings set it too; set it back to not set to let Changes decide again.
One of ask first, always send, stay, lower effort only, ask each time, not set
stringdefault not set
Hand-offshandOffs
on (default): rightsize hands work to a helper subagent (a cheaper model for routine work, a stronger one for hard work) that your main chat briefs and checks, and runs Claude's own subagents on the cheapest model that fits. off: no hand-offs, and Claude's subagents stay on their model; when Routing is on, an effort change replaces the hand-off. With Routing and Hand-offs both off, rightsize rates no prompt and spends nothing on rating (the cache features still work).
One of on, off
stringdefault on
Advanced · Use FableuseFable
on: rightsize may hand work to Fable when the work needs a stronger model. off: it never does, and the starting-point comparison leaves Fable out. If you work on Fable yourself, nothing changes.
One of on, off
stringdefault on
Advanced · Use HaikuuseHaiku
on: rightsize may hand work to Haiku, and move Claude's own subagents to it. off: it never does, and the starting-point comparison leaves Haiku out. Haiku still rates your prompts (it is the rater, not a worker), so this does not stop the rating calls.
One of on, off
stringdefault on
Advanced · Cache changescacheMode
What rightsize does about the cache: keep warm, a handoff note, the offer when the cache is cold. Same as Changes (default): follows Changes. Auto: acts without asking. Ask: asks first. Off: this area does nothing.
One of Same as Changes, Auto, Ask, Off
stringdefault Same as Changes
Advanced · LoweringlowerRule
When a prompt needs less effort. ask me: ask each time. lower automatically: lower without asking. never lower: never. not set (the default): Changes decides (Auto: done without asking; Ask: asked first), and the band says so the first time the case comes up in a session, with the other rules in its ⋯ menu. A rule set here is used as it is. The band's ⋯ menu and /rightsize settings set it too; set it back to not set to let Changes decide again.
One of ask me, lower automatically, never lower, not set
stringdefault not set
Advanced · RaisingraiseRule
When a prompt needs more effort on the same model. ask me: ask each time. raise automatically: raise without asking. never raise: never. While Raise when stuck is follow Raising, this rule also decides raises mid-turn when Claude looks stuck. not set (the default): Changes decides (Auto: done without asking; Ask: asked first), and the band says so the first time the case comes up in a session, with the other rules in its ⋯ menu. A rule set here is used as it is. The band's ⋯ menu and /rightsize settings set it too; set it back to not set to let Changes decide again.
One of ask me, raise automatically, never raise, not set
stringdefault not set
Advanced · Start suggestionsstartTips
weekly or monthly: every 7 or 30 days, estimate what the last 30 days of rated prompts would have cost from Sonnet and Opus at medium and high, rightsize's changes counted. Prompts Haiku's rating has often got wrong for a model count against that model's start. When another start is at least 15% cheaper (25% while it has few measured runs) without sending over 1 prompt in 10 to a stronger model, or when over 15% of prompts needed a stronger model or more effort, the band suggests switching with /model. rightsize never changes your model itself. off: no suggestions; /rightsize report still shows the comparison.
One of weekly, monthly, off
stringdefault weekly
Advanced · Claude's subagentssubagents
cheaper when it fits: when Claude starts a general-purpose subagent without naming a model, rate its brief and run it on the cheapest weaker model that fits, at that model's level, under the 90% hand-off bar. off: leave Claude's own subagents on its model.
One of cheaper when it fits, off
stringdefault cheaper when it fits
Advanced · Workflowsworkflows
What rightsize does once Claude starts a workflow (ultracode, or asked for): many helper agents at once, often 10 or more, each picking its own model. ask: ask on the band when the first workflow starts (the default); until you answer, rightsize pauses for it. pause rightsize: hand nothing off for the rest of the session, and leave the workflow's agents alone. follow my rules: hand-offs follow your Stronger model and Cheaper model rules as usual; the workflow's agents are left alone. right-size every agent: as follow my rules, and each workflow agent that names no model is rated by the Rater (one rating call each) and runs on the cheapest model that fits, under Claude's subagents, Use Haiku, Use Fable and the miss-rate pause (20%). Claude's subagents set to off keeps the agents alone in every case. Whichever you pick, measurement stays paused after a workflow: calibration learns nothing and no saving is claimed.
One of ask, pause rightsize, follow my rules, right-size every agent
stringdefault ask
Advanced · Before the cache goes coldbeforeCold
What rightsize does when a session that ends a turn with a big conversation (a cold return would cost at least the Idle warning amount, $0.50 by default and while Idle warning is off, API-equivalent on a subscription) is about to lose its prompt cache. while it pays: send a tiny keep-warm request just before an expiry only when your own record says you are likely enough to come back before the next one to cover its cost (at most 2 requests, and one at the first expiry until rightsize has enough of your idle times to judge); with nothing sent, compact when that pays, else save a whatsnext handoff note; on a 1-hour cache the band shows an Extend 1 hour button. keep warm 2 h, keep warm 8 h, keep warm until my usual start (the time you usually send your first prompt, at most 8 hours): send one tiny request just before each expiry to keep the cache warm until then, with a status row on the band (Stop keeping warm; Don't keep warm again in ⋯), and stop when you type, press Stop, a request fails, or keeping warm would cost more than coming back cold. ask: offer the choices on the band 5 minutes after the turn, each with its cost, and do nothing if you do not pick. save a handoff: run whatsnext's wrap-up once before expiry (compact when whatsnext is not installed or not started in the project). compact: compact once before expiry (with whatsnext, using its instructions). off: nothing. Nothing runs during a turn. Not set here, rightsize uses while it pays.
One of while it pays, ask, keep warm 2 h, keep warm 8 h, keep warm until my usual start, save a handoff, compact, off
stringdefault while it pays
Advanced · Cache timercacheTimer
on (default): after every main-chat turn the band shows when the prompt cache goes cold (a clock time), what coming back then costs and how full the conversation is, with Compact now and, when whatsnext is set up in the project, Save handoff note. When Claude Code will compact an idle session by itself, the line says when. off: that line is not shown. The offers (keep warm, the context warning, the cold-compact tip) still show. Cache off hides everything.
One of on, off
stringdefault on
Advanced · Raise when stuckescalation
What to do when a turn shows Claude is stuck (the same tool call failing twice, 3 tool calls failing, the same call running 3 times, a turn passing 3x the rated steps (at least 15) with no progress, or 2 fixes in a row leaving the tests red). A raise is one level for the rest of the turn, at most twice, never above Highest effort and never to max. follow Raising (the default): the Raising rule decides. ask me: ask on the band while the turn goes on. raise automatically: raise without asking, whatever Raising says. off: never raise mid-turn. The same rule covers a helper that looks stuck. The question's "for this session" answer lasts until the session ends; "Always raise when stuck" sets this row to raise automatically. A value of on from an older release reads as follow Raising.
One of follow Raising, ask me, raise automatically, off
stringdefault follow Raising
Advanced · Lowering pauselowerPause
How long lowering effort (and handing work to a cheaper model) pauses for a kind of work on a model after the rating was wrong too often: 2 or more of its last 10 outcomes. The count is prompts of that kind of work. When it runs out, lowering comes back on probation: one wrong rating pauses it again. The band has a Try lowering again button, which ends a pause from your next prompt.
One of 5 prompts, 10 prompts, 15 prompts, 20 prompts
stringdefault 10 prompts
Advanced · Prompt changespromptMode
What rightsize does before each prompt (lowering or raising effort, a stronger or cheaper model) and when it raises effort mid-turn. A rule row you set (Lowering, Raising, Stronger model, Cheaper model) wins for its case. Same as Changes (default): follows Changes. Auto: acts without asking. Ask: asks first. Off: this area does nothing.
One of Same as Changes, Auto, Ask, Off
stringdefault Same as Changes
Advanced · Compact changescompactMode
What rightsize does about compacting a long conversation. Same as Changes (default): follows Changes. Auto: acts without asking. Ask: asks first. Off: this area does nothing.
One of Same as Changes, Auto, Ask, Off
stringdefault Same as Changes
Advanced · Idle warningidleWarning
When a session sat idle past the cache's life (1 hour, or 5 minutes when prices.json says 5m), the next prompt writes the whole conversation to the cache again. When that costs over this much more than a warm cache, the band notes the cost beside what rightsize did with the prompt (as a share of the 5-hour window on a subscription, once runs show the rate), and what /compact first would have cost. The prompt is never held. The same amount is the size bar for Before the cache goes cold.
One of over $0.10, over $0.50, over $1, off
stringdefault over $0.50
Advanced · Usage-limit advicelimitAdvice
on: when you are near your 5-hour usage limit with a big chat and the reset is further off than the cache lives, the band advises compacting now. off: the advice never shows. Its Don't show again button sets this row to off.
One of on, off
stringdefault on
Advanced · Long helperslongHelpers
What happens when a helper on a cheaper model nears its spend limit (a multiple of the main-model estimate for its task) and is still finding new things. ask: ask on the band whether to let it continue; no answer means it goes on while it is making progress, up to 10x the estimate, then stops and reports. continue while making progress: extend its limit automatically, one block at a time, up to 10x the estimate, then ask (no answer stops it). stop at the limit: never extend. A helper that is stuck is stopped with no question.
One of ask, continue while making progress, stop at the limit
stringdefault ask
Advanced · Try lowering when unsurelowerUnsure
on (default): when the rater says it is not sure how hard a prompt is and the plan was to lower effort, lower it one level (never more, never a hand-down to a cheaper model). Unsure lowerings have their own miss record: when more than 20% of the last 10 unsure prompts of a kind of work on a model went wrong, unsure prompts of that kind are left as they are until the window recovers. A cut request, a missing last reply or a failing last test run still means no lowering. off: a prompt the rater is not sure of is left as it is.
One of on, off
stringdefault on
Advanced · Context-size warningsizeWarning
on: when the chat first reaches 40, 50, 60, 70, 80 or 90% of the context window, the band says so and offers Compact now. off: the warning never shows. Its Don't show again button sets this row to off.
One of on, off
stringdefault on
Advanced · Output suggestionoutputAdvice
on: once a session, when output is a large share of the cost (at least 25%, after 20 requests and $1.00 spent at list prices), suggest the Concise output style. off: never suggest it. This row does not change your output style. To use Concise in every project, set Output style to Concise in your Claude settings.
One of on, off
stringdefault on
By Archi Dubey, MIT license. Full guide: https://github.com/archid21/rightsize. Feedback: [email protected] (subject: rightsize)
Make every Claude token count.
rightsize sends each prompt to the cheapest model and effort that does the job, raises effort only when Claude is actually stuck, and keeps your cache and context from costing more than they should. No profiles, no tuning: one rule set, two switches.
Same outcome, lower cost from an Opus start. Routine work goes to Haiku or Sonnet helpers and lower effort; Opus keeps the work that needs it. On our coding benchmark it matched Opus at up to 30% lower cost (API-equivalent).
Effort follows evidence, not guesses. A rating never raises effort on Opus or Fable at prompt time. Effort goes up mid-turn only when the turn shows trouble: repeated failures, a loop, or two fixes in a row that leave the tests red. You stop paying for high effort that buys nothing.
Stronger reviews from a Sonnet start. Reviews switch to Opus for that one turn and come back. You get Opus-grade review without switching models yourself. If your default is Sonnet you may spend more: on our coding benchmark, about 1.4x to 2x what Sonnet alone costs, almost all of it from reviews. Your cost depends on how many reviews you run.
It learns which routes to trust. Every hand-off, lowering, test run and thumbs rating scores the rater per kind of work and model. A model that misses on reviews stops getting reviews until your own outcomes say otherwise.
Cut cache and compact costs. Keeps the cache warm when that is cheaper than coming back cold, warns as your context fills, steps aside for Claude's idle compact, and compacts only when the saving beats the cost.
rightsize works better with whatsnext. rightsize decides when a compact pays. whatsnext decides what to keep: it saves a handoff note first, so a compact retains the details that matter. rightsize asks it for that handoff before the cache goes cold and uses its compact text for Compact Now. rightsize works on its own too: when whatsnext isn't installed or set up in the project, it compacts with its own handoff-style text, and a Wrap up press or a typed wrap up compacts instead of saving a note.
| Feature | What it delivers | How to use it |
|---|---|---|
| Smart routing | Routine work on cheaper models, Opus where it counts | Automatic. Changes in /config (Auto or Ask) makes it ask first. |
| Effort control | Lower effort for routine prompts; raised mid-turn only when Claude is stuck | Automatic. The Lowering and Raising rows set ask, automatic or never. |
| Cheaper helpers | Big routine edits handled at lower cost | Automatic from Opus or Fable sessions. Press Redo on Opus (named for your model) on the band to undo one. |
| Opus reviews | Stronger reviews without switching models | Automatic. The Stronger model row sets ask first or always send. |
| Watch only | See what rightsize would save before it changes anything | Set Mode to watch only, then run /rightsize report after a week. |
| Keep warm | Avoid paying to rewrite a cold cache | Set Before the cache goes cold, or pick a time when the band offers it. |
| Context-size warning | Compact before the conversation gets costly | Appears at 40–90% full. Press Compact Now, or Start fresh with whatsnext. |
| Compact before your 5-hour limit | Save usage after a window reset | Press Compact Now when the band advises it. |
| Handoff before a compact ★ | A compact that retains the details that matter | Install whatsnext. rightsize asks it automatically. |
| Cost report | Measured savings, spend and return rate | Run /rightsize report. |
| Band and settings | See and change every decision | Use the band's buttons and ⋯ menu, /config, or /rightsize settings. |
★ Needs whatsnext.
Before a prompt is sent, rightsize asks a rater (Sonnet at low effort, with Haiku as the fallback) which effort each model would need for it, or whether a model would struggle, and how big the work is. A cost model then prices each model at its own level, counting the work that model does at that level, and picks the cheapest route that fits, which can change the model and the effort together. Savings are estimates against a baseline: rightsize's own estimate of staying on your model and effort, made when it chose the route and never changed afterward.
7-day copy clicks
npx claudepluginhub archid21/rightsize --plugin rightsizeBuilt 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