ClaudeMods
☰
ZH-TW
● 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 ⌫:按一下後會先詢問 clear context? yes no。問題會在 5 秒後自行消失,因此誤按不會產生作用。

在較窄的終端機中標籤會縮短;如果一列放不下所有內容,各區塊會堆疊。

其他模組放在相同槽位的內容,例如 warm-compact 的開關選項,會與引擎本身的模式標籤一起放在該列最右端。

Install

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

然後重新啟動 Claude Code。

請參閱repository README,瞭解如何從 clone 執行。

安裝

請先查看作者 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.

其他同名作品

更多類似作品