rate-limit-guard
by Melodic Software · ★ 21 · updated yesterday
Shared rate-limit guard for loop lanes and Claude: a hooks module writes the subscription rate-limit windows to a fixed machine-scope file and tells Claude where they stand at boundaries, a StopFailure hook records rate-limit stops reactively, and a reader contract fixes how consuming sessions pause and resume.
Install
/plugin marketplace add melodic-software/claude-code-plugins/plugin install rate-limit-guard@melodic-softwareThen 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.endsession.compactsession.measureturn.stepprompt.submitturn.startturn.completetool.callcommand.runui.render- API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.read$.fs.stat$.process.run$.prompt.read$.prompt.suggest$.session.id$.session.model$.session.surfaces$.session.turns$.session.usage$.tool.register$.ui.invalidate$.ui.log$.ui.resolve- Draws
AbovePrompt- Can see
compactionevery promptevery tool call- Reach
- level 2 of 3 other: $.prompt.readruns processesdrives Claudewrites the prompt boxreads filesreads env varsdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/melodic-software/claude-code-plugins
- Path in repo
plugins/rate-limit-guard- Author
- Melodic Software @melodic-software
- 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.
More from melodic-software/claude-code-plugins
context-guard
melodic-software/claude-code-plugins
Per-session context-window observability. A mod writes each session's context-window figures to a snapshot file and tells Claude its context zone (smart, acceptable or dumb, from bands in zones.json) at each crossing, approach and compaction, noting a zone is not a decay signal; the operator gets the continuation menu. It draws a band row and answers a status tool. Optional blocking mode gates...