DeepSeek Harness (DSH) adopts a plugin-based architecture. During development or debugging, process restarts are a common requirement. Traditional methods usually require interrupting the session, potentially leading to the loss of context or state after restarting. This plugin aims to solve these issues by providing controllable restart methods and state recovery capabilities after a restart.
Plugin Introduction¶
The plugin is named @erick0412-dev/dsh-restart. It is a workflow plugin that allows users to restart DeepSeek Harness via interface actions or by calling AI tools. The plugin is released under the MIT License and maintained by Erick0412-dev. Its core value lies in providing native restart capabilities and supporting automatic prompt continuation after a restart.
Core Features¶
1. User-Initiated Restart¶
Users can trigger a restart via a quick access entry. In the Web UI, the restart button is located above the settings button. Clicking it will trigger a confirmation modal to prevent accidental clicks. Once the restart is complete, the web interface will automatically restore the state without manual refresh or reconnection.
2. AI-Initiated Restart (Automatic Task Continuation)¶
The plugin exposes a native tool restart_harness to the AI model. When the AI needs to restart the Harness, it can call this tool directly. After the restart, the plugin automatically delivers a continuation message, allowing the model to resume unfinished tasks from the previous session, ensuring seamless task continuity.
3. DSH 0.1.7+ Compatibility¶
The plugin is specifically designed for DSH version 0.1.7 and above.
* Brand New Slot: Uses settings.section for an independent settings page, adapting to the new version’s slot specifications.
* Session v4: Adopts its own producer source.kind: 'dsh-restart', complying with the 0.1.7+ session contract.
* Node Native: A cross-platform, pure Node-spawned daemon with no external shell or WMI dependencies, capable of cleanly releasing ports.
Installation and Activation¶
Execute the following command in the command line to install the plugin:
dsh plugin --profile web add @erick0412-dev/dsh-restart
After installation, open the settings page in the Web UI and find “DSH Restart” on the left side to configure it.
Notes¶
- Dependency Versions: Ensure that the DeepSeek Harness version is 0.1.7 or higher before use.
- Runtime Environment: The plugin depends on Node.js, requiring version
^22.19.0or>=24.0.0. - Code Source: This plugin is a modernized refactor based on
anweat/dsh-restart.
Ecosystem and Resources¶
This plugin is released under the MIT License. To view the source code or for more information, please visit its GitHub repository.