sub-meter
Reviewed
at commit 0d21f68
New version, not yet reviewed
Your subscription usage at the bottom right of Claude Code: the 5-hour and weekly windows, as a bar that takes turns.
0 upvotes
Log in to upvote or save- Made by
- Miguel Ángel Durán (midudev)
- Pinned commit
-
0d21f68f2ff8907381d235dc2d6ea905cc0369be - What we checked
-
Shows your subscription usage (5-hour and weekly windows) at the bottom right of the prompt footer, rotating between them or showing both, with a countdown to the reset. It can hide the shift+tab and esc-to-interrupt hints to make room. It reads the usage figures Claude Code already measured, makes no network calls and keeps the last reading on your machine.
Review details
Static review of the source at the pinned commit; not run. Registers session.start, session.end, classic.SessionStart (clear), session.measure and two ui.render handlers (SessionMode draws the meter next to the engine's mode labels; PromptHint rewrites the hint text to drop the cycle and interrupt hints, both on by default and configurable). Runtime calls: $.session.usage (rate limits), $.store.get/set for the last reading ('limits', 'at'), shared across sessions on the machine so a new session shows a value at once, $.clock.now/every for 8 s redraw and rotation timers, $.ui.invalidate and $.ui.resolve. Percent and reset times only; no prompts, tool calls, files, environment or processes are touched. No network, no model calls, no shell hooks, no npm dependencies. The ../types import is type-only. Failure of a store read is swallowed and keeps the old reading on screen.
- 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
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/sub-meter/)