DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-sim-restart

t

dsh-sim-restart

Discovered

Simulated-restart testing for DeepSeek Harness plugins: verifies plugins survive restart (module eval → apply → smoke → dispose) in isolated subprocesses, with a resident auto-watcher and agent feedba

dsh-sim-restart

English · 中文

License GitHub stars GitHub forks Last commit DSH plugin

Simulated-restart testing for DeepSeek Harness (DSH) plugins. Without actually restarting the DSH process, it runs each plugin through the full restart path — process restart → module eval → plugin shape → apply start → smoke run → dispose cleanup → clean exit — in an isolated subprocess, and reports whether the plugin would crash or hang after a real restart.

A resident watcher auto-triggers these tests whenever any plugin is installed, modified, or removed, and pushes failure diagnostics into the agent's prompt until everything passes again.

Open-source release of dsh-lark-sim-restart (renamed; the plugin was never Lark-specific).

Features

FeatureDescription
Full plugin-type coverageDynamic plugins (source mode), filesystem plugins (plugins/), npm plugins (node_modules/, incl. @scope), and any directory with a package.json (module mode, auto-detected)
Engine auto-resolutionEntry resolved from package.json exports/main or common paths; dependencies laid out from the profile node_modules, the global root, the DSH install, and plugins/
Real config passingAuto-tests collect each plugin's config from the patch layer (bundle-internal + profile, !!js expressions evaluated host-side)
Agent feedback loopFailures are injected as a systemPrompt section with exact diagnostics; the watcher re-tests after every fix until all pass
Bundled engineThe engine (lib/engine.mjs) ships inside the package — zero external deployment

Tools

ToolDescription
simulate_plugin_restartRun one plugin through the simulated-restart pipeline (source or module mode), structured per-round/per-stage ✅/❌ diagnostics
simulate_plugin_restart_autoScan every enabled plugin and test them all in sequence; also used by the resident watcher
sim_restart_auto_statusQuery watcher state: watch scope, last scan, pending queue, latest per-plugin results and failure diagnostics

Install

Place the package under a DSH profile (plugins/ or node_modules/) and enable it in cordis.patch.yml:

- insert:
    - id: sim-restart
      name: dsh-sim-restart

Requirements: Node.js ≥ 20, @deepseek-ai/dsh-tools peer, and js-yaml (dependency).

Configuration

KeyDefaultDescription
watchEnabledtrueEnable the resident auto-testing watcher
pollMs2000Watcher scan interval (ms)
debounceMs2500Debounce before testing after a change (ms)
rounds2Rounds per auto-tested plugin (1–4)
smokeMs800Smoke-run duration per round (ms)
profileDir~/.dsh/profiles/webTarget DSH profile root to watch and test
stubsMapLark defaultsPlugin-name → stub list for external connections (e.g. deepseek-harness-lark WebSocket)

How it works

  1. The engine runs each round in a fresh temp directory (mktemp -d), writing params.json and executing node engine.mjs params.json.
  2. The engine deliberately does not call process.exit(): a clean run exits naturally when all handles are released. A hung process (timed out by the caller) is the exact "would hang after restart" verdict.
  3. The watcher computes directory signatures (size + mtime of every file), diffs them on each poll, debounces, then tests changed plugins through a serial queue.
  4. Results persist to ~/.dsh/var/sim-restart/auto-status.json (configurable per deployment).

Development

node --check lib/index.js && node --check lib/engine.mjs
node test/self-test.mjs

License

MIT

Comments

Loading…

Similar plugins

dsh-developer

by builtin-pb

The single plugin you need for DSH — build, test, diagnose, and maintain DeepSeek Harness plugins and core.

Development & InfrastructureManifest valid

★ 7

MIT

JavaScript

Sep 19, 2026

dsh plugin --profile web add dsh-developer

by Apageoflove

Local-first experiment and evaluation workbench plugin for DeepSeek Harness (DSH).

Terminal & ClientsDevelopment & InfrastructureManifest valid

★ 3

↓ 5/wk

MIT

JavaScript

Sep 18, 2026

dsh plugin --profile web add dsh-arena

by davidgereb

Restart your ongoing agent sessions once on server restart in DeepSeek Harness.

Manifest valid

★ 0

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add dsh-plugin-watchdog

by lispking

A self-evolving plugin for DeepSeek Harness (dsh). It observes how the agent runs, proposes improvements to its own assets via the LLM, validates each proposal inside a sandboxed trial agent, and appl

Workflow & AutomationManifest valid

★ 3

↓ 202/wk

MIT

TypeScript

Aug 25, 2026

dsh plugin --profile web add dsh-auto-evolve

by a1113622001

DeepSeek Harness (cordis) plugin: self-update for the harness launcher - checks npm for a newer @deepseek-ai/dsh, stages it, and applies it on harness exit (or update-and-restart from the web panel).

Development & InfrastructureTerminal & ClientsManifest valid

★ 3

MIT

JavaScript

Aug 22, 2026

dsh plugin --profile web add dsh-auto-update

by ZK-Andy

Continual self-evolution plugin for DeepSeek Harness: versioned, auditable, rollback-safe harness state refined from session trajectories, with a benchmark-driven validation loop.

Workflow & AutomationManifest valid

★ 20

↓ 1.8k/wk

MIT

TypeScript

Oct 7, 2026

dsh plugin --profile agent add dsh-continual-evolve