Introduction¶
When running agents or long sessions in DeepSeek Harness (DSH), you typically care about two things: how much was actually used during this period, and whether traffic or calls are concentrated on a specific Provider. The Harness itself does not necessarily present this information as a persistent panel; relying solely on logs or external bookkeeping makes it inconvenient to cross-reference after switching profiles or machines.
dsh-app-usage is a community plugin that aggregates statistics for the current session locally and breaks them down by Provider, while also providing an activity heatmap panel. The following introduces what it is, how to install and enable it, and points to note during usage.
What is this¶
- Name:
dsh-app-usage(npm package name matches the repository name) - Maintainer: bosenok
- Category: Memory (classification on the community directory SkillHub)
- Positioning: A DSH bundle plugin for DeepSeek Harness; records session statistics locally, displays breakdowns by Provider, and mounts the client in Web form.
The plugin declares dsh.bundle.patch via package.json. The cordis.patch.yml inserts the app-usage line into the currently active profile; the client entry is lib/client.js (dsh.client.platform: web).
Core Features¶
Based on the repository README and package.json descriptions, the verified capabilities include:
- Local Session Statistics: The statistical scope is limited to local DSH sessions and does not rely on remote reporting (specific metrics depend on the plugin implementation).
- Breakdown by Provider: Statistical results can be grouped by Provider dimension, facilitating comparison of usage across different backends or routing.
- Activity Heatmap Panel: The UI side provides an activity heatmap panel for visualizing activity distribution over a period of time (implementation based on Vue and ECharts, see repository
devDependencies).
Installation and Activation¶
The installation method is subject to the README原文. The plugin requires DSH version: >=0.2.1-rc.2 and <0.3.0 (see engines.dsh in package.json).
Desktop Application¶
Open Plugins in the DSH desktop client and install github:bosenok/dsh-app-usage. If the repository is private, ensure the local machine has git access permissions first, then enable the corresponding bundle in the interface.
CLI¶
Add the plugin to a specific profile:
dsh plugin --profile <profile> add github:bosenok/dsh-app-usage
Install from a local directory (for development or modifying source code):
dsh plugin --profile <profile> add file:/path/to/dsh-app-usage
After enabling the bundle, the plugin will mount to the Harness; for running applications, it takes effect via HMR, and a restart ensures the client half is rebuilt.
Special Notes for Desktop Profile¶
For the application-managed desktop profile: dsh plugin --profile desktop add only installs dependencies and copies the package; it does not automatically enable the bundle. You need to add the package name to dsh.profile.bundles in ~/.dsh/profiles/desktop/package.json, or manually enable it on the Plugins page. Other profiles usually automatically enable installed bundles after installation.
Typical Usage¶
The README does not provide a separate “Business API” example; the daily usage flow is: install and enable the bundle → use sessions in the Harness as usual → view local statistics, provider breakdowns, and heatmaps in the panel provided by the plugin.
If development side needs to modify the client, the source code is in src/, and build artifacts are committed in lib/. You can rebuild the client according to the repository instructions:
npx vite build
The build output is in dist/, and build/wrapper.js generates lib/client.js.
Use Cases and Notes¶
Who it is for
- Developers who need to quickly check “how much was used in this session, and the proportion of each Provider” within DSH.
- People who prefer to glance at active time slots using a heatmap rather than digging through logs.
Notes
- The plugin runs under the permissions of the current dsh process; statistics and panel data remain in the local session context; please read the GitHub Source Code and MIT License yourself before installing; third-party dependencies in
lib/are see in THIRD_PARTY_NOTICES.md. - The community directory SkillHub Plugin Page has no official affiliation with DeepSeek / High-Flyer and is only for discovery and indexing; version and installation commands are still subject to the repository README.
Conclusion¶
dsh-app-usage incorporates local session statistics, Provider dimension breakdowns, and activity heatmaps into a Harness plugin form, making it suitable as a “Memory / Usage” oriented panel in the DSH “everything is a plugin” ecosystem. For installation commands and bundle behavior, refer to the repository README.
- Community Directory: https://www.skillhub.cn/plugins/bosenok/dsh-app-usage
- Source Code and Documentation: https://github.com/bosenok/dsh-app-usage