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-Pro and cache-hit / cache-miss / output pricing, supporting USD / CNY / EUR / GBP / JPY switching.
  • 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

  1. After restarting dsh web, the bottom of the sidebar will continuously display running count, total tokens, and cost.

  2. Open any session, click the Window Stats tab, and view progress, tokens, and cost for each session; click on a row to view a rich breakdown.

  3. In the Window Stats toolbar, perform sort, filter, group, or switch model and currency.

  4. Open the Session Analysis tab, select a time range for the current session, and view the token trend chart, tool-type duration distribution, and per-turn task summaries.

  5. 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