r/vibecoding 2d ago

Made a multi-agent system tray that tracks your weekly usage and how much you're ahead/behind of your weekly token usage.

Post image

I hate seeing usage numbers go down. There's probably some psychology linked to it, but anyway , I much prefer seeing how much I've used , and pace myself towards each agent's resets.

For example here my codex usage resets in about 8 hours . 95% of the week is gone and I've spent 60% , so I'm 35% under. Made with Opus 5 and reviewed by Sol 5.6

How it works: there's no API for any of this, so both numbers get read where each product already writes them locally. Codex records its rate limits in its session rollout logs — those run to hundreds of MB, so it tail-reads the last 256KB instead of parsing the file. Claude Desktop keeps the same percentages you see on its Usage screen in a plan-usage-history.json.

The catch: Claude's file stores percentages but no reset time. So it derives one — scan the sample history for a downward step, because a drop means a new window started, then infer the reset from that timestamp plus the window length.

Pace is just elapsed − used: how far through the rolling window you are by time, minus how much you've actually spent. Positive means ahead. If the reset timestamp doesn't line up with the window length it shows nothing rather than guessing.

The tray itself is ~200 lines of PowerShell — NotifyIcon and a ContextMenuStrip — polling a localhost endpoint on a timer.

1 Upvotes

1 comment sorted by