DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Treekeeper — DSH Plugin for DeepSeek Harness
← Plugins

dsh-treekeeper

Treekeeper

DSH 运行时进程树对账与治理:把当前宿主的任务账本与本机真实进程树对账,标出未归属/泄漏/孤儿进程并守卫式树杀。Runtime process-tree reconciliation for DeepSeek Harness: join the current host's job ledger with the live OS process tree, surface unattributed/leaked/orphaned children, and kill trees behind creation-time guards.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-treekeeper@0.2.6
READMECompatibilityVersions

Compatibility and provenance

Treekeeper is published as dsh-treekeeper and currently resolves to version 0.2.6. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/17/2026

Versions

0.2.6stable
9/17/2026
0.2.5stable
9/17/2026
0.2.4stable
9/15/2026
Show 6 more versionsCollapse versions
0.2.3stable
9/14/2026
0.2.2stable
9/4/2026
0.2.1stable
9/2/2026
0.2.0stable
9/1/2026
0.1.0stable
8/29/2026
0.0.1stable
8/27/2026

Related plugins

Loading related plugins…

Latest
0.2.6
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
9/17/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

dsh-treekeeper

中文 | English

面向 Windows 的 DSH 进程树对账与治理插件。它将当前宿主的 OS 进程后代与可用任务账本并列展示,标出泄漏、孤儿和未归属进程,并提供受保护的进程树终止。

功能

  • 采样当前 DSH 宿主的进程树,避免把启动器的其他子进程误归入宿主。
  • 检测重复命令、孤儿进程和长时间运行的插件子进程。
  • 对照 jobs 与指定 session 的 subagent 后代树,不唤醒冷 session。
  • 从 Mini Utility Dock 打开全局面板,或从会话标题栏直接聚焦当前 session。
  • 从命令行路径识别插件来源,并记录 findings 与操作历史。

安装

# 从 npm 安装并注册到 web profile(推荐)
dsh plugin --profile web add dsh-treekeeper

# 仅安装 npm package
npm install dsh-treekeeper

# 或从 GitHub 安装
dsh plugin --profile web add github:xswt442-cmd/dsh-treekeeper

npm install 只安装 package;在 DSH 中启用仍需将 bundle 加入 profile。使用 dsh plugin add 可一次完成。重启 DSH Web 后生效。

会话范围

Subagent 分区有三种状态:

状态含义
available显示已选 session 的完整后代树
root-required从 Dock 打开,尚未选择 session
unavailable当前 DSH 构建未提供 subagents 能力

会话标题栏入口始终传入明确的 session;全局入口不会猜测当前选择。

配置

配置仅在当前进程中生效,重启后恢复默认值。

字段默认值说明
pollMs0后台采样间隔;0 表示按请求采样,最小有效值为 2000 ms
allowKilltrue启用受保护的进程树终止
extraWhitelistPids[]额外保护的 PID

安全与边界

DSH 0.1.2-rc.1+ 下,浏览器 API 复用 Connection 的签名 cookie;页面关闭、刷新被替代或 HTTP 断开时,正在进行的 subagent descendant 遍历会收到取消信号。

  • 当前仅支持 Windows;CIM 不可用时降级为只读采样,并禁用归属与终止。
  • API 仅接受来自 loopback 对端的同源请求;网络身份由 TCP 对端地址判定(而非 Host/Origin 头),即使宿主监听 0.0.0.0,远端请求也会被拒绝;写操作仅接受 POST。
  • 终止要求 15 秒内的完整快照,并重新核验 PID 创建时间;仅 DSH 宿主树内的进程可被终止,unknown 进程仅作排查、不可终止。
  • 系统关键进程、当前宿主、启动链和额外白名单 PID 不可终止。可终止范围只限 DSH 宿主归属树:额外白名单 PID 仅用于标注(它的后代仍可见但不可终止),保护一个 PID 不会扩大可杀范围。
  • 受保护后代按树杀前即时采样的进程树计算:若该树包含任一受保护 PID,整个操作被拒绝。采样之后新出现的受保护后代无法排除——taskkill /T 没有排除开关,这是残留的 TOCTOU 边界,不是绝对保证。
  • Jobs 与 OS 进程没有稳定 PID 映射;命令行匹配仅用于排查,不触发自动操作。
  • Findings 与终止结果写入 $DSH_HOME/treekeeper/history.jsonl。

开发

npm test
npm run docs:check
npm pack --dry-run

License

MIT