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

usage-band

Claude Code 外掛會在提示列上方繪製纖細的復古風格狀態列,顯示 5 小時與每週方案用量,以及重設計時器。

iamkhalid2@iamkhalid2

iamkhalid2/usage-band/tree/main/plugins/usage-band

已翻譯

關於這個 mod

usage-band 是 Claude Code 外掛,會在提示列上方繪製一條復古風格的單行狀態列,顯示方案用量上限已經使用多少。

  • 5H:滾動的 5 小時視窗;WK:每週視窗。
  • 狀態列使用低飽和度的 70 年代夕陽漸層(青綠色、芥末黃、焦橙色、磚紅色),所以狀態列越滿,顏色看起來越暖。
  • 在寬度至少 70 欄的終端機上顯示距離每個視窗重設還有多久。
  • 只有在訂閱方案中,且 Claude Code 已從第一次回應讀到用量後才會出現;只有一行,沒有動畫,也沒有邊框。
  • 在終端機和桌面應用程式中,都能透過 AbovePrompt 插槽運作。

安裝:

claude plugin marketplace add iamkhalid2/usage-band
claude plugin install usage-band@usage-band

使用 /usage-band 切換。內部的 hooks 模組(plugins/usage-band/hooks/register.tsx)監聽 session.measure 取得速率限制視窗,並在 AbovePrompt 上的 ui.render hook 中繪製。它只讀取用量數字,不發出網路請求,也不會在工作階段之外儲存任何內容。採 MIT 授權。

安裝

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

claude plugin marketplace add iamkhalid2/usage-band
claude plugin install usage-band
原文 / README

usage-band

A Claude Code mod: a slim, retro-styled line above the prompt that shows how much of your plan's usage limits you've used.

5H ▰▰▰▰▰▰▱▱▱▱▱▱ 62% · 2h 14m  ◆  WK ▰▰▱▱▱▱▱▱▱▱▱▱ 31% · 3d 4h
  • 5H: the rolling 5-hour window. WK: the weekly window.
  • Bars run through a muted 70s sunset gradient (teal, mustard, burnt orange, brick), so a fuller bar reads warmer.
  • Shows time until each window resets (on windows 70+ columns wide).
  • One line, no animation, no border. It stays out of the way.
  • Shown only on a subscription plan, once Claude Code has a reading from your first response. Without rate-limit data there is nothing to draw.
  • Works in the terminal and the desktop app (the AbovePrompt slot).

Install

claude plugin marketplace add iamkhalid2/usage-band
claude plugin install usage-band@usage-band

Start a new session (or reload plugins in a running one).

Use

It shows up on its own. /usage-band hides or shows the line.

Uninstall

claude plugin uninstall usage-band@usage-band

How it works

A hooks module (plugins/usage-band/hooks/register.tsx) listens to session.measure for the rate-limit windows and draws them in a ui.render hook on the AbovePrompt component. It reads usage figures only; it makes no network requests of its own and stores nothing outside the session.

License

MIT

Contact

[email protected]

其他同名作品

更多類似作品