CodyEngel/claude-mods/tree/main/cache-meter
關於這個 mod
cache-meter 是 Claude Code 函式掛鉤外掛,在提示列上方顯示提示快取剩餘時間與上下文視窗使用量,並提供 Compact 按鈕。可選的 Keep warm 切換會在閒置時於快取過期前傳送 ping,閒置 8 小時後停止。使用 claude --plugin-dir ./cache-meter 安裝;設定位於該 mod 的 .claude-plugin/plugin.json 的 userConfig 中。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add CodyEngel/claude-mods claude plugin install cache-meter
原文 / README
claude-mods
Mods for Claude Code: plugins of function hooks that add panes, bands, toasts and hooks to the terminal and the desktop Code tab.
Mods
| Mod | What it does | | --- | --- | | cache-meter | A band above the prompt showing time left on the prompt cache, how much of the context window is used, a Compact button, and an opt-in Keep warm toggle that pings the cache before it expires while you're idle (stops after 8 idle hours). | | pr-monitor | A pane listing the repository's open pull requests. Tick the ones to watch to see checks, review state and which other watched branches they conflict with. Mark any Auto-merge when green and it merges them one at a time, least-conflicting first, and asks Claude to resolve conflicts (in a temporary worktree, merging rather than rebasing, keeping out of files other watched PRs touch) once nothing else is about to land. |
Using a mod
claude --plugin-dir ./cache-meter
Each mod's settings live in its .claude-plugin/plugin.json under userConfig.
Developing
claude plugin validate ./cache-meter
claude plugin test ./cache-meter
The plugin API is early access and may change between Claude Code releases.


