I’ve struggled with spending way too much of my subscription usage (and extra usage) sporadically. I like to keep a few long-running sessions going with eventually-large context windows that I come back to periodically. I know that’s not the cheapest way to operate but in some cases it’s what works best for me for some of my coordinator sessions (yes I use all the proper methods in most sessions). The key thing that bites you when doing that is minding the 1-hour cache expiration on main threads and I was struggling to stay on top of either keeping my follow-ups within an hour or waiting until I had time to stay plugged in after the hour passed. So I built a hooks setup a few days ago to warn me when I’m about to re-write an expensive cache and reject my message until I resend it with a keyword like WARMOK. This has helped me get a lot more deliberate about when I re-write a big cache and curtailed most of my accidental usage spikes. I just cleaned it up and pushed it up to GitHub if anyone else could use it: https://github.com/JarvusInnovations/claude-rewarm-guard Install with just: npx claude-rewarm-guard install You can run this command before installing anything to see how much you’ve wasted already: npx claude-rewarm-guard report submitted by /u/themightychris
Originally posted by u/themightychris on r/ClaudeCode
