YlLVTECH/token-statistics

a token statistics plugin for dsh (deepseek-harness)

Adds a Token Statistics section to the DSH web GUI's Settings page: overview cards (total tokens with input/output split, turns/steps with LLM/tool time, session counts), a dual-dimension aggregation table that toggles between By workspace and By model (each row expandable to member sessions with context occupancy), and dependency-free usage charts. Every figure comes from the session-projection seam (tokenUsage / contextPressure / sessionStats), so the numbers match exactly what the chat UI reports.

Other ★ 2 updated 2026-08-14 — untested
View on GitHub ↗

Install

dsh plugin --profile web add link:/absolute/path/to/token-statistics

Not published to npm yet — README (English, verified 2026-08-31) documents source install: (1) git clone https://github.com/YlLVTECH/token-statistics.git && cd token-statistics; (2) pnpm install (link: packages don't bring dependencies); (3) dsh plugin --profile web add link:/absolute/path/to/token-statistics; (4) append to <DSH_HOME>/profiles/web/cordis.patch.yml: - insert: / - id: tool-token-stats / name: dsh-tool-token-stats; (5) restart the harness.

Compatibility

DSH web profile; reads the same session-projection seam as the chat stats strip (api.sessions.list projections) — no own state; no runtime dependencies for charts.

Details

Recent updates

Settings Token Statistics section; overview cards; By workspace / By model aggregation with drill-down; dependency-free charts; reads session projections (no own state).

FAQ

Why isn't it on npm?
The plugin is not published to the npm registry yet — the README documents a link: source install from a clone, plus one cordis.patch.yml row.
Where does the data come from?
The same session-projection seam that powers the chat stats strip (api.sessions.list projections: tokenUsage, contextPressure, sessionStats) — the plugin holds no state of its own.
Can I drill into a single session?
Yes — click a workspace or model row to expand its member sessions, including context occupancy per session.

Alternatives

nonewind/dsh-spend · Mu-scorpio/token-usage-counter · juhe291/dsh-token-panel

More plugins in Other

Browse more in Other

Guides for Other plugins