headroom

Reviewed at commit 67c808a

The 5-hour and weekly limits above the prompt with reset countdowns and a run-out forecast drawn on a time axis, alerts at 80 and 95% and on reset, a session…

Made by
vihrea1337
What we checked

Shows your rate-limit windows, a burn-rate forecast, session cost and context fill in a band above the prompt and a pane, with toasts at 80 and 95 percent and a system notification when a hot window resets. It keeps the first 70 characters of each prompt for the clickable prompt log. It stores a week of usage numbers and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start, session.end, classic.UserPromptSubmit (reads permission_mode only), classic.CwdChanged (toast with the new folder), turn.step (model and effort), session.measure, session.compact, session.append (finds the prompt row id for scrolling), turn.start (keeps the first 70 characters of the prompt text in plugin state for the log), turn.complete, command.run for /headroom (open, close, style, budget, reset), ui.render for AbovePrompt and Pane. Runtime calls: $.session.usage, $.store.get and set (only the per-day usage totals under the key week), $.clock, $.ui.toast, $.ui.notify, $.ui.open, $.ui.close, $.ui.scroll, $.ui.status, $.command.register. Prompt snippets live in plugin state only (last 50 turns) and are not written to the store or any file. No $.http, $.process, $.fs or $.model calls, no eval, no encoded code. register.tsx was read in full; core.ts is pure logic and was read in part and checked by targeted search for $ calls, network, eval and process (none). Not reviewed: the claude-code runtime.

What it uses
  • Reads your prompts: yes
  • 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
Screenshot of headroom

Headroom: rate-limit countdowns and a burn-rate forecast for Claude Code. When each window resets, whether it lasts at this pace, alerts at 80/95% and on reset, a session budget, a week of history and a clickable prompt log

Made this mod? Add a badge to your README

modsforClaude badge for headroom

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

← All mods