DSH-RESTART-TOOL
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
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.