cache-clock

cache-clock is a Claude Code mod by Abdallah-Abdelazim that shows whether Claude's prompt cache is still warm, with the cold-rewrite cost and a Compact button.

Updated 2026-11-24

What is cache-clock?

cache-clock is a Claude Code mod by Abdallah-Abdelazim that shows whether Claude's prompt cache is still warm, with the cold-rewrite cost and a Compact button. It is listed under Cost & usage and has 2 GitHub stars.

TypeClaude code mod
AuthorAbdallah-Abdelazim
RepositoryAbdallah-Abdelazim/claude-code-mods
Popularity2 GitHub stars
CategoryCost & usage
SecurityLow risk (96/100)
Rank#2,194 of 9,397 Claude Code mods; #359 in Cost & usage
Last commit2026-11-24
Hooks4 events
Seesonly the events it hooks
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.every
$.clock.now
$.command.register
$.session.compactdrives Claude
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.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/Abdallah-Abdelazim/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 Abdallah-Abdelazim/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/Abdallah-Abdelazim/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 Abdallah-Abdelazim/claude-code-mods

This repository has 6 Claude Code mods on MCPMods.

  • agent-watch: Shows the main chat, helper agents, their models, tasks and skills for the current turn. (Low risk)
  • auto-handoff: Watches chat fill, saves a HANDOFF.md at a threshold, and offers a clean resume. (Low risk)
  • band-rule: Draws one dim line above the mod bands to separate them from Claude's output. List it before the other mods. (Low risk)
  • usage-gauge: Shows plan window usage, reset times and session cost in the band above the prompt. (Low risk)
  • usage-limits: Progress bars for the session (5h) and week (7d) rate limits in the prompt footer (Low risk)