hashdiana/dsh-token-usage
A clearer, prettier token-usage bar for the DSH web UI: replaces the cramped one-line usage text with a glanceable chip bar plus a details panel. Thin occupancy bar turns green → amber → red as the context window fills; billed input splits into cache-read / cache-write / uncached with the cache-hit rate shown up front; decode throughput (tok/s) and average first-token latency (TTFT) on the bar; click for a details panel with context composition (system/tools/messages), stacked input split, and session turn/step/model/tool time.
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hashdiana/dsh-token-usageGitHub install per README (recommended): npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hashdiana/dsh-token-usage, then restart the profile (dsh web). The Git path ships the built lib/ so no build script runs at install time. npm package dsh-token-usage 2.2.0 also exists (registry-verified 2026-08-26) but README documents the GitHub path. MIT.
Compatibility
DeepSeek Harness web profile. Follows the active light/dark theme; replaces the stock one-line token usage under the composer.
Details
- Repo: hashdiana/dsh-token-usage
- Category: Other
- Stars: 3
- Version: GitHub source per README; npm dsh-token-usage 2.2.0 registry-verified
- Last push: 2026-08-17
- First seen: 2026-08-13
Recent updates
v2.2.0: occupancy bar; cache-read/write split; tok/s + TTFT; details panel; theme-following.
FAQ
- What does the bar show?
- Context occupancy (green → amber → red), input/output/cache token split with cache-hit rate, tok/s decode throughput, and TTFT.
- How do I see the full breakdown?
- Click the bar to open a details panel with context composition, the stacked input split, and session turn/step/model/tool time.
- Does it match my theme?
- Yes — the bar and panel follow the harness light/dark theme.
Alternatives
YYTbit/dsh-plugin-cost-tracker · Ychris12138/dsh-usage-stats · lanlandeli/dsh-usage-stats