rbartoli / agent-usage-guard
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.
ActiveLast commit 18 days ago1 contributor in 90 daysMIT licence, allows business use
- Maintenance
- Active
- Last commit 18 days ago
- Stars
- 103
- On GitHub
- Licence
- MIT
- Allows business use
- Downloads for
- None listed
- No release files
- Latest tag
- agent-usage-guard--v1.2.1
- Released 22 days ago
- Built with
- TypeScript
- 100% of the code

What it does
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.
Get started
No single install command. Read the steps in the README (opens in new tab)
Is it looked after?
- Contributors
- 1
- Last 90 days
- Issues
- 100% closed
- 0 still open
- Pull requests
- 76 merged
- 0 waiting
- Releases
- 16
- 16 in the last year
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| midudev / better-claude | 300 | 8 days ago | MIT | No downloads |
| DevDock-AI / claude-unlimited | 366 | yesterday | MIT | Mac |
| oil-oil / codex-team-mode | 239 | 2 months ago | MIT | No downloads |
| Merziller / intel-bureau | 11 | 18 days ago | MIT | No downloads |
| salesforce / ml4ir | 105 | 6 months ago | Apache-2.0 | No downloads |
| HyunSeob / iphone-cli | 158 | 8 days ago | MIT | Mac, Windows |
More: languages, topics and project record
Languages
- TypeScript 100%
Topics
- ai-agents
- claude-code
- claude-code-mod
- claude-code-plugin
- developer-tools
- guardrails
- rate-limiting
- subagents
- typescript
- usage-limits
Project record
- JobOther AI tools
- StatusNew to our list
- Commits76
- Forks6
- Watching2
- CreatedJul 28, 2026
- First seen by usNov 15, 2026
- CheckedNov 26, 2026
