AI Agent Hub
Back to plugins
🧩

dsh-restart

admin-security Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install zhouchengke2046/dsh-restart

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

Run dsh plugin install zhouchengke2046/dsh-restart in the DeepSeek Harness terminal to install this plugin; the full source is available at https://github.com/zhouchengke2046/dsh-restart .

About this plugin

Every time you install or tweak a plugin, you have to restart the DSH web server from the terminal before the change takes effect. dsh-restart removes that friction: a single button on the Settings page triggers a confirmed restart, and the browser refreshes itself once the service is back online—no terminal required.

Under the hood the restart uses a two-layer safety net. It first fires launchctl kickstart -k against the launchd agent, then falls back to SIGTERM if the process is still alive two seconds later. launchd KeepAlive guarantees the new process is actually running. After the restart, the front end polls the service endpoint and auto-refreshes the page as soon as it responds. Execution details are logged to /tmp/dsh-restart.log for easy troubleshooting.

The plugin is fully self-contained: zero dependencies, zero coupling with balance or usage features, and it never reads any API keys. You can install or uninstall it in isolation with no residual state. The UI follows DSH design tokens and adapts to both light and dark themes automatically. It is built for macOS users running DSH Web who frequently adjust plugin settings and want changes to take effect with one click instead of a command line.

Use Cases

  • Restarting DSH Web after installing or updating a plugin
  • Applying plugin configuration changes without leaving the browser
  • Avoiding manual terminal commands for every service restart
  • Reviving a hung service straight from the settings page

Best For

  • macOS users running DSH Web as a daily tool
  • Developers who install or tweak plugins frequently
  • Users who prefer an all-in-browser workflow over the terminal
  • Operators who need quick access to restart logs