Introduction¶
When running agents for extended periods on the DeepSeek Harness (DSH) chat page, you often encounter issues such as GPU VRAM overflow, CPU spikes, or insufficient memory. The conventional workaround is to open Task Manager or an nvidia-smi window and switch back and forth to check—this disrupts the flow of your conversation. Below is a DSH plugin that displays real-time readings of CPU, memory, GPU, VRAM, and GPU temperature in a persistent bar beneath the chat input field, with historical charts accessible from the left sidebar.
What Is This¶
dsh-plugin-system-status is a DSH plugin maintained by chenmohan123, categorized under “Client.” It collects GPU data via a persistent nvidia-smi --loop-ms=3000 child process, gathers CPU, memory, and disk metrics using built-in Node.js modules, and pushes samples to the frontend for display.
Core Features¶
Real-Time Readings¶
Below the chat input field, a compact single-line display shows CPU, memory, GPU, VRAM, and GPU temperature. The entire line is clickable to navigate to the history page, highlights on hover, and is keyboard-focusable. When the data stream is interrupted, it displays “Reconnecting / Data expired” and reconnects with exponential backoff.
Historical Charts¶
Accessible from the “System Status” icon in the left sidebar, you can view:
- One chart each for CPU, GPU, memory, and VRAM, with a fixed Y-axis of 0–100%;
- One chart for GPU temperature, with a fixed Y-axis of 0–100°C;
- A bar chart of disk used space.
Supported time window presets: last 1 hour / 6 hours / 24 hours / 7 days.
Timeline & Degradation¶
The X-axis represents the selected time window rather than the actual data span; gaps caused by DSH being offline appear as breaks in the chart rather than straight lines connecting across them. Hovering over the chart reveals the value at that specific time point.
If no NVIDIA GPU is available (or nvidia-smi is not in PATH), GPU-related items display “Unavailable” while other metrics remain normal. If the history directory is not writable, only real-time data is retained with a notice shown.
Installation & Enabling¶
Install from npm (recommended):
- In DSH, open Settings → Plugins → Add plugin;
- Enter the package name
dsh-plugin-system-status; - Click “Install.”
Alternatively, let the DSH agent invoke plugin_manager’s install_bundle with target set to dsh-plugin-system-status.
Install from this repository (for development or customization):
- Clone the repository locally:
git clone https://github.com/chenmohan123/dsh-plugin-system-status.git
- In Settings → Plugins → Add plugin, select the repository directory, or pass the absolute path of that directory as the
targetininstall_bundle; - On first install, changes take effect via hot reload—refresh the page once and you will see the real-time readings and the left sidebar icon.
The package name is dsh-plugin-system-status (published on npm); the line id in cordis.patch.yml is system-status.
Data & Implementation¶
- CPU utilization (total / per-core): via two successive samples of Node
os.cpus()with delta calculation; - Memory used / total:
os.totalmem()/os.freemem(); - Disk used / total: Node
fs.statfs, iterating over fixed drive letters; - GPU utilization, VRAM, temperature, power, fan: read from a persistent
nvidia-smi --loop-ms=3000child process.
The sampling rate is one sample every 3 seconds. The host side pushes samples to the page via a same-origin SSE route at /dsh-system-status/stream; history queries use /dsh-system-status/history?range=1h|6h|24h|7d.
For persistence, samples are batch-appended every 5 seconds to %DSH_HOME%/system-status/YYYY-MM-DD.jsonl (default: C:\Users\<you>\.dsh\system-status\), retained for 7 days. On read, data is bucketed and downsampled to approximately 300 points per window.
The host side uses only Node built-in modules; the client side uses only the React provided by the host. Charts are hand-drawn SVG. Routes return only numeric values—no machine names, usernames, or paths—and listen solely on DSH’s own loopback address.
Limitations¶
- GPU data supports NVIDIA only: sourced from
nvidia-smi. Integrated graphics (Intel / AMD APU) and AMD discrete GPUs are not currently shown; the real-time bar and history page will indicate “NVIDIA GPU not detected.” Windows’ built-in WDDM counters can read utilization and memory usage for these GPUs, but they lack temperature, total VRAM, and require 1–3.5 seconds per read, which would disrupt the 3-second sampling cadence. Therefore, they are not used. - Only GPU temperature is available: Windows’ ACPI thermal zone interface (
MSAcpi_ThermalZoneTemperature) returns access-denied; CPU / motherboard temperatures require kernel-driver tools such as LibreHardwareMonitor, which this plugin does not integrate. - History is only sampled while DSH is running: no data is collected during DSH shutdown, sleep, or power-off.
- Sampling frequency and retention period are code constants (3 s / 7 days) and are not yet exposed as configuration options.
- Primarily developed and verified on Windows 11 + NVIDIA GPU; macOS / Linux are unverified—behavior of
nvidia-smiand drive-letter enumeration may differ.
Use Cases & Notes¶
Ideal for scenarios where you run agents for extended periods on the DSH chat page and need to monitor local resource bottlenecks.
The plugin runs with the permissions of the current DSH process. Review the source code and license before installation.
Conclusion¶
dsh-plugin-system-status lets you see system status at a glance beneath the chat page and trace trends via historical charts, helping you avoid task interruptions caused by resource exhaustion.
- Catalog page: https://www.skillhub.cn/plugins/chenmohan123/dsh-plugin-system-status
- GitHub: https://github.com/chenmohan123/dsh-plugin-system-status