DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Process Guardian — DeepSeek Harness 插件(DSH Plugin)
← Plugins
P

dsh-process-guardian

Process Guardian

阻止模型编写的终止 DeepSeek Harness 主机进程的常见尝试

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:emeryxu1-blip/dsh-process-guardian#a90998b254f555f637dfde4ce274d210c1a22ab4
README兼容性版本

兼容性与来源证明

Process Guardian 以 dsh-process-guardian 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/27

版本

0.1.1stable
2026/8/27

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/8/27
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 security-access 分类下经过校验的插件。

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。

README

DSH Process Guardian

中文说明

A Cordis plugin for DeepSeek Harness (DSH) that guards against accidental, model-authored termination of the DSH host process running the task.

Why this exists

The incident that motivated this plugin was not an automatic DSH “stale state restore.” Two independent root tasks were editing the same workspace toward opposing goals. One model saw the other task's writes, misdiagnosed DSH itself as the writer, found the dsh web PID, and issued the equivalent of:

kill <dsh-host-pid>

Because the Bash tool is a child of that DSH process, the signal stopped the host, interrupted every hosted task, and prevented the tool result from being recorded normally.

The command and its UI description were model-authored Bash arguments. DSH's Bash source explicitly places deployment policy at tools/pre-execute, while DSH's current tool runtime provides a monotonic tools.guard() stage whose denials cannot be force-allowed by a later listener. This plugin installs that guard and adds a matching system-prompt invariant.

Relevant upstream contracts:

  • ToolGuard is monotonic
  • ToolRuntime.guard() registration
  • Bash policy belongs before execution
  • The DSH file sandbox does not express process/syscall restrictions

What it blocks

The plugin captures the host PID, parent PID, process group, command line, executable names, and dsh web --port value at startup. Before a bash, pwsh, or submitted terminal_send command runs, it denies recognizable attempts such as:

kill <dsh-host-pid>
kill $PPID
kill -- -<dsh-process-group>
pkill -f 'dsh web'
killall node
pgrep -f dsh | xargs kill
lsof -ti :<dsh-web-port> | xargs kill
node -e 'process.kill(<dsh-host-pid>)'

Signal-zero probes such as kill -0 <dsh-host-pid> remain allowed, as do signals to unrelated application-server PIDs. For example, kill <next-dev-pid> and pkill -P <dsh-host-pid> next can still stop a DSH-owned development child without killing DSH itself.

Denied calls return an actionable model-visible error: inspect concurrent root tasks in the workspace or ask the user, and do not retry with another termination primitive.

Install

Install the tagged release into the web profile with DSH's plugin manager:

dsh plugin --profile web add -w github:emeryxu1-blip/dsh-process-guardian#v0.1.1

The explicit -w acknowledges that a DSH profile is the root of its one-package pnpm workspace. This installs the package and appends its declared dsh.bundle to the profile. Confirm the composed layer without starting another server:

dsh --profile web --dump-config

Restart DSH once after installation so the guard is active before starting new tasks.

To remove it later:

dsh plugin --profile web remove dsh-process-guardian

Configuration

OptionDefaultPurpose
protectProcessGrouptrueProtect the discovered DSH process group from negative-PGID signals.
protectTerminalSendtrueInspect commands submitted through a persistent terminal.
additionalProtectedPids[]Extra fixed PIDs to protect for the lifetime of this DSH process.
additionalProtectedPorts[]Extra ports to protect in dynamic lsof/xargs kill selectors.
additionalProcessNames[]Extra executable or selector names treated as protected.

The DSH host PID and --port are discovered automatically. Do not hard-code them in normal configuration.

Scope and limits

This plugin fixes the direct self-termination path. It does not serialize unrelated root tasks or decide which task owns a shared workspace. Avoid running opposing goals against the same checkout; use separate worktrees or stop one task first.

Static command inspection is not syscall isolation. Opaque scripts, package scripts, encoded commands, native binaries, or commands assembled across multiple terminal writes can hide a signal from the classifier. See SECURITY.md and use an OS/container boundary for hostile code.

Development

pnpm install
pnpm test

The test suite includes the original direct-PID failure shape, process-group variants, name selectors, dynamic pipelines, embedded language APIs, signal-zero probes, unrelated development-server kills, terminal submissions, configuration validation, and Cordis registration behavior.

License

MIT