
My first open-source tool
rightsize
The right model, the right effort and the right tests for every Claude Code task. Without thinking about it.
01 · rightsize
In short
The problem
By reflex, everything runs on the biggest model at max effort. It works, but you pay full price even to find one value in a file.
The idea
rightsize scores the task (size, risk, ambiguity, depth) and a fixed table decides. Same task, same answer, every time.
The result
The same tasks passed, for a fraction of the price.
rightsize
What it does for you

The right model
Haiku, Sonnet, Opus or Fable: the smallest one that does the job.

The right effort
From low to max. It only climbs a rung when a check fails.

The right tests
Only the tests your change reaches. When in doubt, it runs more, never less.

Quality first
Rule 0: never save on the result, only on what does not touch it.
rightsize
Measured, not promised
First steps in open source
Why I built it
It's my first open-source tool. I was paying Opus-at-max prices for tasks a small model handled just fine. So I wrote the rule once, measured it, and shared it. Today it also lives at Phantera, as a gift to its community.
Claude Code
Install it in 30 seconds
Open Claude Code.
Paste this line:
/plugin install rightsize --marketplace phantera-ai/rightsizeThat's it. It switches on by itself in every session.
Or from the original repository:
/plugin install rightsize --marketplace Ayoubhm07/rightsize
Use it if you find it useful. You pay me in GitHub stars.
Star it on GitHubA bug, an idea? Open an issue, I read them all.All the technical details are in the README.