dsh-plugin-process-manager: Securely List and Terminate Windows Processes in DSH

Introduction

When performing operations and troubleshooting automation in DeepSeek Harness (DSH), agents often need to know which processes are running on the current machine, how much memory they are consuming, and terminate abnormal processes only after explicit user authorization. On Windows, relying solely on generic shell commands results in inconsistent output formats and a higher risk of mistakenly killing the wrong PID. The dsh-plugin-process-manager introduced below connects to DSH as an MCP tool, targeting Windows: it supports listing processes with filtering and sorting by memory, requires confirmation before termination, and returns the real PID; it belongs to the admin-security category, making it suitable for scenarios that require “read-only by default, writable actions are auditable”.

What is this

dsh-plugin-process-manager is released by maintainer thegabopacheco-sudo, version 0.1.0 (MIT License). One-sentence positioning of the plugin: list and terminate processes on Windows, support filtering and sorting by memory, require confirmation before termination, and report the actual PID. The entry point is the packaged ./dist/server.mjs, depending on Node >= 20.

Core Features

The three types of MCP tools declared in the README are as follows.

Tool Function
status View plugin/service status
list List processes (includes filtering and sorting by memory capabilities, see plugin description)
kill Terminate specified process

Security-related behaviors (as per original material):

  • Defaults to read-only; write/termination is executed only when parameter confirm:true and the requester explicitly requests it.
  • Environment variable DSH_PROCESS_MANAGER_MODE=read-only can disable writable actions.
  • Whitelist and audit logs are located at <DSH_HOME>\cache\process-manager\audit.jsonl.

The captured data does not provide complete parameter examples for list / kill; no example call scenarios are fabricated in the text; specific fields are subject to the implementation and repository documentation.

Installation and Activation

  1. In the DSH GUI: Settings → Plugins, install github:thegabopacheco-sudo/dsh-plugin-process-manager, and allow the installation script (postinstall) as prompted.

  2. Command-line installation (please replace <perfil> with your DSH profile name):

dsh plugin --profile <perfil> add github:thegabopacheco-sudo/dsh-plugin-process-manager

It is recommended to browse the GitHub repository source code and license before installation; the plugin runs under the permissions of the current dsh process, and when permissions are high, the scope of impact when terminating processes is larger.

Typical Usage (Tool Level)

Assuming the agent or client has loaded this plugin, calls can be made as needed:

  1. First call status to confirm the plugin is available and the environment is in read-only mode.
  2. Call list to get the process list; combine it with the filtering and sorting by memory described to locate high-occupancy or name-matched processes.
  3. Only when the user confirms termination is necessary, call kill and ensure confirm:true is passed in; the operation will be recorded in the aforementioned audit.jsonl.

If global prohibition of termination operations is required, set before starting DSH:

DSH_PROCESS_MANAGER_MODE=read-only

Suitable Scenarios and Notes

Suitable for: On Windows development machines or office machines, assisted by DSH agents to view processes and terminate frozen or abnormal processes after user authorization, with a preference for default read-only and auditable behavior.

Notes:

  • The platform is Windows (resource description mentions Windows process management); do not assume equivalent behavior on Linux/macOS.
  • The plugin belongs to the admin-security category; installation grants system capabilities equivalent to the DSH process; production environments should use read-only mode and whitelist policies in conjunction.
  • The community directory is an independent site with no official affiliation with DeepSeek / HackVerse; plugin stars and such are based on the directory page (current count is 0).

Conclusion

dsh-plugin-process-manager encapsulates Windows process listing and controlled termination into an MCP tool callable by DSH, using a confirmation switch and environment variables to reduce the risk of misoperation, and using an audit file for traceability. To install or get source code, access the directory page and GitHub:

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

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

Xiaoye