ClaudeMods
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交作品
GitHub 仓库 · 发布者 Equivalent_Scary

我制作了一个 Claude Code 模组,能在提示符上方显示你的 5 小时和每周限额,并在达到限额前警告你

两个小型 Claude Code 插件 API 模组:limits 在提示符上方显示一个条带,包含 5 小时和每周使用量、百分比、重置倒计时和上下文窗口填充,并在 75/90/100% 时弹出提示;idle-compact 在空闲 40 分钟后运行 /compact,以保持提示缓存温暖。

已翻译

关于这个 mod

我总是在周中毫无预警地被限制,所以我构建了两个小型 Claude Code 模组。它们挂钩到 Claude Code 的插件 API,因此没有包装器,也没有额外的进程。

limits:提示符上方始终显示的条带

5 小时和每周使用量:一个条、已用百分比和重置倒计时

当您当前的速度会在重置前用完限额时,百分比会变红。

上下文窗口填充,并在 75/90/100% 时弹出提示

idle-compact:更便宜地返回大型聊天

空闲 40 分钟后,它会在缓存仍然热乎时运行 /compact。

安装:

/plugin install limits --marketplace Ryan-LT/claude-mods /plugin install idle-compact --marketplace Ryan-LT/claude-mods

仓库(MIT):https://github.com/Ryan-LT/claude-mods

安装

安装方法请查看原始来源。

原文 / README

I kept getting blocked mid-week without warning, so I built two small Claude Code mods. They hook into Claude Code's plugin API, so there's no wrapper and no extra process. limits : an always-on band above the prompt 5-hour and weekly usage: a bar, the percent used and a countdown to the reset The percent turns red when your current pace would use up the limit before it resets. You find out on Tuesday, not when you're blocked on Thursday. Context window fill, plus toasts at 75/90/100% idle-compact : cheaper returns to big chats The prompt cache expires after an hour, so coming back to a 300k-token chat reloads all of it at full price After 40 min idle, it runs /compact while the cache is still warm, so the chat you return to is small It never compacts a chat you reopened cold, since that would cost full price How it works (if you want to build your own): limits renders an AbovePrompt band from the rate-limit readings Claude Code already receives. It shares one reading across all open sessions through the plugin store, so 10 open chats still make only one 1-token Haiku request every 2 min to stay fresh. Install (in terminal claude ): /plugin install limits --marketplace Ryan-LT/claude-mods /plugin install idle-compact --marketplace Ryan-LT/claude-mods Repo (MIT): https://github.com/Ryan-LT/claude-mods Feedback and ideas welcome! submitted by /u/Equivalent_Scary to r/ClaudeAI [link] [comments]

更多类似作品