AI Agent Hub
Back to plugins
🖥️

dsh-restart

Client Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install xingyingyuzhui/dsh-restart

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

Run dsh plugin install xingyingyuzhui/dsh-restart in DeepSeek Harness to install this plugin. Source code is available at https://github.com/xingyingyuzhui/dsh-restart .

About this plugin

After letting dsh web run for a while, you inevitably need a clean restart to free memory or refresh internal state. But if dsh web is running as a background service, killing the process from the terminal is both tedious and risky—a careless termination can leave the service gone for good.

dsh-restart adds a Restart button at the bottom of the Settings sidebar. Once confirmed, it triggers the restart via POST /dsh-restart/now. The key feature is smart adaptation: when the process is supervised by macOS LaunchAgent (KeepAlive) or systemd, the plugin simply exits and lets the supervisor respawn it; when no supervisor is present, it spawns a fresh instance first and then exits, so the service never drops. You can also force the behaviour with the DSH_RESTART=exit or DSH_RESTART=respawn environment variable.

Ideal for users who run dsh web as a persistent background service and want a one-click restart without ever leaving the browser.

Use Cases

  • Restart dsh web from the browser after days of accumulated memory
  • Restart the background service after deploying an update without opening a terminal
  • Safely restart under macOS LaunchAgent or systemd without losing the process

Best For

  • Developers who run dsh web as a persistent background service
  • Users managing processes via LaunchAgent or systemd
  • Users who prefer browser-based management over terminal toggling