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 with warnings.

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 files, reads env vars, reads the transcript, reads the prompt box, reads mod state, persists state, draws

Validation

Passed with warnings

Listed under Context and usage meters for Claude Code.

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.SubagentStart, classic.StopFailure, session.end, session.measure, turn.step, turn.complete, prompt.submit, agent.spawn, tool.call, ui.render {component=AbovePrompt}, command.run {command=agent-guard}
API calls
$.clock.after, $.clock.now, $.command.register, $.env.get, $.fs.read, $.prompt.fill, $.prompt.read, $.prompt.submit, $.session.compact, $.session.id, $.session.messages, $.session.usage, $.state.get, $.state.set, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.ask, $.ui.log, $.ui.resolve, $.ui.status
Validation
Passed with warnings
Scanned revision
02594c2620be
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. What a mod can access and 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/)