cache-clock

cache-clock is a Claude Code mod by hamzafer that a prompt-cache line under your status line, from Claude Code's own cache figures: time left while warm, hit rate and misses, and how many tokens the next message re-caches once cold.

Updated 2026-11-25

What is cache-clock?

cache-clock is a Claude Code mod by hamzafer that a prompt-cache line under your status line, from Claude Code's own cache figures: time left while warm, hit rate and misses, and how many tokens the next message re-caches once cold. It is listed under Cost & usage and has 523 GitHub stars.

TypeClaude code mod
Authorhamzafer
Repositoryhamzafer/claude-code-mods
Popularity523 GitHub stars
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#93 of 9,397 Claude Code mods; #6 in Cost & usage
LicenseMIT
Last commit2026-11-25
Stars this week+7
Hooks2 events
Seesonly the events it hooks
Draws onnothing

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; writes files or config; reads environment variables. 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 files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.session.root
$.session.version
$.settings.readreads settings

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/hamzafer/claude-code-mods
    claude plugin validate ./claude-code-mods/mods/cache-clock
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add hamzafer/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/hamzafer/claude-code-mods/tree/main/mods/cache-clock. Run claude plugin validate on it first and show me what it can access before you enable it.

More from hamzafer/claude-code-mods

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

  • agent-radar: One live line above the prompt per running subagent or background shell: its model, time, tool count and what it's doing (Review before installing)
  • akatsuki-night: An Akatsuki theme for the Claude Code Desktop app: red clouds drift past a blood moon whose eye slowly turns, crows rest (Low risk)
  • blast-radius: Holds risky Bash commands and shows what they would change before they run. (Review before installing)
  • browser-lanes: Shows if this session has a Playwright browser and who holds it. /browser clean closes leftover browsers. A subagent tha (Review before installing)
  • context-bar: Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. (Low risk)
  • glance: One line above the prompt with what needs you: next meeting, PRs, Linear issues and Slack DMs. /glance lists them all. (Review before installing)
  • gotham-night: A Gotham theme for the Claude Code Desktop app: searchlights sweep while Claude works, and the signal lights with a burs (Low risk)
  • heatmap: A GitHub-style grid of your Claude Code time in a /heatmap pane, with streaks, peaks and top projects. (Review before installing)