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

⚠️ Upstream documents a local-checkout install — the command it gives is a path on your own machine, so there is nothing pasteable here. See the README for its exact steps.

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