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.
