Gooner44/ClaudeMods/tree/main/plugins/usage-bar
usage-bar
Claude Code 外掛程式,在提示上方新增一個條狀顯示,顯示會話(5 小時)、每週(7 天)和每個模型的用量百分比、計量器和重設時間,以及一個配套的員工面板外掛程式,顯示所有正在執行的會話和代理。
關於這個 mod
作為 ClaudeMods 外掛程式市場的一部分,usage-bar 使用 Claude Code 的 hooks-module 外掛程式 API(基於 2.1.286 建構)在提示上方呈現一個條狀顯示,顯示您已使用的方案限制:會話(5 小時視窗)、每週(7 天視窗)和每個模型的每週視窗,例如 Fable 5.1。每個都顯示一個百分比、一個計量器和一個重設時間(美國中部時間);計量器在 70% 時變為琥珀色,在 90% 時變為紅色,並帶有文字標籤,因此狀態從不單獨依賴顏色。桌面應用程式繪製實心條,終端機繪製細線。用量資料需要訂閱登入,並在第一次回覆後顯示。同一個市場也提供 staff-board,它顯示 PC 上的每個 Claude Code 會話,包括每個會話的目前任務、活動工具呼叫、模型和正在執行的代理,帶有像素藝術字元、狀態行和 /staff 文字檢視。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add Gooner44/ClaudeMods claude plugin install usage-bar
原文 / README
ClaudeMods
Mods for Claude Code, packaged as a plugin marketplace.
Install
/plugin marketplace add Gooner44/ClaudeMods
/plugin install usage-bar@claude-mods
/plugin install staff-board@claude-mods
Or try one without installing:
claude --plugin-dir path/to/ClaudeMods/plugins/usage-bar
These use Claude Code's hooks-module plugin API (built on 2.1.286); older versions won't load them.
Plugins
usage-bar
A band above the prompt showing how much of your plan's limits you've used:
- Session: the 5-hour window
- Weekly: the 7-day window
- Fable 5.1: a per-model weekly window, when your plan reports one (otherwise "no reading yet")
Each shows the percentage, a meter, and when it resets (times in US Central). The meter turns amber from 70% and red from 90%, with a "Nearing limit" / "At limit" label so the state never relies on color alone.
On the desktop app the meters are solid bars; in the terminal they're thin ━━━─── lines. Usage figures need a subscription login and appear after the first reply.
staff-board
See every Claude Code session running on this PC, such as Claude, Aesop and background jobs: what each is working on, what it's doing right now, and the agents it has running.
-
The band above the prompt: a little Clawd character for every session and every agent it's running. A character walks while it works and stands (blinking now and then) while idle. Next to each one:
- its name and state (working for how long, or idle)
- its job: the session's current task, or the agent's task description
- the tool it's calling right now
- the model, or which session an agent belongs to
This session comes first, then Claude, Aesop and the others, then background jobs. The band sits under usage-bar's meters when both are installed. Collapse it with
[-]or ctrl+x ctrl+a. -
Status line: the other sessions at a glance, e.g.
Aesop working · 1 agent | 2 jobs. -
/staff: posts the same board as text. Remote Control on the phone draws no band, so this is the phone's view.
The characters are pixel art in the terminal. The desktop app shows a small block glyph instead.
How it works: each session writes a small card to ~/.claude/staff-board/<session id>.json every few seconds, and reads everyone else's. A card that hasn't been updated for 90 seconds counts as closed. Sessions are named by the CLAUDE_STAFF (or CLAUDE_TASK) environment variable; unnamed ones show as Session <id>. Background (-p) runs write their card but don't read the board.
Old cards stay in the folder (they're ignored once stale); delete the folder's contents any time.
