AI Agent Hub
Back to plugins
🧰

dsh-web-restart

Web Tools Updated 2026.08.21

Run the following command in DeepSeek Harness:

dsh plugin install csdjl88/dsh-web-restart

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

Install the plugin in DeepSeek Harness by running dsh plugin install csdjl88/dsh-web-restart; the source is hosted at https://github.com/csdjl88/dsh-web-restart

About this plugin

Running dsh web as a foreground terminal process means a stuck instance or a config change forces you to hit Ctrl+C, re-type a long command packed with --profile and --patch flags, and hope the port is actually free before the new instance binds. dsh-web-restart compresses that kill-wait-relaunch cycle into a single sidebar click, making restarts safe and seamless.\n\nUnder the hood the plugin preserves every inner flag from the original command line and appends --no-open so no extra browser window pops up. A startup guard strictly waits for the old process to exit and the port to be released before launching the new one, requiring no daemon or supervisor. The page never reloads: the button flips to a Restarting state, polls the health endpoint, and DSH's built-in WebSocket auto-reconnect rebuilds the UI in the same tab while the session survives via DSH persistence. An agent-callable dsh_restart tool exposes the same core over a simple function call, so you can trigger a restart mid-conversation. A single-flight guard rejects duplicate clicks or concurrent tool calls while a restart is already in progress.\n\nThe plugin is designed for single-user, trusted-host workflows where dsh web runs in a bare foreground terminal. If your environment already has an auto-restart supervisor such as systemd, Docker, or pm2, pick one or the other to avoid two instances racing for the same port and one crashing with EADDRINUSE. Requires DSH 0.1.0-rc.7 or later. Released under the MIT license.

Use Cases

  • A stuck dsh web process in a foreground terminal needs a quick, seamless restart
  • Applying new DSH config instantly without manually killing and retyping a long command
  • Triggering a DSH restart mid-conversation as part of an automated agent workflow

Best For

  • Solo developers running dsh web in a bare foreground terminal
  • DSH Harness users without a systemd, Docker, or pm2 supervisor
  • DSH users who want ops-level control from within agent conversations