dsh-session-groups-data: Session Groups Visualization Dashboard

Introduction

In DeepSeek Harness (DSH), developers often need to understand detailed session statistics, such as Token consumption, context usage, and model invocation details. Without ready-made tools, this data is either scattered across logs or requires manual calculation. dsh-session-groups provides a session grouping framework but lacks an intuitive data dashboard.

dsh-session-groups-data is an optional extension of dsh-session-groups. It does not render the sidebar; instead, it builds upon the services provided by the core plugin to add a data panel that aggregates and expands various session statistical metrics.

Plugin Overview

This is a data panel extension plugin developed by maintainer xyzYaeMiko. It handles Token, context, model, session file, cost, and tool statistics for sessions/groups/workspaces, along with peak/off-peak pricing configuration and a standalone Host data interface. The current version is 0.1.1.

Core Features

Summary View

The panel provides a summary view displaying Activity, Tokens, Context, Models, Session Files, Estimated Costs, and Tools. Each row is expandable.

  • Activity: rounds, steps, average time-to-first-token, output speed
  • Tokens: total tokens, cache hit rate, input / cache read / cache write / output
  • Context: current context usage ring and used / window size
  • Models: model usage duration and proportion
  • Session Files: compressed session log size and event count
  • Estimated Costs: peak/off-peak pricing, per-token unit prices and amounts
  • Tools: open/closed tool count, invocation count

Expanded View

The expanded view allows you to inspect token composition, model usage duration, and peak/off-peak cost breakdowns.

Peak / Off-peak Pricing

Supports configuring two sets of CNY prices for cost estimation during peak and off-peak periods.

Host Routing

Provides a standalone Host data interface:

/dsh-session-groups-data-bridge/data

Installation and Enabling

This plugin depends on dsh-session-groups and the DSH core environment. Prerequisites must be met before installation.

Dependency Requirements

  • DSH >=0.2.1-rc.2 <0.3.0
  • dsh-session-groups >=0.7.2 must be installed first

Installation Steps

  1. Ensure the dsh-session-groups plugin is installed and enabled.
  2. Select this repository or directory via the DSH plugin manager, or run the following command:
dsh plugin install https://github.com/xyzYaeMiko/dsh-session-groups-data
  1. After installation, the data menu will only appear once the core plugin provides the sessionGroupsUI service.

Notes

  • The core plugin must be installed and enabled first; otherwise, the data menu will not be displayed.
  • After upgrading either the core plugin or this plugin, a full restart of the DSH Host is required.
  • Simply refreshing the page only updates the Client, not the Host routes. A restart is recommended after any upgrade.

Use Cases

Suitable for DSH users who require fine-grained monitoring of session statistics, especially developers who make use of the session grouping feature. This plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.

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

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

Xiaoye