AI Agent Hub
Back to plugins
🖥️

dsh-graceful-restart

Client Updated 2026.08.17

Run the following command in DeepSeek Harness:

dsh plugin install msilita/dsh-graceful-restart

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

Run dsh plugin install msilita/dsh-graceful-restart in your terminal to install the plugin; the source is available at https://github.com/msilita/dsh-graceful-restart .

About this plugin

A hot restart in DeepSeek Harness often means killing a mid-sentence reply and losing in-flight agent turns; worse, a conflicting plugin can leave DSH unable to boot at all, forcing you to manually untangle packages in a terminal. dsh-graceful-restart is a guard layer built for exactly these pain points: it transparently wraps the startup chain, so you keep opening dsh web as usual while a hidden first-generation process handles re-creation and rollback behind the scenes.

Three core capabilities stand out. First, graceful restart: triggering a restart does not kill the process immediately; it waits for every agent turn to finish and persist before exiting, then launches the next generation in the same console so no work is lost, and automatically resumes the previously active session after boot. Second, automatic startup-failure rollback: before each spawn a snapshot of the plugin manifest is recorded; if the new generation fails to boot (bad exit code or early shutdown), the guard steps back to the prior snapshot, uses the official CLI to uninstall added packages, reinstall removed ones, and restore version drift, then retries until the service is back, fully unattended. Third, automatic page refresh: when a long-open browser tab reconnects after a restart or rollback, a generation-ID check triggers a single reload without any manual F5.

Ideal for developers who run long tasks in DeepSeek Harness and frequently add or remove plugins: you want restarts that never interrupt the current reply, broken plugins that auto-recover, and a browser page that never sticks on stale state. Install this plugin and all of that becomes the default.

Use Cases

  • Restarting mid-task to change config without interrupting the current reply
  • A conflicting plugin breaks startup and you want automatic rollback to restore service
  • A long-open browser tab should auto-refresh after DSH restarts or rolls back

Best For

  • DeepSeek Harness developers who frequently add and remove plugins
  • AI workflow users running long tasks that need hot restarts without losing replies
  • Ops-minded developers who want zero-touch service recovery from startup failures