cache-clock

cache-clock is a Claude Code mod by ZH-L1N that a CACHE band above the prompt: how long the prompt cache stays warm, how much of the last request it served, and what rewriting it would cost (estimate); a Compact button and /cache-clock.

Updated 2026-11-17

What is cache-clock?

cache-clock is a Claude Code mod by ZH-L1N that a CACHE band above the prompt: how long the prompt cache stays warm, how much of the last request it served, and what rewriting it would cost (estimate); a Compact button and /cache-clock. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
AuthorZH-L1N
RepositoryZH-L1N/agent-window-mods
Popularityno public popularity data yet
CategoryCost & usage
SecurityLow risk (96/100)
Rank#9,340 of 9,397 Claude Code mods; #1,874 in Cost & usage
Last commit2026-11-17
Hooks6 events
Seescompaction
Draws onAbovePrompt

Is cache-clock safe to install?

cache-clock scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 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
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.session.compactdrives Claude
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.resolvedraws interface
$.ui.toastdraws 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/ZH-L1N/agent-window-mods
    claude plugin validate ./agent-window-mods/cache-clock
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add ZH-L1N/agent-window-mods && claude plugin install cache-clock@zehui-mods

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/ZH-L1N/agent-window-mods/tree/main/cache-clock. Run claude plugin validate on it first and show me what it can access before you enable it.

More from ZH-L1N/agent-window-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • agents: Live subagents, background shells, Monitor watches and cron timers: an AGENTS band above the prompt (main model, each ru (Review before installing)
  • blast-radius: Holds risky shell commands (rm -rf, git reset --hard, git clean, force push, migrations) and shows what they would chang (Review before installing)
  • breathe: Guided breathing exercises above the prompt while Claude works: coherent, box, 4-7-8 and the physiological sigh, sevente (Low risk)
  • filetree: A small tree of the working folder in a Files pane: folders open and close, git marks changed files, and the files read (Low risk)
  • goal-meter: A GOAL band above the prompt that reads Claude's own task list: the goal's name, a 6-cell bar of tasks done, percent, ti (Low risk)
  • handoff: A HANDOFF band above the prompt: the context bar stacked by /context category, fill against the compaction point, and at (Low risk)
  • here: A HERE band above the prompt that says where the session is, with no model call by default (option rewrite=haiku makes o (Low risk)
  • images: Each pasted [Image #n] shown as a thumbnail in an IMAGES band above the prompt: before you send, as soon as the tag appe (High risk)