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 st6rgazingv0.1.0MITIn 1 marketplace
Enforced usage budgets for subagents and sessions, plus a where-did-my-usage-go report.
You run one by typing its /name in Claude Code.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical · 3 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
A command runs shell commands (! syntax) when you invoke it
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.
Stop runaway subagents before they eat your Claude Code limit.
Hard budgets for every subagent. A status line badge with your real 5-hour and weekly usage. A report that shows where it all went.
/plugin marketplace add st6rgazing/warden · /plugin install warden@warden · /warden setup
You start a task, spawn a few subagents, and go get coffee. You come back to a weekly limit at 60% and no idea which agent burned it.
Warden puts the limits in hooks, so they run whatever the model decides.
[opus] ~/app main ✓ ⛨ wk 41% · 5h 23%
🛑 A budget for every subagent. Each one gets 2% of your week (or $3 on API keys), 45 minutes and 250 tool calls. At 75% it's told to wrap up. At 100% its tools are blocked and it has to report what it found. The work isn't thrown away.
🌀 Catches runaway patterns. Subagents nested more than 2 deep, more than 4 running at once, or one subagent calling the same tool 8 times in 10 minutes.
📉 Weekly guard. A heads-up at 80% of your weekly limit. At 95%, it asks before starting new subagents. A warning when your 5-hour window is about to run out at the current pace.
🧾 /warden report, so you know where your usage went:
Warden · this weekly window (wk 41% used, resets Tue 03:30)
Source ≈% week cost-wtd tokens calls
main thread 18.2% 6.1M 312
subagent:Explore 14.9% 5.0M 201 (3 runs, 1 stopped by Warden)
subagent:general-purpose 6.1% 2.0M 88
MCP servers (already counted above)
mcp:github — 0.4M
Stopped by Warden: 2 runaway agents, est. ≥9.0% of week saved
Add --md to save it, ready to attach to a bug report or support ticket.
/plugin marketplace add st6rgazing/warden
/plugin install warden@warden
/warden setup
/warden setup lets Warden read your real limit percentages from the status line. Your current status line keeps working. Warden adds its badge after it, and /warden off puts everything back exactly as it was. Warden works without setup too, using token counts.
Needs Node.js 18+. Works on macOS, Linux and Windows.
| Command | What it does |
|---|---|
/warden report [--session|--today|--week] [--md] | Where your usage went |
/warden status | Running subagents and what they've used |
/warden allow +50% | Let the last blocked subagent keep going |
/warden setup · /warden off | Add or remove the status line badge |
/warden pause · /warden on | Turn enforcement off or on |
~/.claude/warden/ and is cleared after 30 days.Optional. Put overrides in ~/.claude/warden/config.json (all projects) or .claude/warden.json (one project).
{
"subagent": { "weekPct": 2, "minutes": 45, "toolCalls": 250, "usd": 3 },
"spawn": { "maxDepth": 2, "maxConcurrent": 4 },
"loop": { "warn": 5, "stop": 8, "windowMin": 10 },
"weekly": { "warnPct": 80, "askPct": 95 },
"session": { "usd": 20 },
"mode": "auto"
}
mode: auto (percentages for Pro/Max/Team, dollars for API keys), limits, or dollars.
npm test # unit tests
npm run test:e2e # end-to-end, needs a logged-in claude CLI
scripts/probe.sh # logs real hook payloads
MIT licensed.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub st6rgazing/warden --plugin wardenPlugins from other owners that cover similar ground