ClaudeMods
☰
ZH-TW
● — 人在線上 · 瀏覽 — 次
贊助提交作品
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]

更多類似作品