DeepSeek Harness (DSH) Plugin: dsh-vitals

Preface

DeepSeek Harness (DSH) adopts a plugin-based architecture, where the Web interface often requires visibility into underlying resource usage. Traditional command-line monitoring tools (such as btop) are not intuitive within the Web context. dsh-vitals is a hardware load monitoring plugin for the DSH Web GUI. It aims to provide a visualization experience similar to btop, allowing users to view CPU, memory, and GPU status in real-time without leaving the chat interface.

Plugin Overview

Name: dsh-vitals
Maintainer: JoblessJoe
License: MIT

This plugin primarily offers the following capabilities:
* CPU Monitoring: Displays overall utilization and per-core load (supporting any number of physical cores).
* Memory Monitoring: Displays used, available, and total memory, along with utilization calculations.
* GPU Monitoring: Supports NVIDIA GPUs, displaying temperature, utilization, power consumption, and VRAM usage.
* UI Integration: Provides a mini-widget in the session header and a full Hardware tab alongside the chat view.
* Zero Dependencies: No runtime dependencies; ready to use upon installation.

Installation and Activation

The installation process is handled via DSH’s plugin management tool; manual configuration file editing is not required.

  1. Ensure your DSH environment has the Web profile (web) installed and configured.
  2. Execute the following command to install the plugin into the Web profile:
    npx @deepseek-ai/dsh plugin --profile web add dsh-vitals
This command automatically adds the plugin to the `dsh.profile.bundles` configuration.

Once installed, the Web profile will automatically hot-reload. No restart is needed; simply refresh the browser page to see the plugin in action.

Usage

After refreshing the page, the plugin automatically displays data in two locations:

  1. Session Header Mini-Widget

    • A widget appears in the session header at the top of the chat interface (near the “⋯” menu).
    • It displays real-time CPU and GPU loads in a compact bar format.
    • Interaction: Hover over it to view temperature and VRAM information; click the widget to navigate to the full Hardware tab below.
  2. Hardware Tab

    • Click the Hardware tab at the top of the conversation view.
    • This page displays detailed hardware data:
      • CPU: Overall load, a 60-second dynamic graph, maximum temperature, and per-core load (with multi-heat-zone detail support).
      • Memory: Used/Available/Total memory and utilization.
      • GPU: For each card, displays name, temperature, utilization, power consumption, and VRAM usage.

Technical Details

  • Data Acquisition: The plugin reads host data via a standalone GET endpoint (/plugins/dsh-vitals/data). Since this endpoint is not protected by the DSH server’s /api trust guardrails, cross-site protection is enabled, accepting only GET requests.
  • Platform Support:
    • Linux: Uses /proc/stat, /proc/meminfo, and nvidia-smi.
    • macOS: Uses os.cpus(), vm_stat, and ioreg (Note: Reading CPU temperature on macOS typically requires root privileges; the plugin will hide panels if data is unavailable).
    • Windows: Uses os.cpus(), os.freemem(), and nvidia-smi.exe (requires PATH or specific directory configuration).
  • Build Requirements: Although the installation uses a pre-compiled package, building from source requires a Node.js 20+ environment, with no runtime npm dependencies.

Conclusion

dsh-vitals is a system monitoring plugin that is ready to use without configuration, suitable for real-time resource monitoring during local model inference. For more information regarding compatibility or building from source, please refer to the GitHub Repository.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye