anthonyhungnguyen/claude-code-mods/tree/main/cache-watch
cache-watch
A Claude Code plugin that fires a toast when a turn rebuilt the prompt cache, showing tokens written, turn cost, and the likely cause (idle or model change).
About this mod
cache-watch is one of several mods in the claude-code-mods repository, each in its own folder. This mod hooks into Claude Code turns to detect when the prompt cache was rebuilt and surfaces a toast with the tokens written, the turn cost, and the likely cause such as an idle gap or a model change. The repository README documents installation by cloning into ~/.claude/mods and listing mod folders in CLAUDE_CODE_PLUGIN_DIRS within ~/.claude/settings.json, plus validation via claude plugin validate.
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add anthonyhungnguyen/claude-code-mods claude plugin install cache-watch
Original text / README
claude-code-mods
Mods for Claude Code, one folder each. A mod is a plugin of function hooks: panes, status lines, slash commands, tool guards.
| Mod | What it does |
| --- | --- |
| cost-pane | Token and USD spend per session and per day, in the status line and a /cost-pane pane |
| context-guard | Context window fill in the status line; a toast once it passes 80% |
| cache-watch | A toast when a turn rebuilt the prompt cache: tokens written, turn cost, likely cause (idle, model change) |
| turn-timer | Speaks (say on macOS) and toasts when a turn longer than 2 minutes finishes |
Install
git clone [email protected]:anthonyhungnguyen/claude-code-mods.git ~/.claude/mods
List each mod folder you want in ~/.claude/settings.json, separated by ::
{ "env": { "CLAUDE_CODE_PLUGIN_DIRS": "~/.claude/mods/cost-pane:~/.claude/mods/context-guard:~/.claude/mods/cache-watch:~/.claude/mods/turn-timer" } }
New sessions load them. Check a mod with claude plugin validate ~/.claude/mods/<mod>.
Other works with the same name
- cache-watchMichaelP17 · ★ 2

