READMESource: main@da1f88ca
dsh-process-control
一个独立的 DeepSeek Harness Web 插件,在左侧栏底部提供“重启服务”和“终止服务”。它通过官方的 sidebar.footer.action 插槽挂载 UI,通过官方 webServer 注册 loopback-only HTTP 路由控制当前 Harness 进程。
安装
dsh plugin 只是把参数转发给 profile 目录里的 pnpm,所以本地目录和 Git 仓库都能装。
从 GitHub 安装:
cd /path/to/deepseek-harness
pnpm dsh plugin --profile web add github:HFUT-zhengjiahao/dsh-process-control
或用本地克隆:
cd /path/to/deepseek-harness
pnpm dsh plugin --profile web add /path/to/dsh-process-control
然后重启 Web 服务。插件包位于官方仓库之外,不修改官方源码。
行为
- “终止服务”发送
SIGTERM,5 秒后仍未退出才发送SIGKILL。 - “重启服务”先启动一个脱离当前进程的等待器,旧服务释放 3080 端口后复用当前 Node 参数启动新的 Harness,再由浏览器自动刷新。
- 路由只接受同源 loopback 浏览器的
POST请求,不监听额外端口,不提供网络远程控制。 - 插件没有工具、模型 schema、system prompt、prompt section 或 session event,因此不改变模型输入,也不增加模型 token。
移除
pnpm dsh plugin --profile web remove dsh-process-control
Model Experience
No model-facing contribution
What the model sees
None. The plugin only registers a browser sidebar action and a host-local process-control route.
Token effect
Zero direct effect. No model tool, prompt section, system prompt, or session event is registered.
KV Cache effect
Independent of model requests. Starting, stopping, or restarting the host changes process availability only; it does not append or replace model context.
No comments yet. Be the first to write one.