crane-valley/claude-plugins/tree/main/plugins/session-band

ターミナルとデスクトップアプリの Code タブで、Claude Code のプロンプト直上にセッション情報を表示します。
crane-valley/claude-plugins/tree/main/plugins/session-band

seconds_since_last_response)だけです。そのため復元されたカウントダウンは推定値で、最大でそのレスポンスの生成時間分だけ長く動くことがあります。次にキャッシュを読み書きするメインスレッドのレスポンスが正確なカウントダウンに置き換えるまで、薄い色で estimated とともに表示されます。たとえば 4:00 estimated のように表示されます。再開時に Claude Code がプロンプトキャッシュの期限切れが近いと報告した場合は、代わりに行へ expired と表示されます。showCredits を有効にすると、月間クレジット使用額を Credits として追加します。これはセッション開始時に読み取られるため、レスポンスがまだなくても有効にすれば行が表示されることがあります。/context の色で示される最大のカテゴリに分けて表示します。Function hooks は Claude Code のアーリーアクセス API であり、リリース間で予告なく変更される可能性があります。CI は Claude Code 2.1.288 でこのプラグインをテストします。バンドが表示されない場合は Claude Code を更新してください。function hooks がまだデフォルトで無効なビルドでは、環境に CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 が必要です。
claude plugin marketplace add crane-valley/claude-plugins
claude plugin install session-band@crane-valley
/plugin configure session-band@crane-valley を使うか、/config で設定するか、claude plugin install に --config KEY=VALUE を付けて設定します。設定しないオプションは以下のデフォルト値になります。
| オプション | デフォルト | 意味 |
| --- | --- | --- |
| cacheTtl | 5m | メインスレッドが使うプロンプトキャッシュ TTL(5m または 1h)。プラグインは Claude Code からこの値を読めないため、誤った値ではカウントダウンも誤ります。 |
| showCost | true | セッションのコストを表示します。サブスクリプションでは、これは使用量の API 料金であり、請求額ではありません。 |
| showCredits | false | Claude Code の /usage が Usage credits に表示するアカウントの月間使用クレジット額を、Limits 行に追加します。プラグインはあなたのログイン情報で同じエンドポイントを最大 5 分ごとにリクエストします。エンドポイントは未文書化のため、変更されたりエラーを返したりすると行を省きます。リセット時刻は返されないため表示しません。claude.ai のログインが必要です。Bedrock、Vertex、ゲートウェイ、API key ではプラグインはリクエストを送らず、Credits も表示しません。 |
プロンプト上のバンドは、すべてのプラグインが共有する 1 つのスロットです。session-band は下のプラグインが描画した内容に自分の行を追加するため、他のプラグインの行も表示されます。next(e) を呼ばずにバンドを描画するプラグインがあると、その下にある内容は隠れます。
MIT
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add crane-valley/claude-plugins claude plugin install session-band
Session figures in the band directly above the Claude Code prompt, on the terminal and in the desktop app's Code tab:

seconds_since_last_response), so the restored countdown is an estimate that can run long by up to that response's generation time and is shown followed by the word estimated in dim text, for example 4:00 estimated, until the next main-thread response that reads or writes the cache replaces it with the exact countdown. When Claude Code reports on resume that the prompt cache has likely expired, the row shows expired instead.showCredits to add their monthly credit spend as Credits, which is read when the session starts, so with it the row can show before any response./context's colors.Function hooks are an early-access Claude Code API that may change between releases without notice. CI tests this plugin on Claude Code 2.1.288. If the band does not appear, update Claude Code; a build where function hooks are still off by default needs CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 in its environment.
claude plugin marketplace add crane-valley/claude-plugins
claude plugin install session-band@crane-valley
Set them with /plugin configure session-band@crane-valley, in /config, or with --config KEY=VALUE on claude plugin install. Unset options take the defaults below.
| Option | Default | Meaning |
| --- | --- | --- |
| cacheTtl | 5m | The prompt cache TTL your main thread uses (5m or 1h). The plugin cannot read it from Claude Code, so a wrong value shows a wrong countdown. |
| showCost | true | Show the session's cost. On a subscription this is the API price of the usage, not what you are billed. |
| showCredits | false | Add the account's monthly usage-credit spend to the Limits row, as Claude Code's /usage shows it under Usage credits. The plugin asks the same endpoint with your own login at most every 5 minutes. The endpoint is undocumented, so when it changes or answers with an error the row is left out. It carries no reset time, so none is shown. It needs a claude.ai login: on Bedrock, Vertex, a gateway or an API key the plugin sends no request and shows no Credits. |
The band above the prompt is one slot shared by every plugin. session-band appends its rows to whatever the plugins beneath it drew, so other plugins' rows stay visible; a plugin that draws the band without calling next(e) hides the ones beneath it.
MIT