Skip to content
A railway yard on black water at night: one pair of rails fans out into four tracks, each ending at a lit amber signal lamp.

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.

  • Claude Code plugin
  • MIT
  • Python

01 · rightsize

In short

  1. 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.

  2. The idea

    rightsize scores the task (size, risk, ambiguity, depth) and a fixed table decides. Same task, same answer, every time.

  3. The result

    The same tasks passed, for a fraction of the price.

rightsize

What it does for you

  • Four railway hand lamps on a shelf, from a small one to a large lantern, all lit.

    The right model

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

  • A signal mast at night: the lower lamps lit amber, the upper ones dark glass.

    The right effort

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

  • Two tracks over black water at night: a very long freight train on the far one, a single lit carriage on the near one.

    The right tests

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

  • One signal lamp lit on a post in black water; the other posts behind it are dark.

    Quality first

    Rule 0: never save on the result, only on what does not touch it.

rightsize

Measured, not promised

  • 100

    runs graded by hidden tests. Every one passed from effort low.

    Source ↗
  • −98%

    cost on a simple lookup, against Opus at high. Same result.

    Source ↗
  • 0.7 s

    to test a small change, instead of 11.4 s for the whole suite.

    Source ↗

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.

Ayoub Hammoudi

Claude Code

Install it in 30 seconds

  1. Open Claude Code.

  2. Paste this line:

    /plugin install rightsize --marketplace phantera-ai/rightsize

  3. That'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 GitHub

A bug, an idea? Open an issue, I read them all.All the technical details are in the README.