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.

Tool Monitor — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
T

dsh-tool-monitor

Tool Monitor

Event-driven monitoring for existing DeepSeek Harness background jobs

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

npx -y @deepseek-ai/dsh plugin --profile web add github:yoke233/dsh-tool-monitor#244e8eb1f4828c2c6cc4eee664b6d895b8e6e315
READMECompatibilityVersions

Compatibility and provenance

Tool Monitor is published as dsh-tool-monitor and currently resolves to version 0.1.3. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/20/2026

Versions

0.1.3stable
9/20/2026
0.1.2stable
8/31/2026
0.1.1stable
8/26/2026

Related plugins

Loading related plugins…

Latest
0.1.3
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/28/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

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-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspection

README

dsh-tool-monitor 通过惰性输出 tee 监听现有 DSH 后台 Job,而不重复执行原命令

让 DeepSeek Harness 在后台服务出错时立即收到事件。
订阅已经运行的 Bash 或 PowerShell Job;保留原始 job_output,不启动第二个业务进程。

快速开始 · 为什么需要它 · 工作方式 · 工具参数 · 兼容性与边界

快速开始

安装到 DSH profile:

dsh plugin --profile web add github:yoke233/dsh-tool-monitor

启动或重启 profile:

dsh --profile web

先正常启动后台服务:

pwsh(command: "npm run dev", run_in_background: true)
→ pwsh-1

再让 job_monitor 订阅这个 Job:

{
  "job_id": "pwsh-1",
  "description": "监听后端错误",
  "pattern": "error|fatal|exception"
}
→ monitor-1

monitor-1 只订阅 pwsh-1 的输出。出现匹配行时,插件向所属 Agent 投递会话事件;原服务始终只运行一份。

为什么需要它

DSH 的普通后台 Job 会在任务结束时通知 Agent,但长期运行的后端服务可能在退出前就已经出现需要处理的错误。这个插件补充运行中的事件通道:

行为结果
监听现有 job_id不重新执行服务命令
一次读取、多路分发Monitor 不会吃掉 job_output 的内容
惰性启用 tee没有 Monitor 的 Job 保持官方读取路径,不被轮询
Host 本地过滤与批处理没有匹配事件时,不触发模型请求
独立 Monitor 生命周期停止 Monitor 不会终止目标 Job

工作方式

Bash / Pwsh background process
              │
              │ readOutput() once
              ▼
       lazy bounded output tee
          ┌────────────┴────────────┐
          ▼                         ▼
     job_output                 monitor-N
   original output        filtered complete lines
                                  │
                                  ▼
                         followup() / inject()

插件使用兼容的 JobRegistry 实现扩展官方 LocalJobRegistry,继续复用 DSH 的所有权隔离、等待、取消、完成通知、容量限制和清理语义。原来的 job_list、job_output、job_kill 以及 Bash/Pwsh 工具保持不变。

完整设计和生命周期约束见 DESIGN.md。

工具参数

参数必填说明
job_id是已有流式后台 Job 的 id,通常来自带 run_in_background: true 的 bash 或 pwsh
description是显示在 Monitor 通知中的简短说明
pattern否JavaScript 正则表达式,逐完整输出行匹配
case_sensitive否是否区分大小写,默认 false
timeout_ms否订阅时限;默认持续到目标 Job 结束

Monitor 本身也是普通 Job:

  • job_list 同时显示目标 Job 和 Monitor。
  • job_output 分别读取目标 Job 的原始输出和 Monitor 的匹配输出。
  • job_kill monitor-1 只停止订阅。
  • 目标 Job 结束时,关联 Monitor 自动结束并刷新最后一条不完整输出行。

兼容性与边界

  • 支持 Bash 的 LF 与 PowerShell 的 CRLF 输出。
  • 只支持公开流式 readOutput() 的后台 Job;非流式 Job 会被明确拒绝。
  • 所有权校验仍由 DSH Registry 执行,不能跨会话监听其他 Agent 的 Job。
  • Job 和 Monitor 都是 Host 进程内状态,不跨 DSH Host 重启持久化。
  • 插件安装前由另一 Registry 创建的历史 Job 不可补挂监听。
  • 缓冲区按 UTF-8 字节设置上限;发生丢弃时,job_output 会显示明确提示。

本地开发

pnpm install
pnpm run build
pnpm test
dsh plugin --profile web add ./dsh-tool-monitor

测试覆盖 Bash、PowerShell、原 job_* 工具兼容、输出竞态、所有权隔离、目标结束与独立取消。

License

MIT