LeeHigma0201/claude-code-mods/tree/main/mods/usage-meter
usage-meter
状态列计量器,显示上下文填充率、5 小时和每周方案限额以及工作阶段成本;另有供 Remote Control 使用的 /usage-meter。
关于这个 mod
显示工作阶段相对于限额所处的位置。它是只读的,从不会催促你收尾。
- 状态列:每个回合结束后,以及方案窗口移动一个百分点时刷新:
ctx 42% · 5h 81% · 7d 23% · $3.10。这表示上下文填充率、5 小时和 7 天方案窗口,以及工作阶段成本。成本是 API 等价金额,不是订阅用量;实际支出由/money负责。 - Toast:方案窗口第一次跨过 80% 和 95% 时显示(每个窗口每次重置一次)。
/usage-meter:以转录行显示相同读数和重置时间。在手机上通过 Remote Control 使用它,因为那里不会绘制状态列。
只有订阅用户、并且工作阶段收到第一份响应后,才会显示方案窗口。
Hooks:session.start(注册命令)、session.measure、command.run。调用:$.session.usage、$.ui.status、$.ui.toast、$.clock.now、$.command.register。
测试:claude plugin test .(3 个测试)。卸载方式见仓库 README。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add LeeHigma0201/claude-code-mods claude plugin install usage-meter
原文 / README
usage-meter
Shows where the session stands against its limits. It is read-only and never nudges you to wrap up.
- Status line, refreshed after every turn and whenever a plan window moves a point:
ctx 42% · 5h 81% · 7d 23% · $3.10. That is context fill, the 5-hour and 7-day plan windows, and session cost. Cost is the API-equivalent figure, not subscription usage;/moneyowns real spend. - Toast the first time a plan window crosses 80% and 95% (once per window per reset).
/usage-meter: the same readings with reset times, as a transcript line. Use this one from the phone over Remote Control, where the status line isn't drawn.
Plan windows show only on a subscription, after the first response of the session.
Hooks: session.start (registers the command), session.measure, command.run. Calls: $.session.usage,
$.ui.status, $.ui.toast, $.clock.now, $.command.register.
Test: claude plugin test . (3 tests). Uninstall: see the repo README.
其他同名作品
- usage-meterhamzafer · ★ 91
- usage-metermishgoldenberg · ★ 3
- usage-metereshin087 · ★ 0
- usage-meterPimzino · ★ 0
- usage-meter0xGondarxyz · ★ 0
- usage-meterarafathusayn · ★ 0
