In the DSH plugin ecosystem, resource monitoring is an essential requirement. When DeepSeek Harness runs in a WSL environment, directly retrieving the Windows host’s CPU, memory, disk, and process information typically requires bypassing WSL to access WMI. dsh-wsl-perf solves this access issue.

Plugin Positioning

dsh-wsl-perf is a DeepSeek Harness plugin designed to collect Windows host performance counters from within a WSL environment.

  • Name: dsh-wsl-perf
  • Owner: 173787247
  • Category: Networking tool
  • License: MIT

Core Features

This plugin primarily provides the following capabilities:

  • Windows host performance monitoring
  • WSL integration for retrieving data from the host machine
  • CPU and memory monitoring
  • Disk monitoring
  • Top process tracking
  • WMI/CIM-based data sources

Installation

Run the following command to install it in the DeepSeek Harness environment:

dsh plugin --profile web add github:173787247/dsh-wsl-perf

Usage Examples

After installation, monitor data can be invoked through commands:

win_perf              # 显示 cpu, memory, disks, top processes
win_perf top=20       # 调整显示的进程数量

Technical Details and Notes

  • Data source: The counters are sourced from Get-CimInstance Win32_Processor and Win32_OperatingSystem.
  • Memory explanation: The displayed memory data is the memory of the Windows host, not the memory of the WSL virtual machine.
  • Runtime environment: WSL must be enabled on Windows, and DeepSeek Harness must run inside Windows.
  • Testing: Run npm test. Unit tests can be run in any environment; real-time tests are skipped outside a WSL environment.

Summary

dsh-wsl-perf addresses the need to monitor host performance from within WSL, providing WMI-based CPU, memory, disk, and process data. The code is open source (MIT), making it suitable for developers who need to tune host resources in WSL.