usage-band (JetsonChan)

Reviewed at commit f3a3c3f

A band above the prompt showing your 5-hour and 7-day limits, context window and prompt-cache hit rate, styled for the terminal and the desktop app

Made by
Jetson Chan
What we checked

Draws a band above the prompt with your 5-hour and 7-day limits, context window use and prompt-cache hit rate, in the terminal and the desktop app. It reads only Claude Code's own usage figures and two environment variables, makes no network calls, runs no programs and stores only whether the welcome toast was shown.

Review details

Static review of the source at the pinned commit; not run. Registers session.start, session.measure, turn.complete, command.run (/usage-band-preview) and ui.render (AbovePrompt and a preview CommandOutput) handlers. Runtime calls: $.env.get for USAGE_BAND_ICONS and TERM_PROGRAM (picks icon set), $.session.usage, $.clock.now and $.clock.every (60 s tick, 200 ms animation frame in the terminal), $.store.get/set for a one-time welcomed flag, $.ui.toast, $.command.register, and in-memory atoms for state. The desktop band is a generated SVG string built from numbers only, rendered as an image through the Svg component with text escaped. No fs, process, http, mcp or model calls. The single import ../types is a type-only declaration file that is in the bundle. No npm dependencies.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for usage-band (JetsonChan)

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/usage-band-jetsonchan.svg)](https://modsforclaude.com/mods/usage-band-jetsonchan/)

← All mods