claude-mods
Claude Code mods by Eric Cologni.
token-weather-usage

Stop hitting your Claude limit by surprise. One band above the prompt shows how big your context is, your 5-hour and weekly limits against the clock (with a warning when the week's pace would run out before the reset), whether the prompt cache is still warm (and when a /model switch is about to rewrite it), what the session and the last prompt cost, which agents are running, and, when Claude asks for your go-ahead, one click to give it.

Five situations
All clear. Small context, both limits behind the clock, the cache warm for almost an hour.

Agents at work. Three subagents running (hover their pill for their tasks); the 5-hour limit runs a little ahead of time, so its gauge turns yellow.

Cache about to lapse. Seven minutes left: send the next message now, or the whole 604k context gets written again at full price.

Slow down. Context near full, the 5-hour limit far ahead of time, the cache expired: /compact before going on.

Weekly limit alone. On a plan without a 5-hour window, the band says what a day may use and where the week ends at its pace.

Switching models mid-thread
A prompt cache belongs to one model. Switch with /model in the middle of a long thread, and the next message reads nothing from the cache: it writes the whole context again, at the new model's price. On a 400k context that is several dollars for one message.
The cache pill says so as soon as you switch, before you send anything:

- Amber "model changed", with what the next message would write again and its cost at the new model's price.
- Hover for the way back: return to the model before while its cache is warm, and it serves again. Going on with the new model pays the rewrite once; the pill then counts down the new cache.
- The cheap moment to switch is a cut: a new thread, or right after
/compact, when the context is small.
What each pill says
| Pill | What it shows | Warns you when |
|---|
| Context | Tokens in the context, the last 5 prompts as bars | The weather turns from Clear to "Compact soon" |
| 5h / 7d | Share of each limit used, time left | Yellow when you run ahead of the clock, red when far ahead or past 90% |
| Day budget | On a plan with the weekly limit alone: what a day may use until the reset | Never: it just counts |
| Run-out | When this week's pace would hit the 7-day limit | Amber "⚠ out Sun night", red within a day |
| Cache | Minutes before the prompt cache lapses | Yellow under 10 min, red once expired, with what it will cost |
| Cost | What the session cost, and the last prompt | Never: it just counts |
| Agents | Subagents running and run so far | Never: it just counts |
| GO | The approvals Claude's last answer asks for, with an OK to give them all | Shows only when there are some |
In the app, hover any pill for its details.
Context
- A weather icon from Clear to "Compact soon", then the tokens in the context.
- One bar per prompt for the last 5, as tall as the tokens it added; the current one in color.
- The last prompt's change ("▲ +6.3k").
- Hover: the weather and the share of the window.
5h / 7d
- The share of your account's limits already used, then the time left.
- The hatched part is the gap with the time elapsed: grey after the bar while you have margin, in the bar's color when you use faster than time passes.

More detail
- Green while usage does not run ahead of time, yellow beyond, red when more than 15 points ahead or past 90%.
- The 5-hour reset time (machine's time zone) is in the pill's hover card in the app, left out in the terminal.
- A window that already reset is hidden until the next reading.
- The latest reading is shared across the sessions open on the machine.
Weekly limit alone
On a plan without a 5-hour window, the band uses the room for the week. The mod tells the plan by the limits the account reports: with a 5-hour limit the band stays as above.
