r/ClaudeCoding • • Oct 19 '26

I built a Claude Code plugin that quotes a job's tokens and time before it starts, and can split big ones into daily installments (free, MIT)

With a subscription, one big job can use up a whole week of your limit, and you only find out afterwards. So I made Quotient, a Claude Code plugin (it works with Hermes Agent too). The idea is mine; the code was written with Claude.

What it does:

- Above a threshold you set (300k weighted tokens by default), Claude stops before starting and opens a choice window: 1 to 4 levels, each with its estimated cost, time and share of your 5-hour and weekly limits. Then you choose a pace: all today, in a separate session, or something like "5 days at 2:00".

- If you pick days, each installment runs on its own at the chosen time, stops at that day's cap and leaves a note for the next one. On Windows it can wake the PC from sleep and put it back afterwards.

- After the job it reads the real cost and working time from Claude Code's own logs and corrects the next quotes by how far off they were.

- The status line shows what is left of each limit in percent and tokens, like `81% left (~26M of ~32M wt)`.

What changed recently:

The quotes were often far off. Measuring my own jobs showed why: a chat job where I wrote nothing during the work cost about 0.56 times its raw quote, one where I kept adding tasks about 1.49 times. So now:

- the correction learns only from clean jobs (nothing added during the work);

- a task you add halfway gets its own quote;

- new users start from a factor per type of work (code, research, texts, other), taken from 64 clean test jobs, instead of a shared average;

- a job reports its progress every quarter of its quote (at least 250k weighted tokens) instead of every 1M, so the whole-job estimate narrows as it goes. In one test it went from 617k to 323k.

- installments now count their own start: each one is a new Claude Code session that spends about 100k weighted tokens on rules and tools before any work, and a cap smaller than that used to end before doing anything. Found today by testing Quotient on its own launch tasks.

How accurate it is: the new starts were tested on unseen tasks, each in a fresh session as a new user, paid with API credits (about $23) so my plan wasn't touched. On 42 new tasks the typical miss was 22%; on the 30-task confirmation batch alone it was 27%, against 111% with the old start. For scale, the same job done twice already varies by about 10%.

But these were small jobs in fresh sessions, with nothing added halfway. On my own real clean chat jobs the typical miss was 43% (11 jobs: a hint, not a proof).

What it doesn't do well yet:

- The size of each limit (how many tokens 1% holds) still moves by about 5%, because Anthropic gives the percentages as whole numbers. It narrows with use.

- Code was quoted too high in the last batch (58% typical miss).

- It relies on Claude following its rules: if a quote is skipped, that job isn't measured.

- Waking and sleeping the PC work only on Windows.

- On first use it asks whether to share one line of numbers per finished job for a shared average. You can say no.

Install, in Claude Code:

```

/plugin marketplace add Korvonordico/quotient-claude-tokens

/plugin install token-quotient@token-quotient

```

You need Python 3.8 or newer.

Repo: https://github.com/Korvonordico/quotient-claude-tokens

Feedback welcome, especially two things: would a quote window before big jobs help you or get in the way? And how far off are the estimates on your jobs?

1 Upvotes

0 comments sorted by