ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 LeeHigma0201

usage-meter

コンテキストの使用量、5時間と週間プラン上限、セッション費用をステータス行に表示し、Remote Control 用に /usage-meter も提供します。

LeeHigma0201@LeeHigma0201

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

翻訳済み

この mod について

セッションが上限に対してどこにいるかを表示します。読み取り専用で、終わりにしろと促すことはありません。

  • ステータス行:各ターンの後、またはプランウィンドウが1ポイント動くたびに更新します:ctx 42% · 5h 81% · 7d 23% · $3.10。コンテキストの充填率、5時間と7日間のプランウィンドウ、セッション費用を表します。費用は API 換算値で、サブスクリプションの利用量ではありません。実際の支出は /money が担当します。
  • トースト:プランウィンドウが 80% と 95% を初めて越えたときに表示します(ウィンドウごと、リセットごとに1回)。
  • /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.

同名の他の作品

関連作品