ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
GitHub repositories · by Vosssa

usage-band

A Claude Code plugin showing four rings above the prompt: context fill, 5-hour usage limit, weekly limit and prompt-cache warmth, with a large-context reminder row suggesting Clear/Compact actions.

Vosssa@Vosssa

Vosssa/claude-usage-band/tree/main/plugins/usage-band

Original post image1
Translated

About this mod

usage-band adds four always-visible rings above the Claude Code prompt: Context (e.g. 92k / 1M), 5h usage limit with reset time, 7d weekly limit with reset time, and Cache warmth (Warm with remaining TTL, or Cold). Rings shift green → amber → red as limits approach. Above 400k tokens of context a reminder row appears with one-click Clear, Compact and Later actions, choosing the cheapest move based on cache state (cold cache favors Clear, near-expiry or warm cache favors Compact). The same four items appear in terminal Claude Code as text rings (○ ◔ ◑ ◕ ●). It reports ~0 always-on tokens: it adds nothing to the prompt, never calls the model, and receives usage numbers pushed by Claude Code after each response, running only a local once-a-minute timer for countdowns. The cache timer is validated against real API cache hit/miss counts, the TTL is learned from observed hits or misses, and state persists across restarts with limits shared across projects. The 5h and 7d rings require a subscription; on an API key only Context and Cache are shown. Install via 'claude plugin marketplace add Vosssa/claude-usage-band' and 'claude plugin install usage-band@claude-usage-band --scope user'. MIT licensed.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add Vosssa/claude-usage-band
claude plugin install usage-band
Original text / README

usage-band

Your Claude Code limits, context fill and prompt-cache warmth, right above the prompt.

usage-band: context, 5h, weekly and cache rings above the Claude Code prompt

Four small rings, always in view:

| | What it shows | |---|---| | Context | How full the context window is: 92k / 1M | | 5h | Your 5-hour usage limit, and when it resets | | 7d | Your weekly limit, and when it resets | | Cache | Whether the prompt cache is Warm (and how long it has left) or Cold |

Rings go green → amber → red as you approach a limit.

The big-context reminder

Above 400k tokens of context, a reminder row appears with one-click actions. It knows the state of the cache and suggests the cheapest move:

usage-band reminder row with Clear, Compact and Later buttons

| Situation | Message | Suggested | |---|---|---| | Cache is cold | Cache cold: next message re-reads 452k. Clear is free. | Clear | | Cache expires within 10 min | Cache expires in 6m: compact now while it's cheap. | Compact | | Cache is warm | 452k in context: each turn re-sends all of it. | Compact |

Later hides the row until the context grows by another 100k.

Why this matters: a cached prompt is read at about a tenth of the normal input price. Once the cache has expired, your next message pays to read the whole conversation again, and so does /compact. /clear costs nothing.

Terminal too

In terminal Claude Code it shows the same four items with text rings (○ ◔ ◑ ◕ ●):

usage-band in terminal Claude Code

Install

claude plugin marketplace add Vosssa/claude-usage-band
claude plugin install usage-band@claude-usage-band --scope user

Restart Claude Code. The band appears in every session, in both the desktop app and the terminal.

Update later with:

claude plugin marketplace update claude-usage-band
claude plugin update usage-band@claude-usage-band

Cost: zero tokens

claude plugin details usage-band@claude-usage-band reports Always-on: ~0 tok.

  • It adds nothing to the prompt and never calls the model.
  • The usage numbers are pushed to it by Claude Code after each response. It never polls for them.
  • It runs one local timer, once a minute, to keep the countdowns current.

Notes

  • The cache timer is checked against the real numbers. The countdown runs from your last response. After every message, the API's own cache counts show whether it was actually read from cache (✓ hit 98%) or paid in full (✗ missed 452k). An unexpected miss also shows a toast.
  • The TTL is learned. It starts by assuming 1 hour on a subscription and 5 minutes on an API key. When a message sent after a longer pause still hits, or misses, the band switches to the TTL it actually saw and remembers it.
  • It remembers between restarts. The limits and the cache timer show up right away when you open a session, not only after your first message. Limits are shared across projects: a session you switch back to picks up newer numbers within a minute.
  • The 5h and 7d rings need a subscription. On an API key, only Context and Cache are shown.

License

MIT

Other works with the same name

Similar projects