zakattack9/agentic-coding/tree/main/claude-code/plugins/statusline-band
statusline-band
Claude Code 外掛把 statuslineV4.sh 移植到提示列上方的狀態帶,讓 Desktop Code 分頁顯示兩列彩色狀態列,包括目錄、git、模型、effort、持續時間、版本、session id、速率限制、內容視窗、成本、輸出風格和 RAM。
關於這個 mod
statusline-band 將 claude-code/statuslines/statuslineV4.sh 移植到提示列上方的狀態帶,讓 Claude Desktop Code 分頁(不會執行 statusLine 指令碼)也能在兩列彩色狀態列中顯示相同資料。第 1 列顯示目錄、git 分支、模型、effort、持續時間、版本和縮短後的 session id;第 2 列顯示 5h/7d 速率限制、內容視窗百分比、成本、輸出風格和 RAM 用量。顏色來自指令碼的 xterm-256 調色盤並轉成十六進位;非空的 NO_COLOR 會停用顏色。session id 會作為按鈕使用:在終端機中會複製完整 id,在尚未支援剪貼簿寫入的 Desktop 應用程式中則顯示 toast。使用 /plugin marketplace add zakattack9/agentic-coding 和 /plugin install statusline-band@zaksak 安裝。選項(show_in_terminal、dir_levels、refresh_seconds)透過 /plugin configure 或 /config 設定。需要支援 mods 的 Claude Code 建置;以 v2.1.286 測試。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add zakattack9/agentic-coding claude plugin install statusline-band
原文 / README
statusline-band
A mod that ports claude-code/statuslines/statuslineV4.sh into the band above the prompt, so the Claude Desktop Code tab (which doesn't run statusLine scripts) gets the same figures in two rows:
statusline-band ⟡ main ⟡ Opus 5.5 ⟡ high 2m ⟡ v2.1.286 ⟡ f00a9b5b…afddad
5h 13% · 7d 26% ⟡ ctx 8% ⟡ $0.77 ⟡ Caveman RAM 2.03GB (6 · 2.9%)
Each row puts its main figures on the left and pushes the rest to the right edge. Each figure is drawn in its own color, labels included. The 5h/7d labels and the RAM process count are a shade darker, and the ⟡ separators are dimmed. Colors are the script's xterm-256 palette converted to hex. A non-empty NO_COLOR turns them off.
The session id is a button. In the terminal, pressing it copies the full id. The Desktop app doesn't let mods write to the clipboard yet, so there it shows the full id in a toast instead.
Install
/plugin marketplace add zakattack9/agentic-coding
/plugin install statusline-band@zaksak
Requires a Claude Code build with mods. Tested on v2.1.286 in the Desktop Code tab.
Options
Set via /plugin configure statusline-band@zaksak or /config:
| Option | Default | What it does |
| --- | --- | --- |
| show_in_terminal | false | Also draw the band in terminal sessions. Off so the CLI's real status line isn't doubled. |
| dir_levels | 3 | Trailing path components shown; 0 shows the full path. |
| refresh_seconds | 5 | How often git, RAM and duration refresh between turns. |
Differences from the script
- Draws above the prompt: mods can't draw in the status line slot below it.
- Two rows instead of three. Duration, version and session id sit on the right of row 1, output style ends row 2, and the session id is shortened to
first8…last6. Duration and output style keep each other's old colors. - Effort comes from the main loop's last request (
turn.step), and is blank for a model without effort. Before the first request, or after/effortor/modelchanges between turns, it comes from the/configrow until the next request. - Output style comes from the engine's own
/configrow, matched by key name. It showsdefaultwhen not found. - Context shows
—until the first response of a fresh or just-compacted session, where the script showed0%. - Rate limits read
0%once a window's reset time has passed, since the engine's reading is from the last response. A gateway'sspend_limitshows asspend. With no reading at all, the segment is left out instead of sayingNo ongoing session. - Cost is left out when the host keeps no cost ledger, instead of showing
$0.00. - Duration counts from this run's start, read from the engine process's uptime. The engine's own session start counts from a resumed session's first launch.
/clearstill resets it. - RAM sums every process named
claudefor this user, as the script does: all Desktop Code tabs and terminal sessions, not just this one. This session's engine is always included, and the Desktop app'sdisclaimerwrapper is skipped.
Develop
claude plugin validate claude-code/plugins/statusline-band
claude plugin test claude-code/plugins/statusline-band
claude --plugin-dir claude-code/plugins/statusline-band
其他同名作品
- statusline-bandAsyrafHussin · ★ 0
