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

quota-band

5 時間および週次プランの使用量、コンテキストウィンドウの充填率、プロンプトキャッシュの残り時間をプロンプト上部の 1 行に表示し、任意のカスタムプロンプトボタンも備えた Claude Code プラグイン。

andras-gyarmati@andras-gyarmati

andras-gyarmati/claude-quota-band

翻訳済み

この mod について

quota-band は Claude Code 用のステータス HUD mod で、プロンプト上部の 1 行にプラン使用量を表示します。

5 時間と週次のウィンドウを使用率で埋まるバーとして示し、経過した割合を灰色の目盛りで、時間/日の目盛りも表示します。色は 95% から赤、80% からオレンジ、均等ペースより先行しているときは黄色、それ以外は白です。→ N% マーカーは現在のペースでリセット時に到達する位置を示し、リセット時刻も表示します。さらに ctx(コンテキストウィンドウの使用量と、コールドキャッシュ時に次のリクエストが再送するトークン数)と cache(プロンプトキャッシュが温かい状態を保つ時間。各ターンの終わりに transcript から読み取り、最後の 5 分は通知付きでオレンジ、コールドになると赤)も報告します。

任意の 2 つのボタンから好きなプロンプトを送信できます。/config または settings.json の pluginConfigs で設定します。

Claude Code が各レスポンスですでに受け取る数値(session.measure)を読むだけで、独自のリクエストやファイルの読み書きは行いません。Claude Code 2.1.287 以降と Pro、Max、Team プランが必要です。バーはデスクトップアプリの Code タブに、ターミナルでは同じ行がテキストで表示されます。

/plugin marketplace add andras-gyarmati/claude-quota-band に続けて /plugin install quota-band@claude-quota-band を実行してインストールします。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add andras-gyarmati/claude-quota-band
claude plugin install quota-band
原文 / README

quota-band

A Claude Code mod that keeps your plan's usage in view: one line above the prompt with the 5-hour and weekly windows, the context window and the prompt cache's time left.

5h ▬▬▬▬▬▬▬▬▬ 93% → 100% 23:10    7d ▬▬▬▬▬▬▬ 72% 11:00    ctx ▬▬▬ 37% 370k    cache ▬▬▬ 42m
  • Each bar fills with the percent used. A grey tick marks how much of the window has passed, and the notches are hours (5h) or days (7d).
  • Colours: red from 95%, orange from 80%, yellow while you are ahead of an even pace, white otherwise.
  • → N% is where the current pace lands by the reset, with a dashed outline on the bar.
  • The time is when the window resets.
  • ctx is how full the context window is; 370k is what the next request re-sends, which a cold cache has to write again.
  • cache drains over the time the prompt cache stays warm after the last response: the length the last response actually wrote, read from the transcript at the end of each turn, so it drops to five minutes in overage. Until the first turn ends (and on Windows, which has no tail) it assumes an hour on a subscription's main thread, five minutes otherwise, or what promptCacheTtl sets. It turns orange in the last five minutes, with a toast, and red once cold.

Buttons

Two optional buttons send a prompt of your choice, for example a wrap-up skill. Set them in /config under the plugin's options, or in settings.json:

"pluginConfigs": {
  "quota-band@claude-quota-band": {
    "options": { "closeCommand": "/close-thread", "renamePrompt": "Rename this thread to cover every topic in it" }
  }
}

Empty hides a button. A press during a turn waits until the turn ends.

It reads the figures Claude Code already receives with each response (session.measure), so it sends no requests of its own and reads or writes no files. The figures appear after the first response of a session, on Pro, Max and Team plans.

Install

Needs Claude Code 2.1.287 or later (Claude Mods). In Claude Code:

/plugin marketplace add andras-gyarmati/claude-quota-band
/plugin install quota-band@claude-quota-band

To pick up new versions on each start, set "autoUpdate": true for this marketplace under extraKnownMarketplaces in settings.json.

Bars draw in the desktop app's Code tab; the terminal shows the same line as text.

関連作品