Agent Usage Guard — Development skill for Claude Code
A Claude Code mod that holds subagent fan-out, heavy-context prompts and retry loops before they spend your usage window.
How to install Agent Usage Guard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rbartoli/agent-usage-guard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Usage Guard does
A Claude Code mod that holds subagent fan-out, heavy-context prompts and retry loops before they spend your usage window. It reads your plan's usage, counts agents across every session, and asks in Claude Code's own dialog.
Alternatives in Development
- Claude Token Efficient — One CLAUDE.md file 3.8k ★
- Prun — Run prun: parallel delegation fan-out (Codex-primary, Opus coordinates) 239 ★
- Cmux Did Spawn — Orient yourself as orchestrator over a full-stack team that was just scripted into its own cmux window 107 ★
README
agent-usage-guard
Stops Claude Code from spending your five-hour usage window in ten minutes.
`agent-usage-guard` is a Claude Code [mod](https://code.claude.com/docs/en/plugins/mods/overview): it runs inside Claude Code and holds runaway spend before it happens. It reads your plan's live usage, and it holds subagent fan-out, heavy-context churn and retry loops.
Recorded from Claude Code's interactive UI with the guard loaded. A scripted local API stands in for Claude, so the sessions and token counts are staged and no usage is spent. Every question on screen is the guard's own. Rebuild it from the Northstar fixture.
It acts before the spend, not after it: before an agent starts, a prompt is sent, or a tool call runs. Agent limits hold across every Claude Code session on your machine, and fan-out and heavy context are capped at any usage level, not only near the limit. When you are at the keyboard it asks you, in Claude Code's own question dialog. When nobody can answer, it refuses and tells Claude why, so the model can wait, batch the work, or stop. `/agent-guard report` shows what it did.
- Plan-aware. It reads the 5-hour and weekly percentages Claude Code reports, and keeps the end of the window for you.
- One answer covers a while. An approval lifts its condition until it clears or times out, so the same question doe
Related Skills
Tokens
Show the Monomind token usage dashboard — reports spend and call counts for today, week, 30days, or month
Token Guard
Automatic Claude Code hooks to reduce token waste — block heavy files, context warnings, cost logging
Stop Rules
Holds your coding agent to your team's written coding rules. A stop hook for Claude Code, Codex, Cursor and te
Clawd Band
An unofficial fan-made pixel cat that lives in the band above the Claude Code prompt and reacts to what Claude
Chiikawa
Chiikawa (ちいかわ) fan mod for Claude Code: Hachiware conducts, and the friends take on tasks and talk them over.
Skillmonitor
Track which Claude Code skills you actually use: a mod records every skill call into local SQLite, and a CLI s
Related Agents
Context Optimizer
Meta utility agent for token and context optimization. Spawn when needing to compress agent prompts, optimize
Mod Builder
Creates and changes Claude Code mods — plugins of function hooks behind a pane, band, status line, slash comma
Ae Build
Agent Engineer build agent. Implements one plan step and loops against the project's deterministic gates until