cache-watch

cache-watch is a Claude Code mod by MichaelP17 that shows how long the prompt cache stays warm and suggests compacting a large context at the right moment.

Updated 2026-10-16

What is cache-watch?

cache-watch is a Claude Code mod by MichaelP17 that shows how long the prompt cache stays warm and suggests compacting a large context at the right moment. It is listed under Cost & usage and has 2 GitHub stars.

TypeClaude code mod
AuthorMichaelP17
RepositoryMichaelP17/claude-mods
Popularity2 GitHub stars
CategoryCost & usage
SecurityLow risk (84/100)
Rank#1,342 of 5,272 Claude Code mods; #245 in Cost & usage
LicenseMIT
Last commit2026-10-16
Hooks11 events
SeesBash calls, compaction, every prompt, the system prompt
Draws onSessionMode, AbovePrompt

Is cache-watch safe to install?

cache-watch scores 84/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. 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
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
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
$.clock.every
$.clock.now
$.fs.existsreads files
$.hub.set
$.prompt.submitdrives Claude
$.session.compactdrives Claude
$.session.cwd
$.state.get
$.state.set
$.ui.askdraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install cache-watch?

  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/MichaelP17/claude-mods
    claude plugin validate ./claude-mods/cache-watch
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/MichaelP17/claude-mods && claude --plugin-dir ./claude-mods/cache-watch

Or ask Claude to set it up

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

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

More from MichaelP17/claude-mods

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

  • compact-shaper: Summarizes compactions as a handoff, and cuts re-readable tool output instead on /compact prune (Low risk)
  • concurrency-guard: Caps parallel subagents and monitors; more need a stated reason and the user's approval (Low risk)
  • config-snapshots: Snapshot and roll back the Claude Code configuration through claude-config (Review before installing)
  • grill-panel: Answers Claude's numbered question rounds one by one in a panel, keeps confirmed answers across restarts, and sends them (Low risk)
  • idea-shell: Captures ideas per folder with /idea while Claude keeps working, and hands them to Claude later (Review before installing)
  • machine-guard: Puts every command that changes the machine in front of the user before it runs (Low risk)
  • mod-hub: One toolbox button in the desktop footer that shows what every mod reports and opens their panes, also while Claude is w (Low risk)
  • service-radar: Keeps track of detached services Claude starts and stops them on request (Review before installing)