DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-tokscale-usage

d

dsh-tokscale-usage

Identified

Local 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): search dsh-tokscale-usage and click Install.
  • From CLI (dsh web or 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 / ☾ Dark switcher, 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) and antigravity-cli (agy CLI) under a single antigravity identifier, computes real output generation speed (tok/s) from local transcript.jsonl step timings alongside prompt-stripped Codex output throughput, and enriches session-level tokscale --group-by client,session,model usage with local conversation_summaries.db titles, 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 (Agent donut, Model donut/radial gauges, Workspace dual master rings + per-project concentric rings, and Task usage overview rings + per-task 54×54 concentric dual rings), and collision-free quadrant efficiency bubble map.
  • Slash Command: /tokscale outputs a monthly text summary with token buckets, cache hit rate, estimated cost, and top tasks.
  • Agent Tool: tokscale_usage queries local token usage filtered by range (today, yesterday, days3, week, month, all, custom), client, model, since, until, and refresh.

Notes & Limitations

  • Cost is an estimate, calculated by tokscale pricing 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, All range 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 versionPublishedSize
1.0.1——

Comments

Loading…

Similar plugins

dsh-token-usage

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

Manifest valid

★ 0

MIT

JavaScript

Aug 22, 2026

dsh plugin --profile web add dsh-token-usage

by solstice621

该仓库暂未提供项目说明。

Tools & CapabilitiesModels & ProvidersManifest valid

★ 3

↓ 37/wk

MIT

JavaScript

Oct 30, 2026

dsh plugin --profile web add dsh-token-usage-dashboard

by 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

Tools & CapabilitiesUI & ExperienceManifest valid

★ 3

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add dsh-deepseek-monitor-moyuer233

by 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 设置面板词元用量统计插件

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add @local/token-usage

by 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

Tools & CapabilitiesModels & ProvidersManifest valid

★ 8

MIT

TypeScript

Sep 7, 2026

dsh plugin --profile web add dsh-token-saver
dsh-personal-center8

No screenshots

by PolinniZhong

DSH 个人配置:Token 用量统计 / 成本估算 / 自定义指令 / 外观全局字号 / 桌面宠物(含会话状态概览),纯本地不联网。Personal center for DSH: usage stats, cost estimation, custom instructions, global font size & desktop pet with session overview — al

Themes & SkinsManifest valid

★ 115

↓ 732/wk

MIT

JavaScript

Oct 30, 2026

dsh plugin --profile web add dsh-personal-center