anthonyhungnguyen/claude-code-mods/tree/main/cache-watch
cache-watch
한 턴에서 프롬프트 캐시가 다시 만들어지면 기록된 토큰, 턴 비용, 유휴 또는 모델 변경 같은 가능 원인을 toast로 보여 주는 Claude Code 플러그인입니다.
이 mod 소개
cache-watch는 claude-code-mods 저장소에 있는 여러 모드 중 하나이며 각 모드는 별도 폴더에 있습니다. 이 모드는 Claude Code 턴에 hook으로 연결되어 프롬프트 캐시가 다시 만들어졌는지 감지하고, 기록된 토큰 수와 턴 비용, 유휴 간격이나 모델 변경 같은 가능 원인을 toast로 표시합니다. 저장소 README에는 저장소를 ~/.claude/mods로 복제하고 ~/.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

