dsh-session-overview: DeepSeek Harness Session Overview Plugin

Introduction

When developing agents or applications that interact with DeepSeek models, it’s essential to quickly grasp the runtime state and resource consumption of the current session. The existing DeepSeek Harness (DSH) provides two tabs in its conversation view—Chat and Trajectory—but lacks a consolidated statistics overview for the entire session. dsh-session-overview adds a new Overview tab to the conversation view switcher, aggregating Token usage, turn count, and timing data for the current session.

Plugin Positioning

dsh-session-overview is a DSH plugin maintained by Qing8-Max, classified as a client-side component. It reads projected data (sessionStats and tokenUsage) from the DSH Host and renders overall session statistics in the browser, without initiating any new model requests.

Core Features

  • Total Token Statistics: Displays the Host’s metering data in four buckets—uncached input, cache read, cache write, and output. It also calculates the cache hit rate using the formula cache read ÷ (cache read + uncached input).
  • Turns and Steps: Lists the completed turns and steps in the current session.
  • Time and Speed: Shows Model time, tool time, output speed (tok/s), and average time-to-first-token latency.
  • Runtime Status: Displays “Running” when the current turn is active, otherwise shows “Idle”.

The data sources are the Host projections sessionStats (@deepseek-ai/dsh-session-stats) and tokenUsage (@deepseek-ai/dsh-token-meter), accessed via the standard useProjection hook. The page does not collapse conversation events, nor does it initiate model requests.

Installation and Enablement

The installation command is as follows:

dsh plugin add github:Qing8-Max/dsh-session-overview

Once enabled, click the “Overview” tab in the conversation view switcher of any session to see the statistics panel. This tab only renders when the plugin is enabled and the session has at least two views.

Typical Usage

  1. Open an active DeepSeek Harness session.
  2. Locate and click the “Overview” tab in the switcher at the top of the conversation view.
  3. Review total Token count, per-bucket Token usage, cache hit rate, turns and steps, time and speed metrics, and the current runtime status.

Use Cases and Notes

Ideal for developers and agent engineers who need to quickly check overall session statistics within the conversation view. The plugin runs with the current DSH process permissions; it is recommended to review the source code and license (MIT) before use.

Summary

dsh-session-overview adds aggregated statistics capability to the DSH session view, facilitating the evaluation of model invocations and resource consumption during development and debugging. For more details and source code, refer to: GitHub.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye