ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 LeeHigma0201

usage-meter

狀態列計量器,顯示脈絡填充率、5 小時與每週方案上限,以及工作階段成本;另有供 Remote Control 使用的 /usage-meter。

LeeHigma0201@LeeHigma0201

LeeHigma0201/claude-code-mods/tree/main/mods/usage-meter

已翻譯

關於這個 mod

顯示工作階段相對於上限的位置。它是唯讀的,絕不催促你收尾。

  • 狀態列:每個回合後,以及方案視窗移動一個百分點時更新:ctx 42% · 5h 81% · 7d 23% · $3.10。這代表脈絡填充率、5 小時與 7 天方案視窗,以及工作階段成本。成本是 API 等值金額,不是訂閱用量;實際支出由 /money 管理。
  • 通知:方案視窗第一次跨過 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; /money owns 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.

其他同名作品

更多類似作品