AI Agent Hub
Back to plugins
🖥️

DSH-RESTART-TOOL

Client Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install julensun-ir/DSH-RESTART-TOOL

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install julensun-ir/DSH-RESTART-TOOL in your terminal to install the plugin, available at https://github.com/julensun-ir/DSH-RESTART-TOOL .

About this plugin

Restarting a DeepSeek Harness instance on Windows is harder than it looks. An async spawn race means the child process may never be created; the agent sandbox wraps the shell in a kill-on-close job so the agent cannot relaunch the host itself; SIGTERM maps to a hard TerminateProcess rather than a graceful shutdown; and a tree-kill via taskkill takes down the very helper that is supposed to bring the service back. DSH-RESTART-TOOL works around every one of these pitfalls and delivers a restart and shutdown path that actually holds.\n\nThe plugin exposes two model tools (restart_dsh, shutdown_dsh) for agents, two icon-only buttons in the GUI sidebar for manual use, and REST endpoints for external scripts. A full-screen overlay appears while the service restarts and the page auto-reloads once the new instance is up. Shutdown is graceful with no auto-relaunch. Before restarting, active session IDs are captured; after the new instance boots, a continuation nudge is injected so conversations pick up where they left off.\n\nIf you run DSH on Windows and want a trustworthy way to restart or shut down the web service from an agent, the sidebar, or a script, this plugin removes the most common failure modes. POSIX branches exist for macOS and Linux but have not been battle-tested; for cross-platform production use, consider pairing it with dedicated power-management plugins.

Use Cases

  • Agent restarts the dsh service after applying a configuration patch
  • Click a sidebar icon to restart or shut down DeepSeek Harness without opening a terminal
  • Trigger a dsh restart from an automation script and wait for the new instance to report healthy

Best For

  • Windows DSH users who keep hitting the port-closed-but-service-dead scenario
  • Developers building agent workflows that need a model tool to manage the DSH lifecycle
  • Everyday DSH operators who want a simple sidebar button to restart or shut down the service