ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 Lunik

rtk-quota

一个 Claude Code 状态行插件,使用 rtk gain --quota 显示 rtk 节省的 token,以及这些节省相当于订阅配额的多少。

Lunik@Lunik

Lunik/gmz-claude-marketplace/tree/master/rtk-quota

已翻译

关于这个 mod

rtk-quota 是 gmz-claude-marketplace 的插件,会在右下角状态行网格添加一行,显示两个单元格:Tokens saved(rtk 一生累计节省的 token)和 Quota preserved(这些节省占订阅配额的比例)。它会在会话开始、每回合结束后以及第一次渲染时刷新一次,以便插件重新加载后填入数据。tier 选项默认为 20x,也可选 pro、5x 或 20x,会传给 rtk gain --tier;pro 会从 claude auth status 自动检测(Max 方案无法区分 5x 和 20x)。需要 PATH 中有 rtk 和 claude,在 rtk gain 返回前显示 -。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add Lunik/gmz-claude-marketplace
claude plugin install rtk-quota
原文 / README

rtk-quota

Shows what rtk saved you, from rtk gain --quota.

rtk ┃ Tokens saved 566.8K ┃ Quota preserved 9.4%

Cells

| Cell | Meaning | |---|---| | Tokens saved | Lifetime tokens saved by rtk. | | Quota preserved | Share of your subscription quota those savings represent. |

Options

| Option | Default | Meaning | |---|---|---| | tier | 20x | Subscription tier passed to rtk gain --tier: pro, 5x or 20x. |

pro is detected automatically from claude auth status. A Max plan cannot be told apart between 5x and 20x, so the option decides.

Behavior

  • Row in the bottom-right grid. Refreshed at session start and after every turn, and once on the first render so it also fills after a plugin reload.
  • Shows - until rtk gain has answered.

Requirements

rtk and claude on PATH.

更多类似作品