KTCrisis/flux7-mods/tree/main/usage-bell
關於這個 mod
當工作階段接近上限時,在 Claude Code 工作階段內發出提示。每次 session.measure 會在上下文視窗達到 70/85/95%、已回報的速率限制視窗(5h、7d)達到 80/95% 並顯示重設時間,以及自動記憶索引(MEMORY.md)達到 200 行或 25,000 位元組載入上限的 90% 時顯示 toast。每個門檻上升時只提示一次,下降 5 個百分點後重新啟用。提示列下方會以暗色顯示 ctx 62% · 5h 41% · 7d 12% · mem 145/200;/usage7 會將其與門檻一起列印,/usage7 test 會發出範例提示。它只發出訊號,絕不會壓縮或清理內容。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add KTCrisis/flux7-mods claude plugin install usage-bell
原文 / README
usage-bell
Rings, inside a Claude Code session, when the session nears a limit.
What it does
On each session.measure (the engine pushes one after every turn, and when a
rate-limit window moves a point):
- context: a toast at 70, 85 and 95 % of the window, with the tokens;
- rate limits: a toast at 80 and 95 % of each window the last response
reported (
5h,7d), with the time it resets; none off a subscription.
And for the auto-memory index (MEMORY.md, found in the session's own
context breakdown at start): read at start and after each Write or Edit into
its folder. The engine cuts it at load past 200 lines or 25,000 bytes
(2.1.288); the bell rings at 90 % of either, and again once it is past.
Each threshold rings once on the way up; a value that falls 5 points under it
(a compaction, /clear, a window that reset) arms it again.
The readings ride dim at the end of the hint line under the prompt, ctx 62% · 5h 41% · 7d 12% · mem 145/200, rather than as a pinned status line, which
the engine draws with a warning sign; /usage7 prints them against their
thresholds.
With avatar7 loaded, the avatar announces each toast in its own voice, in
amber. Neither mod depends on the other. /usage7 test rings a sample toast,
to hear that voice without waiting for a threshold.
Limits
- It signals and never acts: no compaction, no memory pruning.
- The memory limits are the engine's constants in 2.1.288; a later build may move them.
- Cost is left out: on a subscription it means nothing.