ruimin251204/dsh-plugin-surgery ↗★ 1
dsh-plugin-surgery
给 DSH 插件一把手术刀:看得见影响面的安全卸载、一键回滚、restart-pending 确认与插件体检。Safe uninstall with impact preview, snapshot rollback, restart-pending confirmation, and a plugin doctor for DeepSeek Harness.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ruimin251204/dsh-plugin-surgery说明文档
阅读完整 README ↗配置(cordis.patch.yml)
- id: plugin-surgery
config:
maxSnapshots: 20 # 快照保留份数(卸载后自动执行保留策略)
# profileDir: /path/to/profile # 显式指定目标 profile(缺省自动探测)
使用示例(直接对 agent 说人话)
安装后不需要任何配置——pm_* 工具会自动出现在 agent 的工具集里,你只需要在对话里说:
体检:
用 pm_doctor 给我的插件做个体检,有问题就修一下
卸载(推荐先预览):
把 dsh-web-ui-all 卸载掉,先 dry-run 看看会带走哪些依赖 (看完影响面)→ 确认卸载吧
回滚:
刚才卸载好像不对,回滚到最新快照
查状态:
pm_status 看看有没有待重启生效的操作
工具描述里已经写明了安全流程(dry-run → confirm),agent 会按流程执行,不会跳过确认直接动手。