caiyfa/dsh-token-stats

caiyfa★ 1JavaScriptLast synced: 2026-08-15

Open on GitHub

Global token-usage dashboard for deepseek-harness (dsh) — one-line install, background incremental scan, per-model/session/anomaly analytics. dsh plugin.

README excerpt

dsh-token-stats English 中文 The missing global token-usage dashboard for deepseek-harness (dsh) — one-line install, then open Settings to see per-model, per-time-bucket, and per-session consumption with anomaly tracking. Why dsh's built-in stats cover only the current session . Total consumption across sessions, per-model breakdowns, which day was heaviest, which sessions failed — none of that exists in the stock UI. This plugin adds all of it, and gets two easy-to-get-wrong things right: - Correct attribution : subagent tokens and anomalies roll up along the parentSession chain to their root main session — counts speak in main sessions only, while every subagent token lands on its owner - Zero wait : a resident background aggregate (warm-up at start → 60s incremental sweeps → 10min full rescans) means the Settings page always reads hot data Install Restart dsh, open Settings → Token 用量 . Done. - Requires: dsh (web profile), Node ≥ 22 - Several profiles: --profile=tui,web ; every profile: --profile=all - Uninstall: npx github:caiyfa/dsh-token-stats --uninstall - After upgrading dsh, re-run the installer once if the plugin fails to load — it repairs the links What you get Section Con…

View full README on GitHub →
Terminal / TUIdashboarddeepseek-harnessdsh-plugintoken-usage

Category