---
title: "tach"
url: "https://claudemods.dev/zh-cn/builds/tach-28c0b0"
source: "https://github.com/DJPalefaceSD/rostech-mods/tree/main/plugins/tach"
source_type: "github"
repo: "https://github.com/DJPalefaceSD/rostech-mods/tree/main/plugins/tach"
author: "DJPalefaceSD"
author_handle: "DJPalefaceSD"
stars: 0
category: "仪表盘与 HUD"
categories: ["hud"]
tags: ["claude-code", "hooks", "hud", "plugin", "prompt", "tokens", "usage"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add DJPalefaceSD/rostech-mods\nclaude plugin install tach"
added: "2026-10-05T01:46:51.041Z"
updated: "2026-11-14T01:19:37Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# tach

提示符上方的转速表：在你选择的时间窗口内，显示 token 消耗速度。

## Description

# 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 测试。

## Install

```
claude plugin marketplace add DJPalefaceSD/rostech-mods
claude plugin install tach
```

## Original 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.
- `/tach` prints the rate and your busiest rate.
- `/tach 15m` or `/tach 1h` changes the window. The default is 5 minutes.
- `/tach hide` and `/tach show` toggle 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.
