✳ClaudeModsClaude Code mod ディレクトリ
☰
● 0 人がオンライン ・閲覧 0 回
+ 作品を投稿
← 作品一覧へ
GitHub リポジトリ · 使用量・コスト

token-weather-usage

token-weather-usage:プロンプトの上に1行:コンテキストウェザー、トークン、最近のプロンプトごとのバー、そして5時間と7日間の制限

aaugiefra@augiefra
token-weather-usage画像1
翻訳済み

この mod について

Token Weather Usage

Claude Code のプロンプトの上に1行:5時間と7日間の制限を時計と比較、コンテキストウェザー、トークン、プロンプトごとのバー。

デスクトップアプリのバンド

  • 5h / 7d:アカウントの制限のうち既に使用した割合。ペースに応じて緑、黄、赤で表示。経過時間との差はハッチング:余裕がある間は灰色、時間の経過より速く使用するとバーの色。次に残り時間とリセット時間(マシンのタイムゾーン)。
  • コンテキストウェザー:Clear から「まもなくコンパクト」まで、使用中のコンテキストウィンドウの割合による。アプリ内で描画されるアイコン、ターミナルでは Unicode 記号。
  • コンテキスト:ウィンドウのうち使用したパーセンテージとトークン数。
  • ターン:直近8回のプロンプトごとに1本のバー、追加したトークン数に応じた高さ。現在のプロンプトは色付き。再起動をまたいで保持。

経過時間との差のハッチング

ターミナルでは:

☂ Showers │ 63% context · 634k/1M │ turns ▃▆▂█▃▄▂▆ ▲ +6.3k │ 5h ━━━━━━╍─ 74% · 24 min → 18:20 │ 7d ━━━━━─── 65% · 2d20h

ラベルは英語またはフランス語:auto は LC_ALL、LC_MESSAGES、LANG に従い、それ以外の場合は Language オプション(/config)で en または fr を選択。

プライバシー

個人データの収集、送信、保持は行わず、ネットワークリクエストも行いません。このモッドは Claude Code が提供する使用量の数値とロケール変数を読み取り、プラグインのローカルストレージに最新の制限の読み取り値と、セッションごとの最近のコンテキスト読み取り値を保持します(8日間アイドル後に削除)。

クレジットとライセンス

天気、コンテキスト、ターンのチャートは Anthropic の Token Weather の例(claude-code-playground、Apache-2.0)に基づく。制限ゲージは HolyGrail の usage-meter(HolyGrail/claude-mods)に基づいて書かれており、そのコードはコピーしていません。Apache-2.0 ライセンス:LICENSE と NOTICE を参照。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add augiefra/claude-mods
claude plugin install token-weather-usage
原文 / README

Token Weather Usage

One line above the Claude Code prompt: your 5-hour and 7-day limits against the clock, the context weather, the tokens, and a bar per prompt.

The band in the desktop app

  • 5h / 7d: the share of your account's limits already used, in green, yellow or red by pace. The gap with the time elapsed is hatched: grey while you have margin, in the bar's color when you use faster than time passes. Then the time left and the reset time (machine's time zone).
  • Context weather: from Clear to "Compact soon", by the share of the context window in use. Icons drawn in the app, Unicode symbols in the terminal.
  • Context: percentage and tokens used out of the window.
  • Turns: one bar per prompt for the last 8, as tall as the tokens it added; the current prompt in color. Kept across restarts.

Hatching of the gap with elapsed time

In the terminal:

☂ Showers │ 63% context · 634k/1M │ turns ▃▆▂█▃▄▂▆ ▲ +6.3k │ 5h ━━━━━━╍─ 74% · 24 min → 18:20 │ 7d ━━━━━─── 65% · 2d20h

Labels in English or French: auto follows LC_ALL, LC_MESSAGES or LANG, otherwise pick en or fr in the Language option (/config).

Privacy

No personal data collected, sent or retained, no network requests. The mod reads the usage figures Claude Code provides and the locale variables, and keeps in the plugin's local storage the latest limits reading and, per session, recent context readings (deleted after 8 idle days).

Credits and license

Weather, context and turns chart after Anthropic's Token Weather example (claude-code-playground, Apache-2.0). Limit gauges written after HolyGrail's usage-meter (HolyGrail/claude-mods), without copying its code. Apache-2.0 license: see LICENSE and NOTICE.

元のソースを見る ↗

関連作品