DeepSeek Harness plugin

dsh-usage-stats

Beautiful token analytics for DeepSeek Harness — trends, activity heatmaps, model breakdowns, and data exports.

Jump to install

Source facts

Repository
lanlandeli/dsh-usage-stats
Latest update
Aug 17, 2026
Category
Usage & Billing
GitHub stars
11
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/lanlandeli/dsh-usage-stats
Plugin: dsh-usage-stats
Author: lanlandeli

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

📊 dsh-usage-stats

简体中文

> DeepSeek Harness token usage at a glance.

![npm version](https://www.npmjs.com/package/dsh-usage-stats) ![npm downloads](https://www.npmjs.com/package/dsh-usage-stats) ![CI](https://github.com/lanlandeli/dsh-usage-stats/actions) ![Node](https://nodejs.org) ![License](./LICENSE)

dsh-usage-stats is a lightweight usage analytics plugin for the DeepSeek Harness Web UI. It presents lifetime token totals, daily trends, activity dates, and model distribution in one dashboard.

The plugin integrates through Harness extension APIs without modifying the Web UI or official npm packages. Statistics remain on the local machine.

dsh plugin --profile web add dsh-usage-stats

Restart the Web profile and open Usage Statistics above Settings in the sidebar.

Update or remove the plugin:

dsh plugin --profile web update dsh-usage-stats
dsh plugin --profile web remove dsh-usage-stats

Demo

![Usage statistics demo](./assets/usage-demo.gif)

Screenshots

<details> <summary>View light theme</summary>

![Light theme](./assets/dashboard-light-full.png)

</details>

<details> <summary>View dark theme</summary>

![Dark theme](./assets/dashboard-dark-full.png)

</details>

Features

ModuleDescription
OverviewLifetime token, session, message, active-day, streak, and top-model totals
Daily trendsRecent 7-day or 30-day token usage with per-model hover details
Activity heatmapOne year of activity levels with daily token and call details
Scope filtersFilter by workspace, main task, or subtask
Call detailsInspect per-call latency, tokens, cache rate, model, and reasoning effort with filters and pagination
Data exportExport CSV or JSON for archival or further analysis
Chinese and English UIFollow the Harness language setting automatically
Theme supportFollow the Harness light or dark theme automatically
Lightweight runtimeNo third-party charting library and no background polling

Fixed

Duplicate official module risk

0.1.16 declares every DeepSeek Harness package used by the plugin as a peer dependency. This prevents plugin-private copies and split module identity inside a profile. The package check now rejects official modules placed in regular dependencies.

Inherited parent context counted as subtask usage

0.1.13 fixed an issue where forked subtasks attributed inherited parent context to their own usage. Subtasks now count only calls they produced themselves; after upgrading, statistics cached by older versions are invalidated and rebuilt using the corrected definition.

Configuration

config:
  indexConcurrency: 2
  cacheWriteDelayMs: 1000
  apiPath: /usage-stats/v1
OptionDescriptionDefault
indexConcurrencyNumber of historical sessions read concurrently (18)2
cacheWriteDelayMsDelay before updating the local index, in milliseconds1000
cachePathCustom index locationHarness data directory
apiPathStatistics API path/usage-stats/v1

Privacy and security

  • The local index is stored in DSH_HOME/usage-stats and contains session identifiers, timestamps, working directories, model names, and token counts.
  • The plugin does not retain prompts, responses, tool arguments, or API keys.
  • See the [privacy policy](./PRIVACY.md) for the exact data scope.

Compatibility

The verified baseline is DeepSeek Harness 0.1.0-rc.6 with Node.js 22.19+ or 24+. The plugin supports the official Web UI and desktop wrappers that load it.

Harness is evolving rapidly. Only environments tested by this project are declared as verified. See [Compatibility](./docs/COMPATIBILITY.md) for details.

Issues

For a missing plugin entry, incomplete statistics, display errors, or version compatibility problems, submit an Issue with the Harness and Node.js versions, installation command, reproduction steps, and relevant logs or screenshots.

Do not include API keys, access tokens, or private local data in a public Issue. See the [security policy](./SECURITY.md) for vulnerability reporting.

Acknowledgements

  • Thanks to @Grivn for identifying and analyzing inherited parent context being counted as subtask usage in #1.
  • Thanks to @yzke for proposing and implementing the Chinese and English UI adaptation in #2.
  • Thanks to @ogj130 for the initial call-detail implementation in #3.
  • Thanks to @zhu637882-stack for reporting the duplicate official module risk in #4.

License

[MIT](./LICENSE)