ricardo-martincoski/claude-lab/tree/main/plugins/show-usage
show-usage
Claude Code プラグイン。コンテキスト ウィンドウ使用量と 5 時間/7 日セッション使用限度を 1 つのステータス行に表示し、応答後に更新します。
この mod について
show-usage
コンテキスト ウィンドウ使用量と 5 時間および 7 日セッション使用限度を 1 つのステータス行に表示し、 応答後に更新します:
⚠ show-usage: context 28% | session 30% [21:50] | week 5% [Sat 2026-10-10 07:00]
context:コンテキスト ウィンドウがどのくらい満杯かを示します。sessionおよびweek:5 時間と 7 日セッション使用限度を示します。/usageは "Current session" と "Current week" として表示され、括弧内に現地時間の リセット時間が表示されます。
Claude Code は ⚠ show-usage: プレフィックスを追加して、この行がプラグインからのものであることを示します。
インストール
/plugin marketplace add ricardo-martincoski/claude-lab
/plugin install show-usage@claude-lab
claude-lab README を参照して、ローカルクローンからインストールするか、 プラグインを開発してください。
値が表示されない場合
この行は Claude Code がこれまでに報告したもののみを表示します:
- Claude Code セッションの最初の応答の前は何も表示されません。
- 圧縮直後から次の応答までは
context部分は表示されません。 - Claude サブスクリプションを使用していない場合(例えば API
キーを使用している場合)、
sessionおよびweek部分は表示されません。 - Claude Code がリセット時間を報告しない場合、リセット時間は表示されません。
この行は応答到達時にのみ変わるため、Claude Code セッションがアイドル状態の場合、 使用限度のリセット後であっても最後の値が保持されます。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add ricardo-martincoski/claude-lab claude plugin install show-usage
原文 / README
show-usage
Shows context window usage and the 5-hour and 7-day session usage limits on one status line, updated after every response:
⚠ show-usage: context 28% | session 30% [21:50] | week 5% [Sat 2026-10-10 07:00]
context: how full the context window is.sessionandweek: the 5-hour and 7-day session usage limits, which/usageshows as "Current session" and "Current week", with their reset times in brackets, in local time.
Claude Code adds the ⚠ show-usage: prefix to mark the line as coming from a plugin.
Install
/plugin marketplace add ricardo-martincoski/claude-lab
/plugin install show-usage@claude-lab
See the claude-lab README to install from a local clone or to develop the plugin.
When values are not shown
The line shows only what Claude Code has reported so far:
- Nothing at all before the first response of a Claude Code session.
- No
contextpart right after a compaction, until the next response. - No
sessionandweekparts when not using a Claude subscription (for example with an API key). - No reset time when Claude Code does not report one.
The line changes only when a response arrives, so while the Claude Code session is idle it keeps the last values, even after a usage limit resets.
