dsh-web-restart
Run the following command in DeepSeek Harness:
dsh plugin install LnsiAxe/dsh-web-restart
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install LnsiAxe/dsh-web-restart in DeepSeek Harness to install this plugin; the full source is available at https://github.com/LnsiAxe/dsh-web-restart .
About this plugin
In the dsh workflow, the agent runs inside the web service process itself. If the agent simply kills the web service with Stop-Process, it is effectively destroying its own process tree and the restart command never completes—what developers call a suicidal restart.
This plugin moves the birthplace of the new service process out of the agent process tree. It invokes WMI Win32_Process.Create so that the launch script is owned by the WMI host; the new process parents to WMI rather than the agent, making it immune to process-tree reclamation. Two modes are provided: ensure automatically starts the service when the port is not listening and leaves it alone otherwise; rotate lets the caller return safely first, then kills the old process and spawns a fresh one in a fully detached manner, ideal for loading new plugins or code. A flag-file trigger is also supported—drop a flag inside the profile and the next session turn automatically performs a detached restart.
This is for Windows-based dsh developers who frequently swap plugins or code and want to avoid the restart-kill cycle. On non-Windows platforms the plugin gracefully falls back to a detached spawn, so it works everywhere.
Use Cases
- Auto-recover the dsh web service when it crashes unexpectedly
- One-click detached restart after updating plugins or code, immune to agent process-tree reclamation
- Prevent the suicidal restart where the agent kills its own host process before the restart command completes
Best For
- Developers who run dsh on Windows and frequently swap plugins or code
- Agent-workflow users who need automated web-service lifecycle management
- dsh users who hit the suicidal-restart problem and want a permanent fix
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.