hourglass

Reviewed at commit 867b81f

KOZMOS Hourglass: the limit oracle. For the 5-hour, weekly and spend windows: percent used, reset countdown, a burn rate learned across sessions, the time to…

Made by
KOZMOS
What we checked

Shows your 5-hour, weekly and spend limits in a sidebar with percent used, reset countdown, burn rate and a prediction of whether you run dry before the reset. It pops a toast at 80 and 95 percent and can pin a short limits line under the prompt. It keeps limit readings in its own store on your machine and sends nothing anywhere.

Review details

Static review of the source at the pinned commit; not run. Registers session.start, session.measure, turn.start, turn.complete, command.run (/hourglass) and ui.render (Pane). Polls $.session.usage() every 15 seconds and after each turn (rate limits only, no network call from the module itself), stores per-window samples (time and percent, at most 240 per window) and which thresholds were toasted under $.store key windows so the burn rate carries across sessions. Uses $.ui.toast, optional $.ui.status (userConfig statusLine, off by default), $.ui.open/close. Math is in calc.ts (pure functions). Handlers other than session.start and command.run have a catch that passes the event through; nothing is blocked or modified. No fetch, no process, no file access, no model calls. hooks/lib/probe.ts is not imported by this module and was not reviewed in detail. The ../types import is the types-only d.ts in the plugin. npm dependencies: none.

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

KOZMOS Hourglass: the limit oracle. For the 5-hour, weekly and spend windows: percent used, reset countdown, a burn rate learned across sessions, the time to 100 % and a verdict on whether the reset comes first. Toasts at 80 % and 95 %, an optional status line. /hourglass toggles the sidebar.

Made this mod? Add a badge to your README

modsforClaude badge for hourglass

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/hourglass.svg)](https://modsforclaude.com/mods/hourglass/)

← All mods