reina4xa/dsh-plugin-reload ↗★ 0
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
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:reina4xa/dsh-plugin-reload说明文档
阅读完整 README ↗dsh-plugin-reload
English | 中文
一个 DeepSeek Harness 插件,为模型提供 reload_plugin 工具:按 entry id、模块名或 MCP serverName 匹配,恰好重启一个 Cordis Loader 条目——dispose 其 fiber 后以不变配置重新 apply。其余条目全部保持运行。
重载 mcp-client 条目会重启该 MCP server 子进程(拾取磁盘上的新代码)并重新注册其工具;同族的其他 MCP 连接不受影响。
构建在 DeepSeek Harness 的"一切皆插件"架构之上。官方仓库当前不接受外部 PR——按照 CONTRIBUTING.md 的建议,社区插件独立发布并通过
dsh-plugin话题分享。
安装(自动挂载)
自 v0.1.2 起本包声明了 dsh.bundle,一条命令即可完成安装并自动挂载:
dsh plugin --profile web add dsh-plugin-reload
底层发生的事情:
dsh plugin在 profile 目录(~/.dsh/profiles//)里执行pnpm add。- 成功后对账 profile 清单:因为
dsh-plugin-reload的package.json声明了dsh.bundle,它会被自动追加到 profile 的dsh.profile.bundles层列表。 - 下次启动 harness 时组合 bundle 层,插件自带的
cordis.patch.yml自动插入plugin-reload条目——模型工具列表中出现该工具,无需手动编辑 patch。
升级到后续版本:
dsh plugin --profile web update dsh-plugin-reload
刚发布的新版本可能被 pnpm 的
minimumReleaseAge供应链策略短暂拦截;用显式版本号(dsh plugin --profile web add dsh-plugin-reload@0.1.x)可绕过。
手动挂载(备选)
如果用普通 npm 安装(而非 dsh plugin),或希望用显式 patch 行,请加入 profile patch(~/.dsh/profiles//cordis.patch.yml,或 --patch 覆盖层):
- insert:
- id: plugin-reload
name: 'dsh-plugin-reload'
重启 harness(或让 profile-patch HMR 热载)。bundle 挂载与手动行二选一,不要同时保留(重复注册同名工具会在加载时失败)。
用法
reload_plugin 接受:
| 参数 | 必填 | 含义 |
|---|---|---|
name |