Foreword¶
When running multiple sessions simultaneously in DSH Web, the single session interface usually only shows the current conversation. To view which sessions are still running, how many tokens each session consumes, the estimated costs, and to analyze duration by tool type, a cross-session observation panel is needed.
wellorbetter/dsh-plugin-window-stats provides a set of local read-only statistical views for this requirement.
What is this¶
wellorbetter/dsh-plugin-window-stats is a DeepSeek Harness web plugin, maintained by wellorbetter, with an MIT license.
It targets DSH’s web profile, putting the progress, token usage, and cost of each session into a single view, and provides session analysis and an overview drawer.
The plugin declares itself 100% read-only and local: no outbound requests, no session writes. It registers a tokenHistory projection.
Core Features¶
- All-windows overview: View progress, tokens, and cost for all sessions.
- Session analysis: Perform time range analysis on the current session, supporting presets and custom ranges.
- Token trend chart: View token trends.
- Tool-type duration distribution: View duration distribution by tool type.
- Per-turn task summaries: View summaries for each turn.
- Token heatmap: Provide a token heatmap.
- Cost estimation: Estimate costs based on DeepSeek official pricing, distinguishing
V4-Flash/V4-Proandcache-hit/cache-miss/outputpricing, supportingUSD/CNY/EUR/GBP/JPYswitching. - Sidebar footer summary: Continuously display running count, total tokens, and cost at the bottom of the sidebar.
- Right overview drawer: The right drawer displays running sessions, top token consumers, and recent activity; supports click to open.
- Toolbar: Supports sort, filter, group-by-workspace, as well as model and currency selection.
Installation and Enablement¶
Requires dsh CLI / DeepSeek Harness. The command below is for GitHub installation:
dsh plugin --profile web add github:wellorbetter/dsh-plugin-window-stats
After installation, restart the profile:
dsh web
Installing from GitHub comes with pre-built JavaScript (lib/), no build step or allowBuilds permission needed.
Typical Usage¶
-
After restarting
dsh web, the bottom of the sidebar will continuously display running count, total tokens, and cost. -
Open any session, click the
Window Statstab, and view progress, tokens, and cost for each session; click on a row to view a rich breakdown. -
In the
Window Statstoolbar, perform sort, filter, group, or switch model and currency. -
Open the
Session Analysistab, select a time range for the current session, and view the token trend chart, tool-type duration distribution, and per-turn task summaries. -
Click the edge handle of the drawer on the right to expand running / top-tokens / recent overview; click on any row to open the corresponding session.
Applicable Scenarios and Notes¶
Suitable for personnel using the DSH web client who need to quickly check multiple session status, token usage, and costs.
Although the plugin declares 100% read-only and local, no outbound requests, no session writes, it still runs with the current dsh process permissions. Source code and license should be checked before installation; the license for this plugin is MIT.
Cost estimation is based on DeepSeek official pricing (V4-Flash / V4-Pro, cache-hit / cache-miss / output charged separately), and supports USD / CNY / EUR / GBP / JPY switching.
Ending¶
wellorbetter/dsh-plugin-window-stats integrates multi-session progress, token usage, cost estimation, and session analysis into DSH Web’s local read-only views.
The community directory is an independent site and has no official affiliation with DeepSeek / Huaquan; you can search for wellorbetter/dsh-plugin-window-stats in the directory.
GitHub: https://github.com/wellorbetter/dsh-plugin-window-stats