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.

Made by
Vedant Andhale
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
Screenshot of cache-clock (VedantAndhale)
Made this mod? Add a badge to your README

modsforClaude badge for cache-clock (VedantAndhale)

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

← All mods