dsh-autorestart

DeepSeek Harness plugin: restart without losing work. It waits until every conversation is idle, restarts the host, and picks the interrupted work back up instead of dying with it; where a supervisor already manages the host it asks that supervisor, and it never starts a second host next to a running one. It also fixes a common one: stale login cookies pile up on every launch until the request header overflows and the host will not start; the plugin clears them before each restart. Every restart is preceded by a snapshot of the configuration and the installed plugins - 2 are kept by default, up to 10 are allowed, and old or incomplete ones are pruned. That snapshot is never applied automatically: the plugin does not watch the host and does not restore anything on its own; it is only there for you to look at, or to roll back by hand. When the work is done it counts down and powers the machine off, so nobody has to stay up at night. It works on the Windows desktop client, and on a hosted dsh web instance - verified on WSL with systemd; Windows-hosted web, WSL without systemd, and native Linux are untested.

Overview

DeepSeek Harness plugin: restart without losing work. It waits until every conversation is idle, restarts the host, and picks the interrupted work back up instead of dying with it; where a supervisor already manages the host it asks that supervisor, and it never starts a second host next to a running one. It also fixes a common one: stale login cookies pile up on every launch until the request header overflows and the host will not start; the plugin clears them before each restart. Every restart is preceded by a snapshot of the configuration and the installed plugins - 2 are kept by default, up to 10 are allowed, and old or incomplete ones are pruned. That snapshot is never applied automatically: the plugin does not watch the host and does not restore anything on its own; it is only there for you to look at, or to roll back by hand. When the work is done it counts down and powers the machine off, so nobody has to stay up at night. It works on the Windows desktop client, and on a hosted dsh web instance - verified on WSL with systemd; Windows-hosted web, WSL without systemd, and native Linux are untested.

Installation

Install from npm

dsh plugin --profile web add dsh-autorestart

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:Eason-22/dsh-autorestart

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands