Introduction¶
When running Composer or parallel multi-sessions in DeepSeek Harness (DSH) for extended periods, verifying whether system load is high or VRAM is maxed out often requires switching to a system monitor or opening a separate terminal. While context usage has a built-in indicator, CPU, memory, and GPU metrics are not visible within the same view. dsh-dock-vitals is a client-side plugin maintained by MM998LI: it adds a clickable badge next to the built-in context meter in the Composer status bar to periodically display local CPU, memory, and GPU usage; clicking it expands details. It does not register tools to the model, and sampling data does not enter the conversation context.
What is this¶
dsh-dock-vitals (repository MM998LI/dsh-dock-vitals) is positioned as a pure display plugin: it only reads system metrics and renders a UI, without exposing tools to the model, writing samples to the session context, or sending data to external services. The maintainer is MM998LI, and the community directory page is available at skillhub.cn/plugins/MM998LI/dsh-dock-vitals. The DSH ecosystem emphasizes “everything is a plugin”; directories like SkillHub are community sites and are not officially affiliated with DeepSeek / High-Flyer.
Status bar illustration (from the original README):
2 turns 30 steps · 98 tok/s │ 1.8M tok · cache 84% │ 6%
CPU 13% MEM 87% GPU 15%
↑ this plugin's badge, right of the context meter
Core Features¶
Three Metrics and Optional Extensions¶
Out of the box, it displays CPU, Memory, and GPU. In the settings, CPU, Memory, and GPU can be toggled individually; provided GPU is enabled, VRAM and GPU Temperature can also be turned on (disabled by default).
GPU Multi-Platform Backends¶
GPU detection is performed via read-only CLI or registry-style interfaces on each platform, requiring no administrator privileges. It attempts backends sequentially by platform; the first responder takes effect, and the successful backend is remembered to skip invalid paths in subsequent runs. Fields that cannot be reported are null in the snapshot, and the interface leaves them blank instead of displaying 0.
| Platform | Backend | Description |
|---|---|---|
| Windows / Linux (NVIDIA) | nvidia-smi |
Supports utilization, VRAM, temperature, etc. |
| Windows (Any Vendor) | PDH / typeperf |
Common for AMD/Intel on Windows; takes approx. 2.7 s per run, no VRAM or temperature support |
| Linux (AMD) | rocm-smi |
Supports utilization, VRAM, temperature, etc. |
| macOS | ioreg (IOKit) |
Only utilization readings available, no total capacity |
typeperf is slow on Windows, so GPU sampling is decoupled from badge refresh: CPU and memory update at the configured interval, while the GPU displays the most recently completed reading. A single nvidia-smi run takes approx. 50 ms.
Refresh and Multi-Session Sharing¶
Three presets correspond to intervals: fast 1.5 s / medium 3 s / slow 10 s; the default in settings is 3000 ms, with an adjustable range of 1500–60000 ms. When multiple sessions are open, all badges share the same snapshot and the same timer, sampling only once. Sampling automatically stops approximately 15 seconds after the last reader leaves.
Details Panel and Language¶
Clicking the badge opens the details: specific metric values, GPU model, core count, memory capacity, etc.; rows that cannot be provided are not displayed. The interface and tooltips follow the host language (Chinese / English).
Read-Only HTTP Snapshot¶
The host side provides a read-only endpoint (returns 403 for non-loopback requests):
GET /dsh-dock-vitals/snapshot
The response JSON contains fields such as cpu, memory, gpu, gpuBackend, gpuError, host, intervalMs, and updatedAt. gpuBackend indicates the source of the current GPU reading, facilitating troubleshooting for issues like “GPU is empty or missing temperature”.
Installation and Activation¶
Before installation, please review the repository source code and the MIT license yourself; the plugin runs with the permissions of the current dsh process and calls local binaries such as nvidia-smi, typeperf, rocm-smi, and ioreg. You should confirm that your environment accepts this before installing.
Requirements (README / package.json): dsh >=0.2.0-rc.1 (developed and verified on 0.2.0-rc.2), Node >=22; supports Windows, macOS, and Linux, working with both desktop and browser GUIs (client platform is web).
Add the plugin under a specified profile:
dsh plugin --profile <profile> add dsh-dock-vitals
Or install from a local package file (README example filename):
dsh plugin --profile <profile> add ./dsh-dock-vitals-0.1.0.tgz
Restart DSH after installation.
Typical Usage¶
- After installation and restart, a
CPU … MEM … GPU …badge should appear to the right of the context meter in the Composer status bar (can be disabled in settings via “Enable badge”). - Open Settings → System Status (configuration namespace
dock-vitals): toggle CPU / Memory / GPU, VRAM, and GPU Temperature as needed, and adjust the Refresh interval. All items arevolatile, meaning changes take effect immediately without a restart. - Click the badge to view details when load is abnormal; for scripts or external monitoring, issue a local
GET /dsh-dock-vitals/snapshot(loopback only).
Data Source Description¶
| Metric | Source | Description |
|---|---|---|
| CPU | Node os.cpus() (two samples) |
Whole machine busy ratio (1 - Δidle/Δtotal), not single-core; the first sample has no baseline, so the reading is empty |
| Memory | os.totalmem() / os.freemem() |
|
| GPU | Backends listed in the table above | If all are unavailable, GPU displays —, while CPU and Memory remain available |
Use Cases and Notes¶
Suitable for observing whether local machine resources are becoming a bottleneck without leaving the IDE while developing, debugging agents, or having long Composer conversations within DSH. It is not suitable for scenarios requiring process-level profiling, historical curves, or remote machine monitoring—this plugin only performs lightweight snapshots on the current host.
Notes: Pure display, no model tools; multi-session sampling is shared to reduce overhead; Windows non-NVIDIA GPUs may use typeperf, causing GPU number updates to be significantly slower than CPU/Memory. Please read the GitHub repository and license before installation and activation, and ensure the corresponding vendor CLI is installed locally (if GPU support is needed).
Conclusion¶
dsh-dock-vitals places CPU, memory, and GPU readings into the Composer status bar with clickable details. It allows fine-grained control of metrics and refresh intervals in settings, and deliberately does not inject any tools or context into the model. Directory page: https://www.skillhub.cn/plugins/MM998LI/dsh-dock-vitals; Source code and full documentation: https://github.com/MM998LI/dsh-dock-vitals.