Claude Code mod: context in tokens, 5-hour and weekly limits vs. the clock, prompt cache countdown, session cost and running agents, in one band above the prompt.
JavaScript
19
32 commits
updated Oct 18, 2026
Claude Code mods by Eric Cologni.
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, what the session and the last prompt cost, and which agents are running.

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.

| 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% |
| 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 |
In the app, hover any pill for its details.

At this week's pace (+62% in 3d23h), the 7-day limit runs out Sun night around 00:42, before the reset on Mon 19/10.
/compact up to 300k, a new thread beyond./cost totals it (cents dropped from $100).In the desktop app each block is a tinted pill with its icon. A pill never shrinks; when the window is too narrow, the pills wrap onto a second line. In the terminal the same blocks sit on one line, split by a thin rule:
☂ 634k ▃▄▂█▆ ▲ +6.3k │ 5h ━━━━╍─ 74% · 24 min │ 7d ━━━━── 65% · 2d20h │ cache 52 min │ ≈ $41.07 (+$0.58 · +1.5% 5h) │ 2 agents
When the line does not fit the terminal, the bars, details and cost drop out, leaving labels and percentages.
Labels are in English, French or Russian. By default (auto) the mod follows LC_ALL, LC_MESSAGES or LANG and falls back to English. The desktop app often sets none of them: pick en, fr or ru in the plugin's Language option in /config.
/plugin marketplace add augiefra/claude-mods
/plugin install token-weather-usage@augiefra-mods
/reload-plugins
If the line does not show up, restart Claude Code. A mod is code that runs inside Claude Code with the same access as Claude Code: read it before installing. This one is a single file, token-weather-usage.mjs.
claude plugin validate ./plugins/token-weather-usage
claude plugin test ./plugins/token-weather-usage
token-weather-usage collects, sends and retains no personal data. It only reads the usage figures Claude Code provides (context fill, 5-hour and 7-day limits, session cost, each request's cache token counts), the list of the session's subagents and the names of the tools their responses ask for (never the arguments; shown in the agents card, kept in memory only and never stored), the locale variables above and the prompt-cache switches (DISABLE_PROMPT_CACHING, FORCE_PROMPT_CACHING_5M, CLAUDE_CODE_PROMPT_CACHE_TTL, ENABLE_PROMPT_CACHING_1H). It reads no file and hooks no tool call. It keeps in the plugin's local storage, on the machine, the latest limits reading, the 7-day share used every half hour over the last two days, and, per session, recent context readings, the last request's cache figures, what the cache saved in the session, the last prompt's cost and each subagent's model, effort, token counts and description (deleted after 8 idle days). No network requests.
What its hooks do. Every hook only reads and passes the event on unchanged (return next(e)): the mod never changes, delays or refuses anything. session.start and session.end start and stop its timers; turn.step reads each model response's token counts and the names of the tools it asks for; turn.complete reads the session's usage after each turn; session.measure reads new limits and cost readings; session.compact notes a compaction; ui.render draws the band above the prompt.
Apache-2.0, see LICENSE and NOTICE.
FacilAbo: 230+ calendars (public and school holidays, tax deadlines, sport) to subscribe to in one tap, on iPhone and Android. EuroVolt, your Linky electricity use in euros, is coming soon on iPhone.
Claude Code mod: context in tokens, 5-hour and weekly limits vs. the clock, prompt cache countdown, session cost and running agents, in one band above the prompt.
JavaScript
19
32 commits
updated Oct 18, 2026
Claude Code mods by Eric Cologni.
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, what the session and the last prompt cost, and which agents are running.

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.

| 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% |
| 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 |
In the app, hover any pill for its details.

At this week's pace (+62% in 3d23h), the 7-day limit runs out Sun night around 00:42, before the reset on Mon 19/10.
/compact up to 300k, a new thread beyond./cost totals it (cents dropped from $100).In the desktop app each block is a tinted pill with its icon. A pill never shrinks; when the window is too narrow, the pills wrap onto a second line. In the terminal the same blocks sit on one line, split by a thin rule:
☂ 634k ▃▄▂█▆ ▲ +6.3k │ 5h ━━━━╍─ 74% · 24 min │ 7d ━━━━── 65% · 2d20h │ cache 52 min │ ≈ $41.07 (+$0.58 · +1.5% 5h) │ 2 agents
When the line does not fit the terminal, the bars, details and cost drop out, leaving labels and percentages.
Labels are in English, French or Russian. By default (auto) the mod follows LC_ALL, LC_MESSAGES or LANG and falls back to English. The desktop app often sets none of them: pick en, fr or ru in the plugin's Language option in /config.
/plugin marketplace add augiefra/claude-mods
/plugin install token-weather-usage@augiefra-mods
/reload-plugins
If the line does not show up, restart Claude Code. A mod is code that runs inside Claude Code with the same access as Claude Code: read it before installing. This one is a single file, token-weather-usage.mjs.
claude plugin validate ./plugins/token-weather-usage
claude plugin test ./plugins/token-weather-usage
token-weather-usage collects, sends and retains no personal data. It only reads the usage figures Claude Code provides (context fill, 5-hour and 7-day limits, session cost, each request's cache token counts), the list of the session's subagents and the names of the tools their responses ask for (never the arguments; shown in the agents card, kept in memory only and never stored), the locale variables above and the prompt-cache switches (DISABLE_PROMPT_CACHING, FORCE_PROMPT_CACHING_5M, CLAUDE_CODE_PROMPT_CACHE_TTL, ENABLE_PROMPT_CACHING_1H). It reads no file and hooks no tool call. It keeps in the plugin's local storage, on the machine, the latest limits reading, the 7-day share used every half hour over the last two days, and, per session, recent context readings, the last request's cache figures, what the cache saved in the session, the last prompt's cost and each subagent's model, effort, token counts and description (deleted after 8 idle days). No network requests.
What its hooks do. Every hook only reads and passes the event on unchanged (return next(e)): the mod never changes, delays or refuses anything. session.start and session.end start and stop its timers; turn.step reads each model response's token counts and the names of the tools it asks for; turn.complete reads the session's usage after each turn; session.measure reads new limits and cost readings; session.compact notes a compaction; ui.render draws the band above the prompt.
Apache-2.0, see LICENSE and NOTICE.
FacilAbo: 230+ calendars (public and school holidays, tax deadlines, sport) to subscribe to in one tap, on iPhone and Android. EuroVolt, your Linky electricity use in euros, is coming soon on iPhone.