ClaudeMods
☰
ZH-TW
● — 人在線上 · 瀏覽 — 次
贊助提交作品
GitHub 儲存庫 · 發布者 nnemirovsky

status-band

為 Claude Code 提供顯示 Git、模型、上下文與分支 PR 審查狀態的框線狀態列。

已翻譯

關於這個 mod

status-band 以固定兩列版面取代 Claude Code 的命令狀態列。第一列顯示工作樹、分支、已暫存/未暫存行數、模型與努力程度、上下文視窗用量,以及帶有來源標記的工作目錄;分支有 PR 時,第二列顯示合併就緒度、審查、CI、衝突、落後基底、未解決討論串、核准與草稿/已合併/已關閉狀態,並把 PR 編號設為連結。Git 與上下文每 10 秒、每回合以及 Bash 或檔案編輯後重新整理;PR 列每分鐘、目錄或分支變更後,以及 gh pr、gh api、git push、git checkout 或 git switch 後重新整理。安裝:/plugin marketplace add nnemirovsky/cc-status-band、/plugin install status-band@status-band,然後執行 /status-band-setup。需要 Claude Code 2.1.289+、git 與已登入的 gh;MIT 授權。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add nnemirovsky/cc-status-band
claude plugin install status-band@status-band
原文 / README

Status Band

Opinionated framed status band for Claude Code with git, model, context, and the branch's PR review state. It takes the place of a command status line and tidies the hint line under the prompt.

Status Band while the PR's checks run

Status Band once the PR is ready to merge

It is opinionated, not configurable

This is not ccstatusline or any of the other status line builders. There are no widgets to pick, no themes and no layout options. It draws one fixed layout in one fixed palette, the way its author wanted it. The only setting is whether the PR and CI marks use Nerd Font glyphs. If you want a different look, fork it: the whole thing is one file, hooks/register.tsx.

What it shows

First row, the same fields a typical status line has:

  • the worktree (main for the main checkout), the branch, and staged plus unstaged line counts from git diff --shortstat HEAD
  • the model and the effort level its requests actually use
  • tokens in the context window and the share used: grey, yellow from 60%, red from 85%
  • the working directory, with (from …) when the session started somewhere else. When the row does not fit, the path moves to its own line.

Second row, only when the branch has a pull request, and only what needs attention:

| Shown when | Text | |---|---| | GitHub reports it mergeable and no changes are requested | ready to merge (the review state is left out) | | Review required | review required | | Changes requested | changes requested | | CI passed, running, failed | CI ✓, CI ●, CI ✗ 2 failed | | Merge conflicts, branch behind its base | conflicts, behind | | Unresolved review threads, when there are any | 3 unresolved | | Approvals, when there are any | 2 approvals | | Draft, merged, closed | draft, merged, closed | | GitHub is still working out the PR after a push, nothing else to show | checking |

PR #2899 is a link to the pull request.

Hint line under the prompt: the band replaces Claude Code's own PR badge, so that badge is removed from the hint line, together with (shift+tab to cycle).

Git and context refresh every 10 seconds, after each turn and after Bash or file edits. The PR row refreshes every minute, on a change of directory or branch, and right after a gh pr, gh api, git push, git checkout or git switch command. While checks run or GitHub has not yet worked out the merge state, it looks again every 15 seconds.

What it cannot change

Mods reach only some of Claude Code's interface. These stay as Claude Code draws them:

  • the permission mode pill (⏵⏵ auto mode on)
  • the /rc indicator
  • the notification row above the prompt (the usage-limit warning, Image in clipboard), which keeps its line even when empty

Requirements

  • Claude Code 2.1.289 or later, with function-hook mods available to your account
  • git, and gh logged in for the PR row
  • For nerdFont: a Nerd Font in your terminal (the glyphs are GitHub octicons)

Install

/plugin marketplace add nnemirovsky/cc-status-band
/plugin install status-band@status-band

Then run the setup command once:

/status-band-setup

It asks three things and changes only what you agree to, skipping what is already done:

  • whether you see a Nerd Font icon, to set nerdFont
  • whether to set FORCE_HYPERLINK=1, when it is not set (see Links that print the URL); it applies after a restart
  • whether to turn off your status line, if you have one, since it would draw under the band; it is kept as statusLineDisabled, so renaming it back restores it

It writes only ~/.claude/settings.json, and the nerdFont option through Claude Code's own config.

Settings

| Option | Default | | |---|---|---| | nerdFont | false | PR and CI marks as octicons ( ) instead of PR ✓ ● ✗ |

Set it from /config, or in ~/.claude/settings.json:

"pluginConfigs": { "status-band@status-band": { "options": { "nerdFont": true } } }

Links that print the URL

The PR number is an OSC 8 hyperlink. Claude Code decides whether your terminal supports those from its environment, and does not recognise every terminal (agterm, for one). If you see the URL printed after PR #2899, set FORCE_HYPERLINK=1 in the env block of ~/.claude/settings.json, or let /status-band-setup do it.

Development

claude plugin validate .
claude plugin test .
claude --plugin-dir .

Claude Code watches a --plugin-dir folder and reloads the mod on each save.

License

MIT

取得徽章

這是你的專案嗎?把這個徽章放進 README 或網站,連回本頁。

Featured on ClaudeMods
尺寸
配色
Markdown
HTML

其他同名作品

更多類似作品