AI Agent Hub
Back to plugins
⚙️

dsh-resume-on-restart

Workflow Updated 2026.08.29

Run the following command in DeepSeek Harness:

dsh plugin install nickkkkkk123123/dsh-resume-on-restart

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

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

About this plugin

When the DSH service restarts, work-in-progress often grinds to a halt. Session context is lost, the agent faces a blank slate with no idea what happened or where to pick up. dsh-resume-on-restart was built for exactly this scenario—offering a lightweight bridge between a cold start and a productive resumption.

Its approach is deliberately simple. A small marker file records the previous process PID and boot time. On each DSH start, the plugin compares the new PID against the stored one to detect a restart. Once confirmed, it polls for the primary agent to become available (up to 20 seconds) and delivers an informational message summarizing the downtime and the most recently active session. Crucially, this is a notification, not a command—the agent decides for itself whether to resume prior work, adjust its plan, or start fresh. During normal operation, the plugin continuously tracks active sessions via cordis session-start and pre-step events, so the next restart notice carries meaningful context.

If you run multi-step agent workflows through DSH and do not want to manually reconstruct context every time the service recycles, this plugin is worth a look. It has zero dependencies on DSH internals, works inside the DSH Desktop packaged environment (app.asar), and offers sensible configuration knobs: disable waking, filter session ID prefixes, append custom notices, tune the grace window, and more.

Use Cases

  • Notify the primary agent of downtime and last active session after a DSH restart
  • Avoid context loss in multi-step agent workflows when the service recycles
  • Maintain session continuity across restarts in DSH Desktop packaged deployments

Best For

  • Development teams running DSH-based agent workflows
  • Engineers deploying via DSH Desktop packaged environments
  • Individual users who need agent context recovery after service restarts