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 bloknayrbv0.2.0GPL-3.0In 1 marketplace
Soft-denies subagent spawns with no model set and heavy-model spawns late in the five-hour window, and forecasts five-hour and weekly caps at the current pace
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Heavy-model warning point (%)warnAt
Five-hour window usage at or past which a spawn on a heavy model is soft-denied once.
numberdefault 75
Guarded agent typesguardTypes
Agent types with no model of their own; a spawn of one that sets no model is soft-denied once.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it writes files; reads environment variables (HOME, USERPROFILE).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Heavy modelsheavyModels
Model names, or parts of model ids, that the heavy-model guard watches.
string listdefault ["opus","fable"]
Require a modelrequireModel
Soft-deny a spawn of a guarded agent type that sets no model.
booleandefault true
A Claude Code mod that keeps subagent spending deliberate.
general-purpose, claude by default) that sets no
model is denied once with a reminder to choose one from the task. Re-issue the identical call to run it
on the inherited model anyway.opus, fable by default) while the
five-hour window is at or past warnAt (75%) is denied once with the reading and the projected cap time.
Re-issue unchanged to spend it anyway, or name a model: choosing a heavy one after seeing the reading
passes.QM 5h cap ~3:40pm · week cap ~Oct 25, 9:00am · agents 4 (2 opus, 2 sonnet). Each part shows only when it
has something to say, and the line is hidden when none does. It doesn't repeat the usage percentages: pair
it with a status line that shows them. A timer redraws it every minute, so a passed cap time or a reset
doesn't stay up while the session is idle./quartermaster leads with both windows (percent, reset and time to it, burn rate, forecast), then
this session's agents, each guard's fires, re-issues and changes, and the config.Spawns made by other plugins or by workflow scripts can't re-issue, so for them the guards never deny: they toast, once per plugin and agent type (model guard) or per plugin and window (heavy guard).
Quartermaster is a function-hooks plugin, built against Claude Code 2.1.292. That hooks API is early access and moves between releases, so a newer build may need changes here. The pace line and toasts need a subscription that reports rate limits.
/plugin marketplace add bloknayrb/claudestuff
/plugin install quartermaster@claudestuff-marketplace
| Field | Type | Default | Meaning |
|---|---|---|---|
warnAt | number | 75 | Five-hour usage (%) at which the heavy-model guard starts |
heavyModels | list | opus, fable | Model names or id fragments, matched case-insensitively |
guardTypes | list | general-purpose, claude | Agent types with no model of their own |
requireModel | boolean | true | Turns the model guard on or off |
The heavy-model guard knows a spawn's model only when the call names one, when it is a fork, or when its
type is in guardTypes (it then inherits the parent's). It assumes no default subagent model is configured;
with one, those spawns run on the default instead. Other agent types that set no model go unjudged.
A denied call's identity is a hash of prompt, description, subagentType and model, never the tool
call id. The identical call issued again within ten minutes, from the same agent, runs. The same task
(prompt and description) with another model or agent type counts as acting on the deny. Counters
(fires, reissued, changed) and the last 200 outcomes are kept so a guard that is mostly re-issued can be
narrowed or removed.
~/.claude/state/mods/quartermaster/<sessionId>.json:
{ "loadedAt", "lastError" }.
One file is written per session id and never pruned; they are small and safe to delete.It makes no model calls. A guard that fails lets the spawn through and logs to the debug log.
/quartermaster
says pace unknown when there is no forecast.claude plugin test plugins/quartermaster runs the tests. tsconfig.json extends
.claude-plugin/types/tsconfig.json, which Claude Code writes when it first loads the mod from a folder you
own (--plugin-dir, or a mods folder). Load it once before running tsc -p. Every function that takes $
lives in hooks/register.ts, because the validator refuses $ passed across an import.
npx claudepluginhub bloknayrb/claudestuff --plugin quartermasterBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.