RektyRowdyy/claude-mods/tree/main/plugins/usage-band
この mod について
Claude Code プラグイン。プロンプト上に状態バンドをレンダリングし、ローリング 5 時間および週次のレート制限使用状況とカウントダウン、モジュール読み込み以降のプロンプト キャッシュ トークン、およびセッション コスト(/cost と一致) を表示します。
レート制限ピルは、サブスクリプション ログイン (Pro/Max) が必要です。API キーのみを使用する場合は、セッションの最初の API レスポンスの後に表示されるキャッシュとコスト ピルのみが表示されます。アイコンは Nerd Font グリフで、色はダーク ターミナル テーマを想定しています。
開発コマンド: claude plugin validate plugins/usage-band と claude plugin test plugins/usage-band。フック は hooks/register.tsx に含まれます(AbovePrompt の session.start、session.measure、turn.complete、ui.render)。純粋なフォーマット ヘルパーは hooks/format.ts に含まれます。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add RektyRowdyy/claude-mods claude plugin install usage-band
原文 / README
usage-band
A band above the Claude Code prompt showing how much of your plan you've used and what the session costs.
5h 20% 2h 40m 7d 58% 1d 7h 954.2k $4.32
| Pill | Shows |
| --- | --- |
| 5h | Rolling 5-hour rate limit: % used, then time until it resets |
| 7d | Weekly rate limit: % used, then time until it resets |
| | Prompt-cache tokens (read + written) since the mod loaded |
| | Session cost, the same figure as /cost |
Notes
- Rate-limit pills need a subscription login (Pro/Max). With an API key there are no windows to show, so only the cache and cost pills appear. They show up after the session's first API response.
- Cache tokens count from when the mod loads; the cost is the whole session's, as Claude Code keeps it.
- Icons are Nerd Font glyphs. Without a Nerd Font in your terminal they show as boxes.
- Colours assume a dark terminal theme.
Development
claude plugin validate plugins/usage-band
claude plugin test plugins/usage-band
hooks/register.tsx holds the hooks (session.start, session.measure, turn.complete, and the
ui.render hook for AbovePrompt); hooks/format.ts holds the pure formatting helpers.
同名の他の作品
- usage-bandyash-gadodia · ★ 1
- usage-bandpawandeepdhall · ★ 1
- usage-bandersinkoc · ★ 1
- usage-bandnemokoala · ★ 0


