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

usage-band

Claude Code のプロンプト上に細いレトロ風の行を描き、5 時間と週間プランの使用量およびリセットまでの時間を表示する mod。

iamkhalid2@iamkhalid2

iamkhalid2/usage-band/tree/main/plugins/usage-band

翻訳済み

この mod について

usage-band は Claude Code のプラグインです。プロンプトの上にレトロ調の 1 行を表示し、プランの使用量上限をどれだけ消費したかを示します。

  • 5H:ローリング 5 時間ウィンドウ。WK:週間ウィンドウ。
  • バーには彩度を抑えた 70 年代の夕焼けグラデーション(ティール、マスタード、バーントオレンジ、レンガ色)を使うため、バーが埋まるほど暖かい色になります。
  • 幅 70 列以上のターミナルでは、各ウィンドウがリセットされるまでの時間を表示します。
  • サブスクリプションプランで、Claude Code が最初の応答から読み取った後だけ表示されます。1 行のみで、アニメーションも枠もありません。
  • ターミナルとデスクトップアプリの両方で AbovePrompt スロットを使って動作します。

インストール:

claude plugin marketplace add iamkhalid2/usage-band
claude plugin install usage-band@usage-band

/usage-band で切り替えます。内部では hooks モジュール(plugins/usage-band/hooks/register.tsx)がレート制限ウィンドウを得るために session.measure を監視し、AbovePrompt の ui.render hook で描画します。使用量の数値だけを読み取り、ネットワーク要求は行わず、セッションの外には何も保存しません。MIT ライセンスです。

インストール

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

claude plugin marketplace add iamkhalid2/usage-band
claude plugin install usage-band
原文 / README

usage-band

A Claude Code mod: a slim, retro-styled line above the prompt that shows how much of your plan's usage limits you've used.

5H ▰▰▰▰▰▰▱▱▱▱▱▱ 62% · 2h 14m  ◆  WK ▰▰▱▱▱▱▱▱▱▱▱▱ 31% · 3d 4h
  • 5H: the rolling 5-hour window. WK: the weekly window.
  • Bars run through a muted 70s sunset gradient (teal, mustard, burnt orange, brick), so a fuller bar reads warmer.
  • Shows time until each window resets (on windows 70+ columns wide).
  • One line, no animation, no border. It stays out of the way.
  • Shown only on a subscription plan, once Claude Code has a reading from your first response. Without rate-limit data there is nothing to draw.
  • Works in the terminal and the desktop app (the AbovePrompt slot).

Install

claude plugin marketplace add iamkhalid2/usage-band
claude plugin install usage-band@usage-band

Start a new session (or reload plugins in a running one).

Use

It shows up on its own. /usage-band hides or shows the line.

Uninstall

claude plugin uninstall usage-band@usage-band

How it works

A hooks module (plugins/usage-band/hooks/register.tsx) listens to session.measure for the rate-limit windows and draws them in a ui.render hook on the AbovePrompt component. It reads usage figures only; it makes no network requests of its own and stores nothing outside the session.

License

MIT

Contact

[email protected]

同名の他の作品

関連作品