andras-gyarmati/claude-quota-band
quota-band
一個 Claude Code 外掛,在提示上方顯示一列 5 小時和每週方案用量、內容視窗充滿程度與提示快取剩餘時間,並可選提供自訂提示按鈕。
關於這個 mod
quota-band 是 Claude Code 的狀態 HUD mod,透過提示上方的一列內容讓你隨時看到方案用量。
它用依使用百分比填滿的列顯示 5 小時和每週視窗,用灰色刻度表示視窗已經過的比例,並顯示小時/日期刻度;顏色規則為 95% 起紅色、80% 起橙色,領先均勻速率時為黃色,其他情況為白色。→ N% 標記顯示依目前速率到重設時會達到的位置,並顯示重設時間。它也會回報 ctx(內容視窗有多滿,以及冷快取時下一個請求會重新傳送多少 token)和 cache(提示快取保持溫熱的時間,從每輪結束時的 transcript 讀取;最後五分鐘變成橙色並顯示通知,變冷後變紅)。
兩個可選按鈕可以傳送你選擇的提示,需在 /config 或 settings.json 的 pluginConfigs 下設定。
它讀取 Claude Code 每次回應已經收到的數字(session.measure),不會自行傳送請求,也不讀寫檔案。需要 Claude Code 2.1.287 或更新版本,以及 Pro、Max 或 Team 方案。橫條會顯示在桌面應用程式的 Code 分頁;終端機會以文字顯示同一列。
使用 /plugin marketplace add andras-gyarmati/claude-quota-band,接著 /plugin install quota-band@claude-quota-band 安裝。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add andras-gyarmati/claude-quota-band claude plugin install quota-band
原文 / README
quota-band
A Claude Code mod that keeps your plan's usage in view: one line above the prompt with the 5-hour and weekly windows, the context window and the prompt cache's time left.
5h ▬▬▬▬▬▬▬▬▬ 93% → 100% 23:10 7d ▬▬▬▬▬▬▬ 72% 11:00 ctx ▬▬▬ 37% 370k cache ▬▬▬ 42m
- Each bar fills with the percent used. A grey tick marks how much of the window has passed, and the notches are hours (5h) or days (7d).
- Colours: red from 95%, orange from 80%, yellow while you are ahead of an even pace, white otherwise.
→ N%is where the current pace lands by the reset, with a dashed outline on the bar.- The time is when the window resets.
ctxis how full the context window is;370kis what the next request re-sends, which a cold cache has to write again.cachedrains over the time the prompt cache stays warm after the last response: the length the last response actually wrote, read from the transcript at the end of each turn, so it drops to five minutes in overage. Until the first turn ends (and on Windows, which has notail) it assumes an hour on a subscription's main thread, five minutes otherwise, or whatpromptCacheTtlsets. It turns orange in the last five minutes, with a toast, and red once cold.
Buttons
Two optional buttons send a prompt of your choice, for example a wrap-up skill. Set them in /config under the plugin's options, or in settings.json:
"pluginConfigs": {
"quota-band@claude-quota-band": {
"options": { "closeCommand": "/close-thread", "renamePrompt": "Rename this thread to cover every topic in it" }
}
}
Empty hides a button. A press during a turn waits until the turn ends.
It reads the figures Claude Code already receives with each response (session.measure), so it sends no requests of its own and reads or writes no files. The figures appear after the first response of a session, on Pro, Max and Team plans.
Install
Needs Claude Code 2.1.287 or later (Claude Mods). In Claude Code:
/plugin marketplace add andras-gyarmati/claude-quota-band
/plugin install quota-band@claude-quota-band
To pick up new versions on each start, set "autoUpdate": true for this marketplace under extraKnownMarketplaces in settings.json.
Bars draw in the desktop app's Code tab; the terminal shows the same line as text.
