Introduction¶
When running agents or local services in DSH (DeepSeek Harness), you often need a clear view of whether local CPU, memory, disk, and network are bottlenecks before proceeding with C-drive cleanup or file retrieval. The built-in Task Manager shows processes but isn’t integrated with the Harness sidebar or configuration trails; third-party cleanup tools are feature-rich but often opaque regarding deletion logic and permission boundaries.
This article introduces the community plugin dsh-plugin-sysops (Maintainer: gh-gongjin). It adds an entry to the DSH left sidebar, opening a comprehensive local system panel designed for the Windows Desktop. It emphasizes read-only collection, two-stage cleanup, and single-point guard constraints for irreversible actions. The plugin is categorized as admin-security, currently has 0 GitHub stars, is at version 0.1.0, and is MIT licensed.
What is this¶
dsh-plugin-sysops is a local system operations plugin for DSH: it has zero third-party dependencies, serves an HTTP interface under the /sysops prefix, and stores configuration and logs in the host KV (domain sysops) without uploading to third parties.
It addresses five categories of questions, corresponding to five tabs (only one panel is rendered at a time):
| Tab | Function |
|---|---|
| Monitoring | Four curves + collection source status + read-only process list |
| Monitoring Logs | Threshold alert trigger timeline + unread blue dot |
| Cleanup | Scan, freeze list, select, and execute |
| Search | Full-disk file search, indicating the source path of the answer |
| Settings | Collection sources, thresholds, cleanup rules, search pathways, host capability table |
- Directory Page: https://www.skillhub.cn/plugins/gh-gongjin/dsh-plugin-sysops
- Source Code: https://github.com/gh-gongjin/dsh-plugin-sysops
Core Features¶
Real-time Monitoring¶
Four curves for CPU usage, memory occupation, network throughput, and C-drive free space, with a 30-minute ring buffer; collection source status bar is always visible. The process list is read-only, sorted by CPU descending by default, and can be toggled to sort by CPU / Memory; it does not terminate or kill any processes.
Collection is layered by cost (README provides measured local data from 2026-09-28): L0 uses pure Node (os.cpus / os.totalmem / fs.statfsSync); L1a network uses resident typeperf; L1b process list uses PowerShell Get-CimInstance Win32_Process, which is disabled by default and only collected when the page is visible. Child processes are supervised by lib/collect/supervisor.js (backoff, stall detection, cleanup via taskkill on Windows, PIDs strictly from spawn return values).
Threshold Alerts¶
Rules are configurable (report only after N consecutive hits, dedup via cooldown). Triggers are written to the “Monitoring Logs” tab and display a blue dot in the sidebar; system notifications are not pushed (the host does not provide this capability, which is indicated in the Settings capability table).
Two-Stage C-Drive Cleanup¶
Process flow: Scan → Freeze List Snapshot → Select items → Execute. The list before execution represents the actual deletion targets. Categories are “Recommended Cleanup / Recommended Review / Recommended Retain,” with only the first tier selected by default.
AI Smart Cleanup (lib/clean/ai-advisor.js) sends the list to the host model for classification suggestions; zero apply operations throughout, serving only as a recommendation. Whether to delete is confirmed by you on the same page.
Every execution leaves a trace: list snapshot, execution method, capacity difference before/after, and success/skip/fail counts are written to KV, rather than vague statistics.
Full-Disk File Search¶
Three-level detection selects the pathway: Everything HTTP / es.exe / limited directory traversal; each result displays a source pill. If undetectable, it degrades gracefully and explains which level is missing. The detection phase is read-only (existsSync / GET / Query); no installation is bundled into the detection phase.
The only independent action that writes to the system is the “Everything One-Click Install” on the search self-check card (lib/search/installer.js): it requires an explicit click, does not trust frontend parameters, does not use shell execution, checks for winget before starting, and runs only one installation at a time; UAC is triggered by winget, and the plugin does not click “Agree” for you. You can also manually execute winget install voidtools.Everything or install from the official website.
Red Lines (Single-Point Guard)¶
Irreversible constraints are centralized in lib/clean/guard.js; no module may relax them. This includes but is not limited to: touching C:\Windows\*, Program Files*, C:\$Recycle.Bin*; changing owners, ACLs, or registry; creating persistent auto-start services; rejecting bypass forms like \\?\, UNC, 8.3 short names, .., and junction escapes; new rules are rejected at the write phase.
Installation and Enablement¶
For a web profile host, the official CLI installation is as follows (internally uses pnpm; pnpm must be in your PATH):
dsh plugin --profile web add github:gh-gongjin/dsh-plugin-sysops
You can also install from a local directory:
dsh plugin --profile web add <absolute path to this repo>
Manual Two-Step (No pnpm required): Edit %USERPROFILE%\.dsh\profiles\web\package.json, add "dsh-plugin-sysops": "link:<absolute path>" to dependencies, and append "dsh-plugin-sysops" to the end of dsh.profile.bundles; then create a Junction in the profile’s node_modules pointing to this repo, and finally restart dsh (refreshing the page is not enough).
To temporarily disable: Add the following to ~/.dsh/profiles/web/cordis.patch.yml (%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml on Windows):
- id: sysops
disabled: true
To completely uninstall: Revert the two manual installation changes, remove the directory junction, and restart.
Typical Usage¶
- After installing and restarting DSH, open the sysops panel from the sidebar.
- In Settings, enable required collection sources (process list is off by default), configure thresholds and cleanup/search rules; check the capability table to confirm if the host provides
storageDomain,webServer, etc. - View four curves and the process list in Monitoring; check alerts in Monitoring Logs.
- In Cleanup, scan first, verify the frozen list and classifications, select items, and then execute; AI suggestions are optional but still require item-by-item confirmation.
- In Search, enter keywords; if Everything is needed, install via the interface prompt or manually configure the pathway.
Interface Convention: Errors and status appear on the card that triggered them (inline notice); no top toast, no native confirm / alert.
Use Cases and Notes¶
Who it is for: Users developing or operating on Windows using the DSH web profile who want monitoring, controllable cleanup, and file search all within the Harness, and who accept the “read-only + explicit deletion confirmation” boundary. The README states clearly that this is a personal tool: what it can do and what it cannot do is stated upfront.
Permissions & Security: The plugin runs with the current dsh process privileges; all write endpoints are POST, and non-loopback requests are rejected with 403. Please read the source code and MIT license yourself before installation to verify that the guard and Everything installation paths meet your policies. This plugin does not provide privilege escalation, does not terminate processes, and does not decide what to delete for you; please verify cleanup traces after use.
Host Capability Degradation: If storageDomain is missing, configuration is read-only; if webServer is missing, the sidebar entry is not registered; if timer is missing, it falls back to setInterval and notes it in the capability table. These are visible in the Settings page; there are no fake switches.
Ecosystem Note: DSH’s philosophy is “Everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-plugin-sysops consolidates local monitoring, two-stage C-drive cleanup, and three-level pathway file search into a single panel within DSH, using single-point guards and trace logging to clearly constrain irreversible actions. If you need to operate a Windows desktop within the Harness, you can install it using the command above and align your collection and alert rules in Settings.