
5hQXZKQZXAQ の使用状況をライブで表示し、プロンプト ボックスの上にリセット予測とコンテキストを表示し、オプションの自動コンパクト ボタンと手動コンパクト ボタンを備えた Mod を作成しました。
私は以前、自分の使用状況を頻繁にチェックし続けていました。設定、使用法ページ、 /usage 、またはコンテキスト使用法の小さな円。また、コンテキストが巨大になり、制限の消耗が早くなるまで、圧縮することを忘れ続けていました。昨日、Claude Mod が登場したことを知ったとき、プロンプトの上に配置してすべてを表示する小さなヘルパーを作成しました。デスクトップ アプリで Claude Codeを使い始めてから欲しかった機能もいくつか表示します (ちなみにターミナルでも動作します)。表示される内容: 5 時間と週の使用量。アプリ独自のプラン使用制限パネルと一致します (アカウント全体であるため、チャットと Cowork の使用もカウントされます)。リセットされる場所の予測。ユーザーの通常のペースを学習するため、早期のコンテキストバーストによってアラームが鳴ることはありません。使い果たされそうな場合は、おおよその時間を表示して警告します。 /context がカウントするメッセージ、ツール、その他の内訳を示すコンテキスト ウィンドウ % コンパクト ボタンと、オプションで選択した% での自動コンパクト (デフォルトでは 30% ですが、15% から 99% までの任意の場所で機能します)。これはセッションごとに設定され、新しいセッションではオフになるため、必要に応じて大きな機能のビルドで完全なコンテキストを維持したり、大きなコンテキストが必要なく、コンプで問題ない場合はトークンを保存したりできます。

この mod について
私は以前、自分の使用状況を頻繁にチェックし続けていました。設定、使用法ページ、 /usage 、またはコンテキスト使用法の小さな円。また、コンテキストが巨大になり、制限の消耗が早くなるまで、圧縮することを忘れ続けていました。昨日、Claude Mod が登場したことを知ったとき、プロンプトの上に配置してすべてを表示する小さなヘルパーを作成しました。デスクトップ アプリで 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 を使用して約 1 日で構築しました。フィードバックやバグレポートは大歓迎です。クレジット: これは、「新しい MOD 機能が好きです」で共有されたプロンプト 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]
同名の他の作品
- 5時間/週間の使用量、リセット予測、コンテキスト率を入力欄の上に表示する Mod を作りました。自動コンパクトと手動ボタンにも対応していますAntpocalypse_7 · ★ 0

