Read the model usage windows with `quota` and decide which model spends which window: GLM 5.3 first, then Codex, for per-change reviews; every Codex 5-hour window filled with the strongest model on queued review and audit tasks; Codex reset credits spent only once the weekly limit is gone. Use before launching a review, audit or delegated run, when choosing between GLM and Codex, when a Codex window or weekly limit is spent, when deciding whether to spend a reset credit, and to keep Codex windows busy with a queue of tasks (`quota-queue`).
Ships in quota. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run quota before you pick a reviewer, launch an audit or queue work. It
takes about 10 s and appends each reading to
~/.local/state/quota/history.jsonl.
codex 5h 100% 1:20 AM
codex week 43% Oct 3 at 7:20 PM 11% in deficit | Expected 32% used | Runs out in 2d 23h
codex reset credit available, expires 2026-10-04
zai 5h 21% 4:40 AM 5% in reserve | Expected 26% used | Lasts until reset
claude week 85% resets Sep 30, 10pm 12% in deficit | Expected 73% used | Runs out in 21h 43m
mistral api 93% €23.76 / €25.50 · €1.74 left
mistral vibe 37% €93.66 / €255.00 · €161.34 left
reset credit
line is one credit and its expiry date. A credit is a full reset. It
clears the weekly and the 5-hour window at once, and restarts the weekly
timer: the next reset moves to 7 days after the spend.cross-review): GLM 5.3 through opencode, then
Codex (gpt-6.1-sol) only when GLM is spent or failed. GLM goes first
because its window has no weekly cap. Never Vibe.quota-queue. Room left when a window closes is lost. This is
separate from step 1. Routine reviews don't wait for Codex, and deep
reviews don't wait for GLM.codex-limits prints <5h-used-%> <weekly-used-%> <5h-resets-at-epoch> <credits> in under a second, e.g. 100 43 1790637613 3. Poll this,
not quota.codex-limits --spend spends the credit that expires first and prints
reset, nothingToReset, noCredit or alreadyRedeemed.quota-queue <dir> runs the executables in <dir>/pending/ in name
order while Codex has room, sleeps through a spent window, and spends a
credit at weekly 100%. Run it with run_in_background; it exits with
QUEUE EMPTY, which is your cue to add tasks. Task layout, what to queue
and the log: reference/queue.md.--spend. A spend cannot be undone and credits are
scarce. Check with plain codex-limits; spend only under rule 4.codex app-server (account/rateLimitResetCredit/consume)
does, which is why codex-limits exists.quota-queue runs only files with the
executable bit; chmod +x each task.another quota-queue runs on <dir>. One runner per directory holds
a lock. Don't start a second; add tasks to pending/ and the running one
picks them up.codex-limits printed None. The account is logged out or the
app-server changed its reply. quota-queue reads that as unreadable and
retries every 5 minutes; post Tom a card instead of spending.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/quota:quotafrom quota
npx claudepluginhub t0msilver/skills --plugin quota