cache-clock

cache-clock is a Claude Code mod by ray-amjad that a one-line band above the prompt: context used, and a countdown until the prompt cache goes cold.

Updated 2026-11-24

What is cache-clock?

cache-clock is a Claude Code mod by ray-amjad that a one-line band above the prompt: context used, and a countdown until the prompt cache goes cold. It is listed under Cost & usage and has 125 GitHub stars.

TypeClaude code mod
Authorray-amjad
Repositoryray-amjad/claude-code-mods
Popularity125 GitHub stars
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#260 of 9,397 Claude Code mods; #38 in Cost & usage
LicenseMIT
Last commit2026-11-24
Stars this week+4
Hooks10 events
Seesclassic hooks, every prompt
Draws onAbovePrompt

Is cache-clock safe to install?

cache-clock scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 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 processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.audio.playplays audio
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.process.runruns processes
$.prompt.submitdrives Claude
$.session.id
$.session.root
$.session.usage
$.ui.invalidatedraws interface
$.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/ray-amjad/claude-code-mods
    claude plugin validate ./claude-code-mods/plugins/cache-clock
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add ray-amjad/claude-code-mods && claude plugin install cache-clock@claude-code-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/ray-amjad/claude-code-mods/tree/main/plugins/cache-clock. Run claude plugin validate on it first and show me what it can access before you enable it.

More from ray-amjad/claude-code-mods

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

  • chief-of-staff-board: A side pane for a coordinator session: what is waiting on you, ready for review, in flight and handled, drawn from a JSO (Review before installing)
  • decision-tree: When Claude ends a reply with a question, explains the choice in a side pane and lets you explore any option, or your ow (Review before installing)
  • diagram-pane: A side pane that pins every diagram Claude draws, keeps a live map of the work, and lets you go into boxes and change th (Review before installing)
  • dream-pass: A dreaming pass over Claude's memory folder: merges duplicates, rewrites stale entries, removes dead ones and tidies MEM (Review before installing)
  • jev-skill-suggestion: Scores every skill against your prompt with TypeSafe Jev as you type; observe, block or steer skill loading (Review before installing)
  • memory-fork: After each turn Haiku decides whether memory needs a change; a tool-less fork of the session drafts it and the mod write (High risk)
  • prompt-bouncer: Bounces vague prompts before Claude sees them, and suggests the project's own term (Review before installing)
  • secret-box: Claude can use a secret without seeing it: a masked box saves keys to .env and gives Claude a placeholder, every key a t (High risk)