claudemods

All Claude Code modsaliaksei-loi/usage-guard

usage-guard

A Claude Code mod in aliaksei-loi/usage-guard

Winds sessions and subagents down before the 5-hour or 7-day subscription limit: one wind-down note per band, a handoff file, spawn and loop denies near the limit, optional resume after the reset

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

Install hint

/plugin install usage-guard --marketplace aliaksei-loi/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 runsother: $.state.get, other: $.state.set, writes files, drives Claude, reads files, reads env vars, reads the transcript, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
every tool call, subagent spawns, classic hooks
Hooks
session.start, session.measure, tool.call, agent.spawn, turn.complete, classic.StopFailure, command.run {command=usage-guard}, ui.render {component=AbovePrompt}
API calls
$.agent.list, $.clock.after, $.clock.every, $.clock.now, $.command.register, $.env.get, $.fs.exists, $.fs.write, $.prompt.submit, $.session.append, $.session.id, $.session.messages, $.session.root, $.session.usage, $.state.get, $.state.set, $.ui.log, $.ui.resolve, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
15222c181810
Marketplace passed
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 usage-guard Validation badge for 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/aliaksei-loi--usage-guard--usage-guard-reach.svg)](https://mods.aidojo.si/mods/aliaksei-loi--usage-guard--usage-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/aliaksei-loi--usage-guard--usage-guard-validates.svg)](https://mods.aidojo.si/mods/aliaksei-loi--usage-guard--usage-guard/)