cache-clock (VedantAndhale)
Reviewed
at commit b28b1bc
Shows how long the prompt cache stays warm, and when it expires, exactly how many tokens your next message will re-send uncached. No tokens spent.
0 upvotes
Log in to upvote or save- Made by
- Vedant Andhale
- Pinned commit
-
b28b1bc53720a54144324875cc3e12c8944002af - What we checked
-
Shows a countdown in the status line for how long the prompt cache stays warm, and a toast shortly before it expires and when it has. It only reads the token counts Claude Code reports for each response, spends no tokens and makes no network calls. It stores the learned cache lifetime (5 minutes or 1 hour).
Review details
Static review of the source at the pinned commit; not run. Hooks: session.start (loads the stored ttlMs from $.store, resets the clock) and turn.step (main-thread steps only; reads step.usage token counts, restarts the clock, stores ttlMs when a longer gap proves 1 hour or 5 minutes). A 5 second $.clock.every ticker updates $.ui.status and shows $.ui.toast warnings and an expiry notice only when the lifetime is confirmed and the context is at least 20000 tokens; $.ui.log notes a miss. It reads no prompt text, tool calls, files or environment variables and makes no calls to the model or network. Module state is in memory and resets on reload.
- 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/cache-clock-vedantandhale/)