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

查看原始来源 ↗

更多类似作品