RektyRowdyy/claude-mods/tree/main/plugins/usage-band
關於這個 mod
一個 Claude Code 外掛,在提示列上方呈現一個狀態列,顯示滾動的 5 小時和每週費率限制使用情況及倒計時、自模組載入以來的提示快取權杖和工作階段成本(與 /cost 相符)。
費率限制丸需要訂閱登入(Pro/Max);僅使用 API 金鑰時,只顯示快取和成本丸,在工作階段的第一次 API 回應後出現。圖示是 Nerd Font 字形,顏色假設為深色終端佈景主題。
開發命令:claude plugin validate plugins/usage-band 和 claude plugin test plugins/usage-band。鉤點位於 hooks/register.tsx(AbovePrompt 的 session.start、session.measure、turn.complete 和 ui.render),在 hooks/format.ts 中有純格式化輔助程式。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add RektyRowdyy/claude-mods claude plugin install usage-band
原文 / README
usage-band
A band above the Claude Code prompt showing how much of your plan you've used and what the session costs.
5h 20% 2h 40m 7d 58% 1d 7h 954.2k $4.32
| Pill | Shows |
| --- | --- |
| 5h | Rolling 5-hour rate limit: % used, then time until it resets |
| 7d | Weekly rate limit: % used, then time until it resets |
| | Prompt-cache tokens (read + written) since the mod loaded |
| | Session cost, the same figure as /cost |
Notes
- Rate-limit pills need a subscription login (Pro/Max). With an API key there are no windows to show, so only the cache and cost pills appear. They show up after the session's first API response.
- Cache tokens count from when the mod loads; the cost is the whole session's, as Claude Code keeps it.
- Icons are Nerd Font glyphs. Without a Nerd Font in your terminal they show as boxes.
- Colours assume a dark terminal theme.
Development
claude plugin validate plugins/usage-band
claude plugin test plugins/usage-band
hooks/register.tsx holds the hooks (session.start, session.measure, turn.complete, and the
ui.render hook for AbovePrompt); hooks/format.ts holds the pure formatting helpers.
其他同名作品
- usage-bandKhadeerBasha1232 · ★ 8
- usage-bandyash-gadodia · ★ 1
- usage-bandpawandeepdhall · ★ 1
- usage-bandersinkoc · ★ 1
- usage-bandiamkhalid2 · ★ 1
- usage-bandnemokoala · ★ 0
