✳ClaudeModsClaude Code 模組目錄
☰
● 0 人在線上 · 瀏覽 0 次
+ 提交作品
← 返回作品集
GitHub 儲存庫 · 用量與成本

token-weather-usage

token-weather-usage:提示字元上方一行:上下文天氣、權杖數、最近每個提示字元一根條形,以及您的 5 小時和 7 天限制

aaugiefra@augiefra
token-weather-usage圖片1
已翻譯

關於這個 mod

Token Weather Usage

在 Claude Code 提示字元上方一行:您的 5 小時和 7 天限制對比時鐘、上下文天氣、權杖數,以及每個提示字元一根條形。

桌面應用程式中的條帶

  • 5h / 7d:您的帳戶限制已使用的比例,按速度顯示綠色、黃色或紅色。與已用時間的差距用陰影線表示:有剩餘時為灰色,使用速度超過時間流逝時顯示為條形的顏色。然後是剩餘時間和重置時間(機器的時區)。
  • 上下文天氣:從晴朗到「即將壓縮」,根據已使用的上下文視窗比例。應用程式內繪製圖示,終端機中使用 Unicode 符號。
  • 上下文:已使用視窗的百分比和權杖數。
  • 輪次:最近 8 個提示字元每個一根條形,高度為其新增的權杖數;當前提示字元用顏色顯示。跨重啟保留。

與已用時間的差距陰影線

終端機中:

☂ 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.

查看原始來源 ↗

更多類似作品