DJPalefaceSD/rostech-mods/tree/main/plugins/tach
关于这个 mod
Tach
提示符上方的转速表。它会在十段横条上显示你当前消耗 token 的速度,即过去几分钟内每分钟产生的 token 数。
- 绿色表示轻松,琥珀色是上半区。最上方两格是红色区域。
- 红色区域以你自己的最高速率为基准,Tach 会跨会话记住它。这是你的红线,不是别人的。
/tach会打印当前速率和最高速率。/tach 15m或/tach 1h会更改窗口。默认值是 5 分钟。/tach hide和/tach show会切换横条的显示。
Tach 统计新产生的 token:每个回合新读取的内容、写入提示缓存的内容,以及生成的内容。它会排除缓存读取,因为读取很便宜,否则会淹没指针。每个回合结束时更新;你闲置时,数值会逐渐回到零。不会有任何内容离开你的机器。
它可以和 Gas Gauge(还剩多少套餐)、Speedometer(上下文有多满)以及 Odometer(会话总量)搭配使用。
已使用 Claude Code 2.1.287 测试。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add DJPalefaceSD/rostech-mods claude plugin install tach
原文 / README
Tach
A tachometer above the prompt. It shows how fast you are burning tokens right now, as tokens a minute over the last few minutes, on a ten-segment bar.
- Green is easy going. Amber is the upper half. The top two segments are the red zone.
- The red zone is measured against your own busiest rate, which Tach remembers across sessions. It is your redline, not someone else's.
/tachprints the rate and your busiest rate./tach 15mor/tach 1hchanges the window. The default is 5 minutes./tach hideand/tach showtoggle the band.
Tach counts fresh tokens: what each turn reads new, writes to the prompt cache, and generates. Cache reads are left out, because they are cheap and would swamp the needle. It updates when a turn ends, and slides back toward zero while you are idle. Nothing leaves your machine.
It pairs with Gas Gauge (how much plan is left), Speedometer (how full the context is) and Odometer (the session total).
Tested with Claude Code 2.1.287.
