Developer releases agent-usage-guard, a Claude Code mod to cap token spend
A developer has published agent-usage-guard, a modification for Claude Code that intervenes before prompts, tool calls or subagent fan-outs run, aiming to prevent a five-hour usage window from being exhausted in minutes. The tool reads Claude Code's own 5-hour and weekly usage percentages, prompts the user for approval when possible, and refuses actions when no one is available to answer. It runs entirely locally, storing only counts and coarse buckets rather than prompt or output content.