Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Adminhead Verified Orgv0.2.1In 1 marketplace
A band above the prompt with context fill by category and rate-limit windows coloured by pace, a toast when a window turns amber or red or resets, plus session cost, cache hit rate, compactions and effort.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Limit toastsalerts
Toast once when a window first turns amber or red, and when a window that had alerted resets.
booleandefault true
Enable the modenabled
Off removes the usage band above the prompt and its limit toasts. Takes effect after a reload or in a new session.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it makes none of the file, program, network, tool or prompt calls we list.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Red above projected pace (%)critPace
Colour a window red when its current rate projects past this percentage by its reset. Changes colours and toasts only; the run-out marker still means a projection past 100.
number1–200default 100
Amber at projected pace (%)warnPace
Colour a window amber when its current rate projects to at least this percentage of the window by its reset. Changes colours and toasts only. Must be below the red value, or both revert to the defaults.
number1–200default 90
Reset timeresetStyle
countdown shows the time left (↻1h29m); clock shows when the window resets (↻14:30).
One of countdown, clock
stringdefault countdown
Red at used (%), unknown pacecritPercent
For a window whose pace can't be read, colour it red at this percentage used. Changes colours and toasts only.
number1–100default 85
Amber at used (%), unknown pacewarnPercent
For a window whose pace can't be read (no reset time or length), colour it amber at this percentage used. Changes colours and toasts only. Must be below the red value, or both revert.
number1–100default 60
Session statssessionStats
Show session cost, the last response's cache hit rate, the compaction count and the effort level.
booleandefault true
Hide limits below (%)limitsThreshold
Show a rate-limit window only once it reaches this percentage or its pace turns amber or red. 0 always shows every window.
number0–100default 0
Weekly in the collapsed row at (%)weeklyThreshold
Add the weekly (and spend) window to the one-line band once it reaches this percentage or its pace turns amber or red.
number0–100default 80
A mod that draws a band above the prompt showing how full the context window is and how much of each rate-limit window you've used.
/plugin install usage-band --marketplace Adminhead/claude-plugins
baseline installs it for you.
Collapsed (the default, one row):
ctx █████░░░░░ 30% · 108k free · $1.23 · cache 94% · ◑ high 5h ━━━━──── 60%▲ ↻2h30m wk ━━━━━━── 85% ↻1d +
SessionUsage.cost.usd), the last response's prompt-cache hit rate (cache_read / (input + cache_read + cache_creation) from breakdown.apiUsage) and the main loop's effort level (read from turn.step).limitsThreshold hides it. The weekly (wk) and spend windows join it once they reach the weekly threshold or their pace turns amber or red.Expanded (+, ignored while a turn runs):
┊)5h, weekly, spend and any other window kind the engine reportssession row with cost, cache hit rate, how many times the main conversation has been compacted (compacted ×2) and the effort levelEach window is graded by how fast it's being used, not by fixed percentages. The used percentage is projected linearly to the window's reset (5h = 5 hours, weekly = 7 days):
| Projection at reset | Colour |
|---|---|
| under 90%, or under 10% used | green |
| 90% to 100% | amber |
| over 100% (it would run out before reset) | red, with ▲ after the percentage |
A window at 100% or more is red. A window whose pace can't be read (no reset time, or a spend_limit with no known length) falls back to amber at 60% and red at 85%. A spend_limit can go past 100%: the bar stays full and the real percentage is printed.
A toast appears when a window first turns amber, again if it turns red, and once more when a window that had alerted resets ("5h limit reset (it reached 92%)"). The red toast says when the window would run out at the current rate. A window that dips and climbs back before its reset doesn't toast again. The de-dup is kept in the plugin's $.store under alerts, which every session shares, so one window alerts once however many sessions are open.
The band refreshes on each usage measurement and repaints every 60 seconds, so an idle countdown and the pace colours stay up to date.
Set these in /config (the plugin's userConfig):
| Option | Default | Effect |
|---|---|---|
limitsThreshold | 0 | Hide-until-threshold: show a window only once it reaches this percentage or its pace turns amber or red. 0 always shows every window. |
weeklyThreshold | 80 | Percentage at which the weekly and spend windows join the collapsed row (they also join on an amber or red pace). |
resetStyle | countdown | countdown shows the time left (↻1h29m). clock shows when the window resets in local time (↻14:30, ↻Thu 09:00). |
alerts | true | Turns the limit toasts on or off. |
sessionStats | true | Shows cost, cache hit rate, compaction count and effort. |
enabled | true | Off removes the band and its toasts. Only an exact false turns it off; takes effect after a reload or in a new session. |
warnPace | 90 | Projected end-of-window percentage (1 to 200) at which a window turns amber. |
critPace | 100 | Projected percentage (1 to 200) above which a window turns red. The ▲ still means a projection past 100. If warnPace is not below critPace, both revert to the defaults. |
warnPercent | 60 | Percentage used (1 to 100) at which a window whose pace can't be read turns amber. |
critPercent | 85 | Percentage used (1 to 100) at which such a window turns red. If warnPercent is not below critPercent, both revert to the defaults. |
The mods API doesn't give mods the real prompt-cache expiry, per-model weekly windows, the session name or the account plan, so the band doesn't show them. The compaction count and effort badge start over on /clear and when the plugin reloads.
The pace projection (amber at a projected 90%, red past 100%, quiet under 10% used), the toasts and the hide-until-threshold option are ideas from claude-hud (MIT). They are reimplemented here on the mods API; no claude-hud code is included.
npx claudepluginhub adminhead/claude-plugins --plugin usage-bandBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.