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。

Package
@deepforce/dsh-plugin-reloader
Compatibility
Unverified
Harness peer range
^0.0.1-rc.1
Cordis peer range
^4.0.1
Version
0.2.0
License
MIT
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:deepforce/dsh-plugin-reloader

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

FieldDefaultMeaning
watchEnabledtruePoll installed plugins and hot-reload on code changes
watchRoots["@deepseek-ai", "@deepforce"]Scoped directories under the profile's node_modules to consider
debounceMs400Change coalescing window before a reload fires
pollIntervalMs2000Polling interval for change detection
restartExitCode42Exit code used when a dependency tree changed (supervisor restarts on it)
allowOfficialfalseAlso hot-reload official @deepseek-ai plugins (not recommended)
allowServiceProvidersfalseAlso hot-reload plugins that provide services other plugins depend on (not recommended)

Example overlay: