quota-guard
by catsmonster · ★ 0 · updated 4 days ago
0
Compacts before the 5-hour/weekly usage limit is hit, pauses until it resets, then resumes the task automatically.
Install
git clone https://github.com/catsmonster/claude-quota-guardclaude --plugin-dir ./claude-quota-guardThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.attachsession.measureturn.startturn.completeprompt.submitsession.compacttool.callui.rendersession.endcommand.run- API calls
$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.prompt.fill$.prompt.submit$.session.compact$.session.id$.session.surfaces$.session.usage$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.turn.abort$.ui.close$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePromptPane- Can see
every promptcompactionevery tool call- Reach
- level 2 of 3 other: $.state.getother: $.state.setdrives Claudewrites the prompt boxpersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/catsmonster/claude-quota-guard
- Path in repo
- repository root
- Source commit
ba9406cthe exact code the scan read- Author
- @catsmonster
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.