Show HN: agent-usage-guard – a Claude Code mod to protect your usage window
Posted by zzyyxx332211 1 hour ago
Comments
Comment by zzyyxx332211 1 hour ago
The first I built, based on hooks (run for 75 days), the biggest burst fell from 365 agent spawned to 27, and requests over 500k tokens of context from 14.5% to 0.6%. Lockouts still went up, because lots of parallel main sessions use up the window too. The strength is that it counts agents across every session on the machine.
I built https://github.com/rbartoli/agent-usage-guard, MIT-licensed, makes no network calls, needs Claude Code 2.1.287 or later.
I have also a post on this: https://rblab.com/what-stops-claude-code-burning-your-usage-...
Comment by donfuzius 58 minutes ago
Comment by zzyyxx332211 4 minutes ago
Comment by Robin_Message 1 hour ago
Comment by randomblock1 1 hour ago
Comment by bhu8 1 hour ago
Comment by kinduff 1 hour ago
Comment by zzyyxx332211 1 hour ago
Comment by RohaanXD 1 hour ago