
我制作了一个 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

