dsh-pc-monitor: Real-Time Resource Monitoring Card for DeepSeek Harness Sidebar

Introduction

In the DeepSeek Harness (DSH) Web interface, it’s easy to miss changes in CPU, memory, or GPU utilization when multiple tasks are running in parallel. The official build currently lacks a built-in real-time dashboard, forcing developers to constantly switch windows or open Task Manager to check resource status. To surface key metrics directly in the sidebar, the community has created a client-side plugin: a persistent triple-ring monitoring card anchored above the Settings row in the DSH sidebar.

What It Is

dsh-pc-monitor is a client-side plugin for the DeepSeek Harness Web UI that provides real-time monitoring of CPU, memory, and GPU utilization, maintained by Jerry426-131. It relies on no third-party services; all data is read from local processes and rendered as visualized progress rings through lightweight web calls.

Core Features

  • Triple-ring display: One ring each for CPU, memory, and GPU. The inner circle shows the percentage, the outer arc represents the progress, and a full circle equals 100%.
  • Refresh & throttling: Refreshes every 2 seconds; sampling pauses when the page is not visible to reduce overhead.
  • Language-following: Labels follow the DSH interface language. The memory ring displays “Memory” in Chinese and “RAM” in English; CPU and GPU labels are language-independent.
  • Theme-following: The card’s background, border, and labels use DSH theme tokens and adapt to light/dark theme switches.
  • No mouse pointer flickering: The card is mounted on document.body and anchored above the sidebar Settings row, avoiding repeated pointer state toggling caused by inserting into the React sidebar subtree.
  • Data honesty: Unreadable metrics display --; no fake values are fabricated.
  • Color scheme: Higher utilization maps to warmer colors. By default, this is defined by COLOR_STOPS at the top of client.js, transitioning through blue → mint green → amber → coral red, with piecewise linear interpolation in sRGB.

Installation & Enablement

Install from the DSH plugin marketplace, or run in your terminal:

dsh plugin add dsh-pc-monitor

In an already-running DSH session, you can also use:

plugin_manager install_bundle "dsh-pc-monitor"

After installation, DSH must be restarted because the plugin is loaded at process startup.

Typical Usage

After installing and restarting DSH, a triple-ring card appears at the bottom of the sidebar:

  • The CPU ring shows CPU core utilization.
  • The memory ring shows the percentage of available memory, with the label switching based on language.
  • The GPU ring shows the utilization of the busiest engine among physical GPU engines.

On Windows, GPU sampling depends on a persistent PowerShell process that continuously collects GPU engine data from PDH performance counters and exposes the results to the frontend via a local API.

Use Cases & Caveats

  • Use cases: Monitoring local compute resource utilization without leaving the DeepSeek Harness Web interface. Particularly useful for quickly sensing resource pressure in multi-task, long-running scenarios.
  • Platform limitation: Currently supports Windows only. CPU and memory are read via the main process, while GPU requires a persistent PowerShell sampler to read Windows performance counters, making it non-cross-platform.
  • Permissions & data sources: The plugin runs with the permissions of the current DSH process. GPU sampling requires reading Windows performance counters; CPU and memory reads do not depend on kernel drivers.
  • Transparency: The plugin does not provide a temperature ring because, under Windows without elevation, only ACPI thermal zone values are accessible—typically coarse-grained chassis temperatures rather than core temperatures. True core temperatures require an administrator-privileged kernel driver (e.g., LibreHardwareMonitor or HWiNFO), so it is intentionally omitted to avoid misleading.
  • Troubleshooting:
  • All rings show --: Check whether the page can access GET /api/dsh-pc-monitor/snapshot. This endpoint only responds to loopback requests.
  • Only GPU shows --: The sampler is not running. Check whether sample.ageMs exceeds 8 seconds and inspect the child process’s stderr.
  • Card disappears: The sidebar width is less than 168px, or the Settings row was not found. Widen the sidebar.

Conclusion

dsh-pc-monitor provides lightweight, real-time, and theme-consistent resource monitoring in the DeepSeek Harness sidebar, making it ideal for developers who need to continuously track local compute resource utilization. For more details and source code, see the plugin directory page and GitHub repository.

  • Plugin directory page: https://www.skillhub.cn/plugins/Jerry426-131/dsh-pc-monitor
  • GitHub repository: https://github.com/Jerry426-131/dsh-pc-monitor
羽毛球分组比赛记分
小程序二维码

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

Xiaoye