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

context-bar

Claude Codeのフッターです。プロンプト下のヒント行の右側のスロットに次を表示します。

ziedgithub@ziedgithub

ziedgithub/claude-code-mods/tree/main/context-bar

元の投稿の画像1
翻訳済み

この mod について

context-bar

Claude Codeのフッターです。プロンプト下のヒント行の右側のスロットに次を表示します。

context-bar, a rendered preview

  • Cache:直前のプロンプトをキャッシュがどれだけ提供したかと、期限切れまでのおおよその時間:99% ~58m。期限切れ後またはコンパクション後はcoldになります。
    • アカウントのキャッシュが5分か1時間かはリクエスト自体から判断され、セッション間で記憶されます。
  • Model and effort:◆ Opus 5.5 (1M) ▆ high。モデルファミリーとeffortレベルで色分けされます。どちらかをクリックするとチップの行が出て別のものを選べます。これは/modelまたは/effortを代わりに実行します。
  • Context:コンテキストウィンドウの満杯度をバーで示します。30%未満は緑、60%未満はオレンジ、それ以降は赤です。
    • コンパクションや/clearの直後、および新しいセッションでは、次の応答までClaude Codeに測定値がありません。その間は~を付けたClaude Code自身のローカル推定値(/contextが作るもの)を表示します。
  • Compact ⇊ and clear ⌫:1クリックで最初にclear context? yes noと尋ねます。質問は5秒後に自動で消えるため、誤クリックは何もしません。

狭いターミナルではラベルが短くなり、1行に収まらない場合はブロックが積み重なります。

warm-compactのオン/オフチップなど、他のmodが同じスロットに置くものは、エンジン固有のモードラベルとともに行の右端に表示されます。

Install

claude plugin marketplace add ziedgithub/claude-code-mods && claude plugin install context-bar@zied-mods

その後Claude Codeを再起動します。

クローンから実行する方法はrepository READMEを参照してください。

インストール

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

claude plugin marketplace add ziedgithub/claude-code-mods
claude plugin install context-bar
原文 / README

context-bar

A footer for Claude Code. In the slot right of the hint line under the prompt, it shows:

context-bar, a rendered preview

  • Cache: how much of the last prompt the cache served, and roughly how long until it expires: 99% ~58m, then cold once it has lapsed or after a compaction.
    • Whether your account caches for 5 minutes or an hour is worked out from the requests themselves, and remembered between sessions.
  • Model and effort: ◆ Opus 5.5 (1M) ▆ high, colored by model family and by effort level. Click either one to get a row of chips and pick another. This runs /model or /effort for you.
  • Context: how full the context window is, in a bar that is green under 30%, orange under 60% and red after that.
    • After a compaction or a /clear, and in a fresh session, Claude Code has no measured figure until the next response. Meanwhile the bar shows Claude Code's own local estimate (the one /context makes), marked with ~.
  • Compact ⇊ and clear ⌫: one click asks first (clear context? yes no). The question goes away by itself after five seconds, so a stray click does nothing.

On a narrow terminal the labels shorten, and when one row can't hold everything the blocks stack.

What other mods put in the same slot, such as warm-compact's on/off chip, goes at the right end of the row, along with the engine's own mode labels.

Install

claude plugin marketplace add ziedgithub/claude-code-mods && claude plugin install context-bar@zied-mods

Then restart Claude Code.

See the repository README for running it from a clone.

同名の他の作品

関連作品