
我製作了一個 Mod,可以即時顯示你的 5hQXZKQZXAQ 使用情況,在提示列上方重置預測和上下文%,並帶有可選的自動壓縮和手動壓縮按鈕
我曾經常檢查我的使用情況。設定、使用頁面、 /usage 或上下文使用的小圓圈。我也一直忘記壓縮,直到上下文變得巨大並且我的限制更快地耗盡。當我昨天發現 Claude Mods 已經登陸時,我建立了一個小助手,位於提示上方並顯示所有內容,以及自從我開始在桌面應用程式中使用 Claude Code 以來我想要的更多功能(順便說一句,也可以在終端中使用)。顯示內容:5 小時和每週使用情況,與應用程式本身的計劃使用限制面板相符(這是你的整個帳戶,因此聊天和 Cowork 使用也很重要)對你重置位置的預測。它會學習你平常的節奏,因此早期的上下文突發不會引發警報。如果你即將用完,它會大致說明時間並警告你。上下文視窗 % 包含訊息、工具和其他細分,因為 /context 將其視為壓縮按鈕,加上可選的自動壓縮(預設為 30%,但 15% 到 99% 之間的任何位置都可以)。它是在每個會話中設定的,並在新會話中關閉,因此如果你願意,大型功能構建可以保留其完整上下文,或者當你不需要大上下文並且可以接受比較時,你可以保存權杖

關於這個 mod
我經常檢查我的使用情況。設定、使用頁面、 /usage 或上下文使用的小圓圈。我也一直忘記壓縮,直到上下文變得巨大並且我的限制更快地耗盡。當我昨天發現 Claude Mods 已經登陸時,我建立了一個小助手,位於提示上方並顯示所有內容,以及自從我開始在桌面應用程式中使用 Claude Code 以來我想要的更多功能(順便說一句,也可以在終端中使用)。顯示內容:5 小時和每週使用情況,與應用程式自己的計劃使用限制面板相符(這是你的整個帳戶,因此聊天和 Cowork 使用也很重要)對你重置位置的預測。它會學習你平常的節奏,因此早期的上下文突發不會引發警報。如果你即將用完,它會大致說明時間並警告你。上下文視窗 % 包含訊息、工具和其他細分,因為 /context 將其視為壓縮按鈕,加上可選的自動壓縮(預設為 30%,但 15% 到 99% 之間的任何位置都可以)。它是在每個會話中設定的,並在新會話中關閉,因此如果你願意,大型功能建置可以保留其完整上下文,或者當你不需要大上下文並且可以經常壓縮時可以保存權杖。一旦你打開它們,它就會加載到任何現有的聊天/session上,也可以折疊到one行,該行仍然顯示相關的使用資訊和計時器,並且/quota可以打開和關閉它。適用於深色和淺色主題,當你在桌面應用程式上切換主題時會自動切換。它也適用於桌面應用程式中所有視窗寬度,直到最窄的視窗寬度。它在本地執行並讀取 Claude Code 已有的內容(上下文資料加上每個回應攜帶的使用資料)。大約每隔 2 分鐘,它就會透過你現有的登入名稱呼叫 /usage 和 /context 的伺服器,使用面板顯示的資料相同,以確保兩者的資料都是最新的,尤其是上下文中斷資料。這是唯一的網路呼叫。它從不直接處理你的憑證。它是 MIT 許可的,主要是 one 文件,所以請在安裝之前閱讀它。已知限制:在你發送訊息之前,它無法在桌面的空「歡迎回來」畫面上繪製,因為那裡還沒有會話。它是 v0.1.3,所以預計會有粗糙的邊緣。從 Claude Code 內部安裝:/plugin install claude-code-usage-quota --marketplace anantraghunath/claude-code-usage-quota-mod 存儲庫和屏幕截圖:https://github.com/anantraghunath/claude-code-usage-quota-mod 完整披露:我用 Claude Code 大約一天構建了它。歡迎提供回饋和錯誤報告。值得讚揚的是:這一切始於我喜歡新的 mods 功能中共享的提示 u/itsxzy 。我接受了它並繼續建造。感謝!由 /u/Antpocalypse_7 提交 [連結] [評論]
安裝
安裝方式請查看原始來源。
原文 / README
I used to keep checking my usage way too often. Settings, the usage page, /usage , or the little circle for the Context usage. I also kept forgetting to compact until the context was huge and my limits were draining faster. When I found out yesterday that Claude Mods have landed, I built a small helper that sits above the prompt and shows it all, along with a few more features I've wanted since I started using Claude Code in the Desktop App (also works in the terminal btw). What it shows: 5 Hour and Weekly usage, matching the app's own Plan usage limits panel (it's your whole account, so chat and Cowork use counts too) A forecast of where you'll be at reset. It learns your usual pace, so an early context burst doesn't set off alarms. If you're on course to run out, it says roughly when and warns you. Context window % with a Messages, Tools and Other breakdown, as /context counts it A Compact button, plus optional Auto compact at a % you pick (30% by default, but anywhere between 15% to 99% works). It's set per session and off for new sessions, so a big feature build can keep its full context if you'd like or you can save tokens when you don't need big context and are okay with compacting often. It loads on any existing chat/session once you open them and can also be collapsed to one line which still shows the relevant usage info and timers, and /quota toggles it on and off. Works on both Dark and Light Themes, automatically switching when you switch the theme on the desktop app. It also works on all window widths down to the narrowest in the desktop app. I t runs locally and reads what Claude Code already has (context data plus the usage data each reply carries). About every 2 minutes it calls the servers for /usage and /context via your existing login, the same data the usage panel shows to ensure up to date data on both, especially the context breakup data. That's the only network call. It never handles your credentials directly. It's MIT Licensed, mostly one file, so please read it before installing. Known limits: it can't draw on the desktop's empty "Welcome back" screen until you send a message, because there's no session there yet. And it's v0.1.3, so expect rough edges. Install from inside Claude Code: /plugin install claude-code-usage-quota --marketplace anantraghunath/claude-code-usage-quota-mod Repo and screenshots: https://github.com/anantraghunath/claude-code-usage-quota-mod Full disclosure: I built it with Claude Code in about a day. Feedback and bug reports are all welcome. Credit where it's due: this started from the prompt u/itsxzy shared in I'm liking the new mods feature . I took it and kept building. Thanks! submitted by /u/Antpocalypse_7 [link] [comments]
其他同名作品
- 我做了一個 Mod:在提示框上方即時顯示 5 小時/每週用量、重設預測與上下文百分比,可選自動壓縮並提供手動壓縮按鈕Antpocalypse_7 · ★ 0

