claudemods

All Claude Code modsrbartoli/agent-usage-guard

agent-usage-guard

A Claude Code mod in 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.

agent-usage-guard reaches L2 (writes or runs) and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install agent-usage-guard --marketplace rbartoli/agent-usage-guard

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsdrives Claude, writes the prompt box, reads env vars, reads the prompt box, persists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, every prompt, subagent spawns, every tool call
Hooks
session.start, classic.SessionStart, classic.UserPromptSubmit, classic.PostToolUse, classic.PostCompact, classic.Stop, classic.SubagentStart, classic.StopFailure, session.end, session.measure, turn.step, turn.complete, prompt.submit, agent.spawn, tool.call, command.run {command=agent-guard}
API calls
$.clock.after, $.clock.now, $.command.register, $.env.get, $.prompt.fill, $.prompt.read, $.prompt.submit, $.session.compact, $.session.id, $.session.usage, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.ask, $.ui.log, $.ui.status
Validation on 2.1.302
Passed
Scanned revision
c48d9825e4bc
Marketplace passed
agent-usage-guard

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

Badge for your README

Reach badge for agent-usage-guard Validation badge for agent-usage-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/rbartoli--agent-usage-guard--agent-usage-guard-reach.svg)](https://mods.aidojo.si/mods/rbartoli--agent-usage-guard--agent-usage-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/rbartoli--agent-usage-guard--agent-usage-guard-validates.svg)](https://mods.aidojo.si/mods/rbartoli--agent-usage-guard--agent-usage-guard/)