By tanvoid0
Plugins that decide what a Claude Code session is allowed to spend, and who does the work.
npx claudepluginhub tanvoid0/claude-code-pluginsToken cost gate. Tallies every token class at its price off the session transcript, warns when context per turn, spend or burn rate runs hot, refuses shell commands whose output has no ceiling, and blocks tool calls once the budget is gone — which a session may extend itself, up to a ceiling only the user can lift. Adds skills to audit plugin cost and search the public plugin catalog.
Six subagents, each pinned to the cheapest model that holds for its job, reporting to a Portal task board over a bundled MCP server: /crew:work claims and works a task, /crew:standup reads the board back.
Start, stop, look at and drive the app in front of you - a window, an emulator or a page - without taking over the desktop. Detects the stack once and caches it.
7-day visitors to each marketplace page
Two plugins for Claude Code. One decides what a session is allowed to spend. The other decides which model does the work.
Both are small, dependency-free, and MIT. Neither one phones home.
claude plugin marketplace add tanvoid0/claude-code-plugins
claude plugin install governor@tanvoid0
claude plugin install crew@tanvoid0
An agent that is looping does not announce it. It reads a file, tries a fix,
runs the test, reads the file again, and the only thing that tells you is the
bill. governor is a PreToolUse hook that watches output tokens on the
session transcript and speaks up before the bill does.
Three gates, in order of urgency:
| gate | default | effect |
|---|---|---|
| burn rate | 25k output tokens in 5 minutes | warn: check the approach is converging |
| soft | 60% of budget | warn: prioritise what is left |
| hard | 100% of budget (200k) | deny every tool call — the model keeps its voice |
Burn rate is checked first, because spending fast is a worse sign than spending a lot. Warnings do not repeat inside ten minutes.
Why output tokens and not context? They are what you are billed for and what a runaway loop actually produces. Cached reads are about a tenth the price and are ignored on purpose.
Where the defaults come from. Roughly 390 real sessions: median spend 45k output tokens, p90 163k, p99 321k. A 200k budget interrupts the top ~6% — often enough to catch a loop, rarely enough to be furniture. The 350k ceiling clears all but the very longest.
At the hard gate every tool call is denied. That is the point: it forces a stop and a replan instead of a quiet overrun.
But a gate that blocks everything also blocks the edit that would raise the
budget, which strands the session with no way to ask for more. So editing the
project config stays allowed — and that doubles as the escape hatch. A cornered
model can hand itself more budget and carry on, up to ceiling.
Past the ceiling, nothing it can reach moves the line. ceiling, enabled and
both ratios live in ~/.claude/governor.json and only you can change them. A
project's .claude/governor.json may tune budget, burnTokens,
burnMinutes and rewarnMinutes — and nothing else.
That split is deliberate and it is the whole design. Anything the project file can set, a model at the wall can set to let itself out. So the project file decides when the gate speaks; whether it stops at all is yours.
This was not true in 0.3.0. A project file could set
"enabled": falseor"hardRatio": 100and the ceiling became decoration. Fixed in 0.4.0, with the bypass pinned down by a test.
The gate costs 0 always-on tokens. Hooks run outside the model's context entirely; the only price is a node start (~50ms) per tool call. The two skills below add ~126 between them, which is the whole plugin's context cost.
plugin-audit — what every installed plugin costs you in always-on context,
the tokens you pay in every session of every project whether you use the plugin
or not.
It will also tell you when there is nothing worth cutting, which is the usual
answer. A 2k always-on load matters far less than one unbounded agent run —
that is what governor is for.
find-plugin — searches the public awesomeclaudeplugins.com
catalog (~88k plugins) and prints install commands.
It prints the command; it never runs it. Installing a plugin means running a
stranger's hooks on your machine at every session start, so that stays a human
decision. The catalog is a third party, so its output is treated as untrusted:
repo slugs are allowlisted before they are printed inside a command you might
paste, and control characters are stripped from descriptions — an unescaped
ESC in a field like that rewrites the terminal around it.
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.