---
title: "context-bar"
url: "https://claudemods.dev/zh-tw/builds/context-bar-2503f5"
source: "https://github.com/ziedgithub/claude-code-mods/tree/main/context-bar"
source_type: "github"
repo: "https://github.com/ziedgithub/claude-code-mods/tree/main/context-bar"
author: "ziedgithub"
author_handle: "ziedgithub"
stars: 0
category: "儀表板與 HUD"
categories: ["hud"]
tags: ["cache", "claude-code", "context-window", "footer", "hud", "plugin", "statusline"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add ziedgithub/claude-code-mods\nclaude plugin install context-bar@zied-mods"
added: "2026-10-05T01:48:28.099Z"
updated: "2026-11-19T00:25:59Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# context-bar

Claude Code 的頁尾。在提示列下方提示行右側的槽位中顯示以下內容：

## Description

# context-bar

Claude Code 的頁尾。在提示列下方提示行右側的槽位中顯示以下內容：

![context-bar, a rendered preview](../docs/context-bar.png)

- **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](../warm-compact/) 的開關選項，會與引擎本身的模式標籤一起放在該列最右端。

## Install

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

然後重新啟動 Claude Code。

請參閱[repository README](../README.md)，瞭解如何從 clone 執行。

## Install

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

## Original 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](../docs/context-bar.png)

- **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](../warm-compact/)'s on/off chip, goes at the right end of the row, along with the engine's own mode labels.

## Install

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

Then restart Claude Code.

See the [repository README](../README.md) for running it from a clone.
