
5時間/週間の使用量、リセット予測、コンテキスト率を入力欄の上に表示する Mod を作りました。自動コンパクトと手動ボタンにも対応しています
Reddit の投稿者が、入力欄の上に 5 時間・週間使用量、リセット予測、コンテキストウィンドウ率を表示し、手動 Compact ボタンと任意の自動コンパクト(15%-99%、デフォルト 30%)を提供する Claude Code プラグインを紹介しています。

この mod について
これは入力欄の上に表示される Claude Code のステータス HUD mod です。Plan usage limits パネルに対応した 5 時間・週間使用量、普段のペースに基づくリセット予測、/context と同じ数え方で Messages、Tools、Other に分けたコンテキストウィンドウ率を表示します。Compact ボタンと、15% から 99%(デフォルト 30%、新しいセッションではオフ)で選べるセッションごとの自動コンパクトを備え、既存セッションに読み込まれます。関連する使用量情報とタイマーを残した 1 行に折りたたむこともでき、/quota で切り替えられます。ダークテーマとライトテーマに対応し、デスクトップアプリのテーマ変更に自動追従します。デスクトップアプリでは最も狭い幅を含むすべてのウィンドウ幅に適応します。ローカルで動作し、コンテキストデータと各返信に含まれる使用量データを読み取ります。約 2 分ごとに既存のログインで /usage と /context を取得するネットワーク呼び出しが 1 回だけ行われ、認証情報を直接扱いません。MIT ライセンスで、ほぼ 1 ファイルなのでインストール前に読むことが推奨されています。空の welcome 画面ではメッセージを送るまで描画できず、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
インストール
インストール方法は元のソースをご確認ください。
原文 / 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. 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]
