cache-meter
Reviewed
at commit 75b734c
New version, not yet reviewed
Gauges how long the conversation's prompt cache stays warm, its hit ratio and misses, and what the next message re-caches once it has gone cold
0 upvotes
Log in to upvote or save- Made by
- HolyGrail
- Pinned commit
-
75b734ce6a56480f896b1aae8f7e09050975a209 - What we checked
-
Draws a small gauge above the prompt showing how long the conversation's prompt cache stays warm, its hit rate and misses, and how many tokens the next message would re-cache once it has gone cold. It only reads token counts from responses and a few cache-related settings, and stores nothing. No network calls, no files, no programs.
Review details
Static review of the source at the pinned commit; not run. Hooks: session.start, session.end, session.measure, turn.step, classic.PostModelSwitch, classic.SessionStart (clear, compact, resume, fork) and ui.render (AbovePrompt). Runtime calls: $.session.usage (rate limits), $.session.authorize (only the auth kind is compared with 'bearer' to estimate the cache lifetime), $.env.get for DISABLE_PROMPT_CACHING, FORCE_PROMPT_CACHING_5M, CLAUDE_CODE_PROMPT_CACHE_TTL and ENABLE_PROMPT_CACHING_1H, $.settings.read (only the promptCacheTtl value is used), $.agent.list (to tell forks from other subagents), $.clock and $.ui.invalidate/resolve. The turn.step handler only reads the usage object of the response and passes the response through unchanged. State is kept in memory only; a timer redraws the gauge each minute or second. No fs, process, network, model or store calls. The SVG bar is generated locally from numbers.
- 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: no
- 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/cache-meter/)