dsh-tokscale-usage
IdentifiedLocal multi-agent token usage studio powered by tokscale and dsh-context: calibrated light/dark cool-mineral themes, configurable harness scope, unified Antigravity/Codex/DSH trends & real output thro
dsh-tokscale-usage
English | 中文
Local multi-agent token usage and telemetry dashboard for DeepSeek Harness (DSH), backed by @tokscale/cli and local dsh-context / Codex session metadata.
@tokscale/cli is declared as a direct package dependency with prebuilt platform binaries (win32, darwin, linux on x64 and arm64, without postinstall build scripts). Installing this plugin automatically provides the tokscale binary without requiring global CLI installation or PATH configuration.
Install
- From DSH Plugin Market (
dshmarket/ DSH Discover): searchdsh-tokscale-usageand click Install. - From CLI (
dsh webor custom profile):
dsh plugin --profile <profile> add https://github.com/XS-dev/dsh-tokscale-usage/releases/download/v1.0.1/dsh-tokscale-usage-1.0.1.tgz
Features
- Sidebar Panel (
Usage insights / 用量洞察) — Precision Telemetry DLS v1.0:- Calibrated Light & Dark Cool-Mineral Themes: dedicated Cool Alabaster (Light) and Deep Obsidian Slate (Dark) palettes with automatic DSH host theme synchronization and a 1-click
◐ Auto / ☀ Light / ☾ Darkswitcher, paired with a fixed non-bleeding top command dock. - Configurable Harness Scope (
⚙ Harnesses / 常用范围): choose and persist which local agent harnesses are queried and listed (~/.dsh/tokscale-usage/scope.json), avoiding scans across unused clients. - Unified Antigravity Accounting, Throughput & Task Attribution: folds
antigravity-extension(Desktop IDE) andantigravity-cli(agyCLI) under a singleantigravityidentifier, computes real output generation speed (tok/s) from localtranscript.jsonlstep timings alongside prompt-stripped Codex output throughput, and enriches session-leveltokscale --group-by client,session,modelusage with localconversation_summaries.dbtitles, workspace paths, step counts, and subagent tags. - Global Two-Stage Inspection & Drilldown: hover to preview, single-click any chart datum to pin/lock inspection readouts without mutating global filters, and double-click to jump/filter globally (with a 20-step
← Back/Alt+←filter history stack). - Pure-SVG Multi-Ring & Curve Telemetry: Hero KPI jumpers, smooth non-bar 24-hour intraday spline curve on single-day windows, multi-day stacked Agent bars with a synchronized Spend Sub-Lane, Monday-aligned 8-week activity heatmap, semantic token composition, Ring-family comparisons (
Agentdonut,Modeldonut/radial gauges,Workspacedual master rings + per-project concentric rings, andTask usageoverview rings + per-task54×54concentric dual rings), and collision-free quadrant efficiency bubble map.
- Calibrated Light & Dark Cool-Mineral Themes: dedicated Cool Alabaster (Light) and Deep Obsidian Slate (Dark) palettes with automatic DSH host theme synchronization and a 1-click
- Slash Command:
/tokscaleoutputs a monthly text summary with token buckets, cache hit rate, estimated cost, and top tasks. - Agent Tool:
tokscale_usagequeries local token usage filtered byrange(today,yesterday,days3,week,month,all,custom),client,model,since,until, andrefresh.
Notes & Limitations
- Cost is an estimate, calculated by
tokscalepricing tables rather than billing APIs. Models without known pricing report$0. - Read-only: the plugin never modifies or moves session transcripts. Cached reports and scope settings are stored under
$DSH_HOME/tokscale-usage(or~/.dsh/tokscale-usage). - Incremental scanning: once initial history is cached, routine refreshes scan a rolling 14-day window and merge into the persisted daily graph; full-history rescans run only on cold cache,
Allrange refreshes, or explicit full discovery.
Development & Contributing
See CONTRIBUTING.md for local DSH symlink setup, architecture guardrails, and Pull Request workflow.
npm test
License
MIT
Versions
| Latest version | Published | Size |
|---|---|---|
| 1.0.1 | — | — |
Comments
Loading…
Similar plugins
by Nigel211
DeepSeek Harness (DSH) 的 Token 用量与费用统计插件:趋势图、日历热力图、模型占比环图与多平台账户余额。Token usage & cost analytics for DeepSeek Harness (DSH): trend charts, calendar heatmap, model share donut, and multi-provider balance
★ 0
MIT
JavaScript
Aug 22, 2026
dsh plugin --profile web add dsh-token-usageby solstice621
该仓库暂未提供项目说明。
★ 3
↓ 37/wk
MIT
JavaScript
Oct 30, 2026
dsh plugin --profile web add dsh-token-usage-dashboardby moyuer233
DeepSeek usage monitor as a DeepSeek Harness (DSH) plugin: balance / day-month-all-time token & cost panel in the chat UI with drag-reorder config, plus an optional local usage proxy
★ 3
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add dsh-deepseek-monitor-moyuer233by GIN0076
📊 Token usage dashboard for DeepSeek Harness Settings — daily/weekly/monthly per-model token stats with line & bar charts. Local-first, zero deps, pure SVG. DSH 设置面板词元用量统计插件
★ 0
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add @local/token-usageby Shaw529
DeepSeek Harness plugin that aggressively saves tokens without affecting task quality: lossless head/tail truncation of tool results (default), grep-result folding, pressure-triggered dsh-compaction-b
★ 8
MIT
TypeScript
Sep 7, 2026
dsh plugin --profile web add dsh-token-saverby PolinniZhong
DSH 个人配置:Token 用量统计 / 成本估算 / 自定义指令 / 外观全局字号 / 桌面宠物(含会话状态概览),纯本地不联网。Personal center for DSH: usage stats, cost estimation, custom instructions, global font size & desktop pet with session overview — al
★ 115
↓ 732/wk
MIT
JavaScript
Oct 30, 2026
dsh plugin --profile web add dsh-personal-center