dsh-monitor

DSH PLUGIN通知与集成

仓库 AbnerAI/dsh-monitor · npm dsh-monitor

通知与集成 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

dsh-monitor 为 DeepSeek Harness 提供持久后台监视器,监听文件或命令输出,新内容到达时自动唤醒代理并注入消息,是 Claude Code Monitor 的替代方案。

验证等级 L5 L5 · 运行验证通过
GitHub 星标 3 复刻 0 · 未关闭 issue 0
最近更新 2026-08-13 创建于 2026-08-13
README 5.1 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add dsh-monitor
兼容 DSH 版本0.2.0-rc.2 等 11 个版本版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖@deepseek-ai/cordis@^4.0.1、@deepseek-ai/dsh-agent@^0.1.0-rc.6 等 4 个需要同时安装的同级依赖
npm 包名dsh-monitor可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-monitor:DeepSeek Harness 的持久后台监视器插件

  • 监视文件收件箱
  • 轮询命令输出
  • 自动唤醒代理
  • 管理监视器

适用场景

文件读写通知

上游标签

dsh-plugin

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度稳定按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✓ 通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 方式:Web 启动
  • L5.3_HTTP_SERVED HTTP 服务响应 方式:HTTP 请求
  • L5.4_PLUGIN_INVENTORY_ACTIVE 插件清单中已激活 方式:插件清单查询

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

仓库档案

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方AbnerAI仓库 dsh-monitor · 默认分支 main
分类通知与集成notify
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue3 / 0 / 0收录时的数值,非实时
创建 / 更新2026-08-13 · 2026-08-13最后推送 2026-08-13
本站收录2026-08-27首次进入本站目录的时间

README 全文

5.1 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-monitor

A drop-in replacement for Claude Code's Monitor tool, built for DeepSeek Harness.

dsh-monitor is a harness plugin that arms persistent, background watchers on message sources. When new content arrives, the plugin wakes the owning agent — delivering a plugin-sourced user message into the session, exactly like Claude Code's `` mechanism.

If you rely on Claude Code's Monitor to stay responsive to inbound messages while a shell is idle, this plugin gives you the same capability inside DeepSeek Harness.

How it works

The model calls the monitor tool to arm a watcher on a source:

  • source: file — an append-only NDJSON inbox. New lines are delivered as they land.
  • source: command — a shell command re-run on an interval. Its output delta since the last run is delivered.

On each new message the plugin wakes the agent:

Agent state Behavior
idle agent.followup() — opens a new turn (harness analog of Claude Code's ``)
busy agent.inject() — queues the message into the next step

Watchers are durable within the session, disarmable on demand, and torn down automatically when the plugin is unloaded.

Installation

> dsh plugin --profile is a thin pnpm forwarder: it runs
> pnpm in the profile directory, then adds any installed package
> that declares dsh.bundle to the profile's layer stack automatically.

From npm

npx @deepseek-ai/dsh@latest plugin --profile web add dsh-monitor

From git

npx @deepseek-ai/dsh@latest plugin --profile web add https://github.com/AbnerAI/dsh-monitor

From a local directory

npx @deepseek-ai/dsh@latest plugin --profile web add /path/to/dsh-monitor

> When installing a local directory, run pnpm install inside the package
> first — link: installs do not resolve the package's own dependencies
> automatically.

Manual alternative: add dsh-monitor to the profile's dsh.profile.bundles
and include this package's cordis.patch.yml via its dsh.bundle.patch
declaration.

Quick start

Tell the agent to arm a watcher on an inbox file:

monitor(source="file",
path="/absolute/path/to/inbox.ndjson",
name="my-inbox",
poll_interval_ms=1000)
  • path must be an absolute path (or start with ~ — the plugin expands it). Node's fs does not expand ~ itself.
  • poll_interval_ms defaults to 2000; 1000 is a good balance for chat-like inboxes.

The tool returns a watcher id, e.g. monitor-1. From then on, every new line written to the file wakes the agent automatically.

Manage watchers at any time:

monitor_list                        # list armed watchers (id, source, delivered count)
monitor_stop(id="monitor-1")        # disarm one

To watch a command's changing output instead of a file:

monitor(source="command", command="tail -n 5 /var/log/app.log", poll_interval_ms=5000)

Tools

monitor

Arm a persistent watcher.

Parameter Type Required Description
source "file" \| "command" yes file = watch an append-only NDJSON inbox; command = poll a shell command's output
path string for file path of the NDJSON inbox (absolute, or ~-prefixed)
command string for command shell command to poll
cwd string no working directory for the command (defaults to the process cwd)
poll_interval_ms number no poll interval in ms (default 2000)
name string no short label used in wake-up messages and monitor_list

Returns a watcher id. Each new NDJSON line (or command-output delta) is delivered as a plugin-sourced notice that wakes the agent.

> Implementation note. Polling uses plain global setInterval with cleanup registered via ctx.effect — the same timer convention as dsh-schedule. The Cordis timer-service mixin (ctx.setInterval) is intentionally not used: it is only resolvable from the host context, not from tool-execution contexts, and calling it throws cannot get property "timer" without inject.

monitor_list

List armed watchers with their ids, sources, and delivery counts. Empty output means nothing is armed.

monitor_stop

Disarm a watcher by id. Returns whether it was still armed.

NDJSON inbox format

Each line is a JSON object; the content field is delivered if present, otherwise the raw line:

{"content":"hello","ts":1712345678}

Any append-only NDJSON file works. The format pairs naturally with messaging and notification brokers: a broker appends one record per inbound message, and a watcher on the file wakes the agent as new records land. This mirrors the contract Claude Code Monitor exposes for its own inbox watchers.

Requirements

  • DeepSeek Harness (dsh) with a Cordis-based plugin loader (bundles / cordis.patch.yml).
  • Peer dependencies: dsh-agent, dsh-llm, dsh-tools, cordis (satisfied by the harness runtime).

License

MIT

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-monitor 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add dsh-monitor` 即可。对应的 npm 包名是 `dsh-monitor`。

dsh-monitor 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-monitor 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-monitor 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.2.0-rc.2、0.1.7-rc.2、0.1.7-rc.1、0.1.6-alpha.2、0.1.6-alpha.1、0.1.5-rc.2、0.1.3-alpha.2、0.1.3-alpha.1。版本较多,只列出前 8 个。

dsh-monitor 需要什么运行环境?

需要同时安装 @deepseek-ai/cordis@^4.0.1、@deepseek-ai/dsh-agent@^0.1.0-rc.6、@deepseek-ai/dsh-llm@^0.1.0-rc.6、@deepseek-ai/dsh-tools@^0.1.0-rc.6。环境不满足时安装会失败,建议先确认本机版本。

dsh-monitor 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-monitor 有哪些功能?

监视文件收件箱、轮询命令输出、自动唤醒代理、管理监视器。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

4 条
不同作者的仓库分开列,请确认你要装的是哪一个
通知与集成
按星标排序,可作替代方案

treg

treg

Treg 是面向 Agent 工具的 OpenRouter,聚合 60 个提供商的 2896 个端点,按调用计费,统一令牌访问,无需注册各供

L3 · 安装规范通过 4,976 星

dsh-im

dsh-im

将IM机器人接入DeepSeek Harness,支持飞书、微信、钉钉等九种渠道,通过扫码或凭据配置,统一管理多机器人连接。

L5 · 运行验证通过 1,837 星

dsh-dafeiyu

dsh-dafeiyu

DSH 大肥鱼是一款由 DeepSeek Harness 真实工作状态驱动的桌面伴侣插件,以始终置顶的透明窗口实时展示 Agent 的思考、

L5 · 运行验证通过 425 星

dsh-trading

dsh-trading

L3 · 安装规范通过 235 星

A-share-Ai

A-share-Ai

幻银量化A股阿法狗AlphaHYQi,100%由ai自主驱动的实盘交易机器。接入自产龙虾iClaw,手机端一句话控制四大模型同时干活。获取方

L4 · 沙盒安装通过 130 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。