reina4xa/dsh-plugin-reload ↗★ 2
dsh-plugin-reload
A DeepSeek Harness plugin: model-facing reload_plugin tool that restarts one Cordis Loader entry (by entry id, module name, or MCP serverName) without touching sibling entries — respawns mcp-client server processes and hard-reloads in-process plugin code (ESM/CJS cache bust + fiber swap)
AI 分析
核心用途是实现 DSH 插件的无缝热重载。适合插件开发者或需要频繁调整 MCP 服务配置的用户,无需重启整个 DSH 即可让代码改动或配置立即生效。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:reina4xa/dsh-plugin-reloadドキュメント
README 全文を読む ↗Usage
reload_plugin accepts:
| Argument | Required | Meaning |
|---|---|---|
name | yes | Entry id (preferred), module name, or MCP config.serverName of the entry to reload |
mode | no | auto (default) — hard reload for in-process plugins, fiber restart for mcp-client; soft — dispose and re-apply only (never picks up in-process code changes); hard — bust ESM/CJS caches and re-import the entry code from disk |
dry_run | no | true reports the single matched entry and the strategy that would run, without restarting it |
Matching walks the Loader's non-group entries once: exact entry id first, then module name, then mcp-client serverName. Zero matches fail with a bounded list of available entries; multiple matches fail listing the candidate entry ids and change nothing. Group entries never match — restarting a subtree requires one call per leaf entry.
A successful reload returns the entry id, module, optional serverName, previous and current fiber phases, the strategy used, and a semantics note. A hard reload writes nothing back to the loader config: the entry's options stay untouched, only its fiber is swapped onto the re-imported module.