Urgent.News

What's breaking now, across thousands of outlets.

AI

A straight line says you'll hit your weekly Claude limit at 4 a.m. on a Friday

Claude Code on a subscription has two limits: a 5-hour session and a weekly cap. The session one is easy to feel. The weekly one sneaks up on you: no single session tells you where the week is going, and by the time /usage says 90% it's Wednesday and you still have two days of work left. I wanted the answer without asking for it, so I built a small Windows tray app, Claude Code Tray, that draws…

Claude Code, a subscription service, has two limits: a 5-hour session and a weekly cap. The weekly limit tends to sneak up on users, with no single session alerting them to the nearing end of the week. To address this issue, the author created a Windows tray app named Claude Code Tray.

The app projects the usage as an icon and turns it red when the current pace would reach 100% before the weekly window resets. After experimenting with different methods to forecast the warning time, the author discovered that a straight line forecast would inaccurately trigger a red warning after a single heavy afternoon.

Instead, the app compares the user's usage with an even, constant burn rate over the remaining days in the week. This method calculates the projected time to 100% by multiplying the elapsed time by the percentage of usage remaining, divided by the usage so far. This approach requires no history and provides accurate projections from the first reading.

To create a more realistic forecast, the app also analyzes the user's typical activity patterns, spacing out the remaining quota along their usual working hours. This way, the warning time is closer to when the user would actually run out of Claude Code usage.

The app employs a different approach for the 5-hour session limit, using a rolling history and least-squares slope to react quickly to changes in usage. If the projection suggests running out of the limit, the app offers a suggestion on when to pause and resume work without exceeding the limit. The Claude Code Tray is a free, open-source application only compatible with Windows, allowing users to monitor and manage their Claude Code usage effectively.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Phantom AI — A Ghost Living Inside Your Machine

This is a submission for the Hacktoberfest Open-Source AI Challenge — Week 4: Ghost in the Machine . 🕯️ What I Built What if a ghost lived inside your computer—not as a character in a game, but as an…

  • Phantom AI is a ghost-like AI chatbot for computers
  • Users interact with ghostly personalities via terminal interface
  • Built with open-weight model Ollama and Qwen3 for responses

More from Tuesday 27 October →