anthonyhungnguyen/claude-code-mods/tree/main/cache-watch
cache-watch
ターンでプロンプトキャッシュが再構築されたとき、書き込まれたトークン数、ターンのコスト、アイドルまたはモデル変更などの原因候補を toast で示す Claude Code プラグインです。
この mod について
cache-watch は claude-code-mods リポジトリにある複数のモッドの 1 つで、それぞれが独自のフォルダーに入っています。このモッドは Claude Code のターンに hook してプロンプトキャッシュが再構築されたことを検出し、書き込まれたトークン数、ターンのコスト、アイドル時間やモデル変更といった原因候補を toast で表示します。リポジトリの README には、リポジトリを ~/.claude/mods に clone し、~/.claude/settings.json の CLAUDE_CODE_PLUGIN_DIRS にモッドのフォルダーを列挙し、claude plugin validate で検証する手順が記載されています。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add anthonyhungnguyen/claude-code-mods claude plugin install cache-watch
原文 / 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>.
同名の他の作品
- cache-watchMichaelP17 · ★ 2

