deepforce/dsh-plugin-reloader ↗★ 1
@deepforce/dsh-plugin-reloader
Hot-reload installed DeepSeek Harness plugins without restarting dsh web: watches plugin bundles, reloads changed plugins in place, and restarts on dependency changes 适合频繁升级插件的开发者;依赖变化重启需通过supervisor启动dsh。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:deepforce/dsh-plugin-reloaderREADME
Read the full README ↗Usage
After upgrading an installed plugin:
dsh plugin --profile web add github:deepforce/dsh-balance # upgrade
The watcher notices the changed lib/ files and hot-reloads it — no restart. To force it
manually, type /reload @deepforce/dsh-balance in a session, or /reload with no argument
to list candidates.
If the upgrade also changed the plugin's dependency tree, the process exits 42 and the
supervisor relaunches dsh web automatically (a supervisor is required — a plain dsh web
just exits).
Configuration
| Field | Default | Meaning |
|---|---|---|
watchEnabled | true | Poll installed plugins and hot-reload on code changes |
watchRoots | ["@deepseek-ai", "@deepforce"] | Scoped directories under the profile's node_modules to consider |
debounceMs | 400 | Change coalescing window before a reload fires |
pollIntervalMs | 2000 | Polling interval for change detection |
restartExitCode | 42 | Exit code used when a dependency tree changed (supervisor restarts on it) |
allowOfficial | false | Also hot-reload official @deepseek-ai plugins (not recommended) |
allowServiceProviders | false | Also hot-reload plugins that provide services other plugins depend on (not recommended) |
Example overlay: