ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 CodyEngel

cache-meter

在提示符上方显示提示缓存剩余时间和上下文窗口使用量,并提供 Compact 按钮及可选的 Keep warm 保活开关。

CodyEngel@CodyEngel

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.

更多类似作品