@@ -56,13 +66,13 @@ export function RankRows({
to the name cell and must not inherit its overflow clip */}
{head ? {head} : null}
- {tail}
+ {tool ? name : tail}
{tipKey === i.key ? (
/* bottom rows flip the tip above the row — a below-tip
there would leave the panel (same rule as the sources
list: last two visible rows go up) */
-
= shown.length - 2 ? " up" : ""}`}>{i.label}
+
= shown.length - 2 ? " up" : ""}`}>{name}
) : null}
{/* The ranking is a bar in its own column — one shared origin, so
@@ -113,9 +123,11 @@ interface RankedProps {
weight?: "cost" | "tokens";
unpriced?: UnpricedModel[];
emptyText?: string;
+ /** Tool names go through the display map; model/project rows keep their label. */
+ tool?: boolean;
}
-export function RankedList({ label, items, limit = 5, weight = "cost", unpriced, emptyText }: RankedProps) {
+export function RankedList({ label, items, limit = 5, weight = "cost", unpriced, emptyText, tool = false }: RankedProps) {
const [all, setAll] = useState(false);
const [sort, setSort] = useState
("default");
const showMoney = useMoney();
@@ -144,7 +156,7 @@ export function RankedList({ label, items, limit = 5, weight = "cost", unpriced,
{items.length === 0 ? (
{emptyText ?? t("rank.empty")}
) : (
-
+
)}
setAll((v) => !v)} />
{listed.length > 0 ? (
diff --git a/apps/tokenme-bar/src/lib/format.ts b/apps/tokenme-bar/src/lib/format.ts
index b430d26d..3bb51454 100644
--- a/apps/tokenme-bar/src/lib/format.ts
+++ b/apps/tokenme-bar/src/lib/format.ts
@@ -64,7 +64,7 @@ const DISPLAY: Record = {
// 妙手 — the product's own current name (the engine's displays map wins
// when a report is loaded; this is the pre-report fallback).
catpaw: "妙手",
- dsh: "DSH",
+ dsh: "DeepSeek Harness",
cola: "Cola",
trae: "Trae",
trae_cn: "Trae CN",
diff --git a/apps/tokenme-bar/src/lib/i18n.ts b/apps/tokenme-bar/src/lib/i18n.ts
index 9ce8e859..27a6b7a8 100644
--- a/apps/tokenme-bar/src/lib/i18n.ts
+++ b/apps/tokenme-bar/src/lib/i18n.ts
@@ -735,10 +735,10 @@ const zh = {
/* TTFT ------------------------------------------------------------------ */
"ttft.title": "速度",
"ttft.about.label": "TTFT 指标说明",
- "ttft.about": "这些数据来自客户端实际使用记录,不是独立测速。Codex 按整轮统计,Claude Code 和 DSH 按请求统计,口径不同。Claude 的首段内容时间不等同于 TTFT;DSH 只有会话流包含首 token 时间时才会显示 TTFT 和 TPS,旧格式可能没有样本。结果会受样本量和模型记录字段影响;采集启用前的活动不会补录。",
+ "ttft.about": "这些数据来自客户端实际使用记录,不是独立测速。Codex 按整轮统计,Claude Code 和 DeepSeek Harness 按请求统计,口径不同。Claude 的首段内容时间不等同于 TTFT;DeepSeek Harness 只有会话流包含首 token 时间时才会显示 TTFT 和 TPS,旧格式可能没有样本。结果会受样本量和模型记录字段影响;采集启用前的活动不会补录。",
"ttft.codex": "Codex",
"ttft.claude": "Claude Code",
- "ttft.dsh": "DSH",
+ "ttft.dsh": "DeepSeek Harness",
"ttft.turn": "每轮",
"ttft.request": "每请求",
"ttft.ttft": "首 token",
@@ -746,7 +746,7 @@ const zh = {
"ttft.no_data": "暂无样本",
"ttft.head.avg": "平均",
"ttft.head.tps": "TPS",
- "ttft.no_host": "没有检测到运行中的工具 —— 打开 Codex、Claude Code 或 DSH 后,这里会显示采集到的速度。",
+ "ttft.no_host": "没有检测到运行中的工具 —— 打开 Codex、Claude Code 或 DeepSeek Harness 后,这里会显示采集到的速度。",
"ttft.scoped": "访问速度只采集本机数据 —— 当前显示的是 {name} 的用量,切回「本机」或「全部机器」可查看速度。",
"ttft.samples": "{n} 个样本",
"ttft.local": "本机",
@@ -761,7 +761,7 @@ const zh = {
"ttft.active.result": "主动测试 · {provider} · {age}",
"ttft.active.error": "测试未完成。请确认 CLI 已安装、已登录且支持所需的速度遥测。",
"set.ttft": "TTFT 探测",
- "set.ttft.hint": "被动记录 Codex、Claude Code 与 DSH 的首 token 时间和生成速度。",
+ "set.ttft.hint": "被动记录 Codex、Claude Code 与 DeepSeek Harness 的首 token 时间和生成速度。",
"set.ttft.failed": "TTFT 采集设置未能保存。",
/* 悬浮球 ---------------------------------------------------------------- */
@@ -1472,10 +1472,10 @@ const en: Record = {
"ttft.title": "Speed",
"ttft.about.label": "About TTFT measurements",
- "ttft.about": "These are measurements from actual client usage, not benchmarks. Codex reports per turn; Claude Code and DSH report per request, so compare them with care. Claude Code's first-content time differs from TTFT. DSH shows TTFT and TPS only when its session stream contains first-token timing; older formats may not provide samples. Results depend on available model fields and sample size. Collection starts when enabled; earlier activity is not backfilled.",
+ "ttft.about": "These are measurements from actual client usage, not benchmarks. Codex reports per turn; Claude Code and DeepSeek Harness report per request, so compare them with care. Claude Code's first-content time differs from TTFT. DeepSeek Harness shows TTFT and TPS only when its session stream contains first-token timing; older formats may not provide samples. Results depend on available model fields and sample size. Collection starts when enabled; earlier activity is not backfilled.",
"ttft.codex": "Codex",
"ttft.claude": "Claude Code",
- "ttft.dsh": "DSH",
+ "ttft.dsh": "DeepSeek Harness",
"ttft.turn": "per turn",
"ttft.request": "per request",
"ttft.ttft": "First token",
@@ -1483,7 +1483,7 @@ const en: Record = {
"ttft.no_data": "No samples yet",
"ttft.head.avg": "Avg",
"ttft.head.tps": "TPS",
- "ttft.no_host": "No supported tool is running — open Codex, Claude Code, or DSH to see collected speed data.",
+ "ttft.no_host": "No supported tool is running — open Codex, Claude Code, or DeepSeek Harness to see collected speed data.",
"ttft.scoped": "Access speed is collected on this machine only — you are viewing {name}; switch to 本机 or 全部机器 to see it.",
"ttft.samples": "{n} samples",
"ttft.local": "Local",
@@ -1498,7 +1498,7 @@ const en: Record = {
"ttft.active.result": "Active test · {provider} · {age}",
"ttft.active.error": "The test did not complete. Check that the CLI is installed, signed in, and supports the required speed telemetry.",
"set.ttft": "TTFT collection",
- "set.ttft.hint": "Passively records time to first token and generation speed for Codex, Claude Code, and DSH.",
+ "set.ttft.hint": "Passively records time to first token and generation speed for Codex, Claude Code, and DeepSeek Harness.",
"set.ttft.failed": "Could not save the TTFT collection setting.",
"bubble.today": "Today",
diff --git a/crates/adapters/dsh/src/lib.rs b/crates/adapters/dsh/src/lib.rs
index c8c10d50..a6a28c3e 100644
--- a/crates/adapters/dsh/src/lib.rs
+++ b/crates/adapters/dsh/src/lib.rs
@@ -50,7 +50,10 @@ pub const TOOL_ID: &str = "dsh";
pub use doctor::ledger;
pub use paths::diagnostic_candidates;
pub use speed::{read_speed_samples, DshSpeedSample};
-pub(crate) const DISPLAY_NAME: &str = "DSH";
+/// The name users see. The tool id stays `dsh` — it keys the index, the sync
+/// bundles, the theme slot and the host-process match — so only the display name
+/// follows the vendor's own spelling.
+pub(crate) const DISPLAY_NAME: &str = "DeepSeek Harness";
#[derive(Debug, Default, Clone, Copy)]
pub struct DshAdapter;
diff --git a/crates/usage-core/assets/dsh.png b/crates/usage-core/assets/dsh.png
index ad2f84e1..0f378636 100644
Binary files a/crates/usage-core/assets/dsh.png and b/crates/usage-core/assets/dsh.png differ
diff --git a/docs/ARCHITECTURE_EN.md b/docs/ARCHITECTURE_EN.md
index a34784a7..2eaf9d37 100644
--- a/docs/ARCHITECTURE_EN.md
+++ b/docs/ARCHITECTURE_EN.md
@@ -45,7 +45,7 @@ Cold start is ordered so the panel never waits on work it does not need. The eng
## TTFT and speed (off by default)
-Passive sampling reads local records only: Codex rollout completion records and DSH's local compressed session streams; Claude Code gets a loopback-only OTLP/HTTP JSON receiver (port 4319) — enabling merges the trace variables into the user's Claude settings, disabling removes only what TokenMe wrote, and only while it has not been touched since. Active checks are one-shot: a single fixed, short prompt fired only after an explicit click (Codex through an ephemeral read-only app-server thread, Claude Code with per-process OTLP settings, DSH timed by its own CLI), and nothing — prompt, response, credentials, active result — is persisted. Speed is this-machine only: under a remote origin's scope the speed page says so and asks to switch back to This machine or All machines.
+Passive sampling reads local records only: Codex rollout completion records and DeepSeek Harness's local compressed session streams; Claude Code gets a loopback-only OTLP/HTTP JSON receiver (port 4319) — enabling merges the trace variables into the user's Claude settings, disabling removes only what TokenMe wrote, and only while it has not been touched since. Active checks are one-shot: a single fixed, short prompt fired only after an explicit click (Codex through an ephemeral read-only app-server thread, Claude Code with per-process OTLP settings, DeepSeek Harness timed by its own CLI), and nothing — prompt, response, credentials, active result — is persisted. Speed is this-machine only: under a remote origin's scope the speed page says so and asks to switch back to This machine or All machines.
## Key invariants
diff --git a/docs/COMMANDS.md b/docs/COMMANDS.md
index 6a75a4fe..49d9d539 100644
--- a/docs/COMMANDS.md
+++ b/docs/COMMANDS.md
@@ -76,7 +76,7 @@ Open Design 配额读 `~/.amr/config.json` 的 `profiles.prod`(`OPEN_DESIGN_HO
## dsh-doctor
-DSH 精度审计:把桌面应用自己的投影台账(`tokenUsage`)与索引里的数字并排打印,逐会话给出 `ok`、`MISMATCH`、`v3 stream`、`not indexed`、`indexed but no projection` 之一的 `status`。备注里是如实偏差的结构性原因——继承的 v4 之前事件、活在 `tokenUsage` 之外的子代理开销。无参数。
+DeepSeek Harness 精度审计:把桌面应用自己的投影台账(`tokenUsage`)与索引里的数字并排打印,逐会话给出 `ok`、`MISMATCH`、`v3 stream`、`not indexed`、`indexed but no projection` 之一的 `status`。备注里是如实偏差的结构性原因——继承的 v4 之前事件、活在 `tokenUsage` 之外的子代理开销。无参数。
```bash
tokenme dsh-doctor
diff --git a/docs/COMMANDS_EN.md b/docs/COMMANDS_EN.md
index 18fd3e33..79f190a4 100644
--- a/docs/COMMANDS_EN.md
+++ b/docs/COMMANDS_EN.md
@@ -76,7 +76,7 @@ Most probes only read credentials. Exactly three write a rotated one back, each
## dsh-doctor
-DSH accuracy audit: the desktop app's own projection ledger (`tokenUsage`) printed next to what the index holds, per session, with a `status` of `ok`, `MISMATCH`, `v3 stream`, `not indexed` or `indexed but no projection`. Notes carry the structural reasons for honest drift — inherited pre-v4 events, subagent spend that lives outside `tokenUsage`. No flags.
+DeepSeek Harness accuracy audit: the desktop app's own projection ledger (`tokenUsage`) printed next to what the index holds, per session, with a `status` of `ok`, `MISMATCH`, `v3 stream`, `not indexed` or `indexed but no projection`. Notes carry the structural reasons for honest drift — inherited pre-v4 events, subagent spend that lives outside `tokenUsage`. No flags.
```bash
tokenme dsh-doctor
diff --git a/docs/USER_GUIDE_EN.md b/docs/USER_GUIDE_EN.md
index 348fce2b..7df12f9d 100644
--- a/docs/USER_GUIDE_EN.md
+++ b/docs/USER_GUIDE_EN.md
@@ -62,7 +62,7 @@ Built by `scripts/build-macos.sh` on macOS and by `pnpm tauri build --bundles ns
### 3.1 The five pages
- **Overview** — today's tokens, cost and cache hit rate, with usage charted by hour; the **Activity** tab is a GitHub-style year heatmap, and swiping right walks back through last week, last month and last year. The vendors' quota bars and notifications sit below.
-- **Speed** — passive TTFT (time to first token) and TPS measurement: Codex is read from its local rollout stream, Claude Code comes through OpenTelemetry spans, DSH from local session logs; Codex and Claude Code can also fire one short live request to measure for real.
+- **Speed** — passive TTFT (time to first token) and TPS measurement: Codex is read from its local rollout stream, Claude Code comes through OpenTelemetry spans, DeepSeek Harness from local session logs; Codex and Claude Code can also fire one short live request to measure for real.
- **Tools** — per-tool requests, sessions, tokens and cache rate, one row each, the row colour taken from the app's icon; tools that support check-in claim right from the row header.
- **Rankings** — sessions ranked, so the expensive ones stand out at a glance.
- **Details** — request-level records, filterable by model and project.
@@ -217,7 +217,7 @@ tokenme budget set zcode --daily 5 --monthly 50
| Qoder | Credits + Tokens | `~/.qoder/projects/**/*.jsonl` (credits) · `~/Library/Application Support/Qoder/SharedClientCache/cache/db/local.db` (tokens) |
| WorkBuddy AI | Tokens + credits | `~/.workbuddy-ai/projects/**/.jsonl` |
| WorkBuddy (China) | Tokens + credits | `~/.workbuddy/projects/**/.jsonl` |
-| AgnesCode / AtomCode / Crow5 / Mimocode / Cola / DSH | Tokens | auto-discovered, same shape as their parent tools |
+| AgnesCode / AtomCode / Crow5 / Mimocode / Cola / DeepSeek Harness | Tokens | auto-discovered, same shape as their parent tools |
| Kimi Code | Tokens | `~/.kimi-code/sessions/**/wire.jsonl` (legacy `~/.kimi`; the desktop app's embedded runtime home under `~/Library/Application Support/kimi-desktop/daimon-share/daimon/runtime/kimi-code/home` is read too) |
| MiniMax Code | Tokens | `~/.minimax/v2/sessions/**/messages.jsonl` (legacy `~/.mavis`) |