cache-clock

cache-clock is a Claude Code mod by xyzbuilds that shows how long Claude Code's prompt cache stays warm, how many tokens your next message re-sends, and what it costs now versus after the cache expires.

Updated 2026-10-06

What is cache-clock?

cache-clock is a Claude Code mod by xyzbuilds that shows how long Claude Code's prompt cache stays warm, how many tokens your next message re-sends, and what it costs now versus after the cache expires. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authorxyzbuilds
Repositoryxyzbuilds/cache-clock
Popularityno public popularity data yet
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#5,169 of 5,272 Claude Code mods; #1,018 in Cost & usage
LicenseMIT
Last commit2026-10-06
Hooks7 events
Seesclassic hooks
Draws onPromptHint, Pane

Is cache-clock safe to install?

cache-clock scores 76/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.http.fetchnetwork requests
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface

How do I install cache-clock?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/xyzbuilds/cache-clock
    claude plugin validate ./cache-clock/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/xyzbuilds/cache-clock && claude --plugin-dir ./cache-clock/.

Or ask Claude to set it up

Paste this into Claude Code and it installs cache-clock for you:

Install the "cache-clock" Claude Code mod from https://github.com/xyzbuilds/cache-clock. Run claude plugin validate on it first and show me what it can access before you enable it.