AbnerAI/dsh-monitor
Project Overview项目介绍
dsh-monitor is a native DSH plugin that acts as a drop-in replacement for Claude Code’s Monitor tool, built exclusively for DeepSeek Harness. It enables persistent background watchers that monitor specified message sources for new content. When new content arrives, it automatically wakes an idle DSH agent or queues the message for the agent’s next processing step, injecting the new message into the active session just like Claude Code’s task notification mechanism. You can install it via three methods: from npm, from the GitHub repository, or from a local directory on your machine. When installing from a local directory, you need to run pnpm install inside the package directory first to resolve dependencies manually.
This plugin is targeted at developers who use DSH and need their agents to stay responsive to inbound asynchronous messages. It supports two types of watcher sources: file and command. For file sources, it watches an append-only NDJSON inbox file, and triggers a wake-up every time a new line is added to the file. For command sources, it reruns a specified shell command on a set interval, and only delivers the delta in output that changed since the last run. Users can call the provided tools to create, list, and stop watchers at any time during their session, fitting common async notification and dev workflow use cases.
dsh-monitor is released under the permissive MIT open source license. It requires a DeepSeek Harness environment with Cordis-based plugin loading that supports bundles and cordis.patch.yml. It has peer dependencies on several core DSH packages including dsh-agent, dsh-llm, dsh-tools, and Cordis, all of which are automatically satisfied by the DSH runtime. When creating a new file watcher, you must use an absolute path or a path starting with ~, as the plugin expands the ~ character that Node’s fs module does not handle automatically. All watchers are durable for the session, can be stopped on demand, and are automatically cleaned up when the plugin is unloaded.
dsh-monitor 是专门为 DeepSeek Harness(DSH)开发的原生插件,复刻并提供了 Claude Code 的 Monitor 工具的等价能力。它允许用户在指定消息来源设置持久的后台监听器,当有新内容到达时,自动唤醒处于空闲状态的 DSH 代理,或者将消息排队注入代理的下一步处理流程,把插件来源的新消息有序注入当前会话,保持代理对外部消息的响应能力。
这款插件主要面向需要让 DSH 代理持续响应外部异步消息的开发者,支持两种监听器来源:一种是监听仅追加写入的 NDJSON 收件箱文件,新行写入就会触发响应;另一种是按指定间隔轮询 shell 命令,只传递上次运行后输出的增量变化。用户可以通过代理调用工具创建、列出、停止监听器,适配异步消息通知的开发工作流。
该插件遵循 MIT 开源许可协议,依赖 DSH 的 Cordis 插件加载环境,对等依赖 dsh-agent、dsh-llm 等 DSH 核心包,这些依赖由 DSH 运行时自动满足。可以通过 npm、Git 仓库或本地目录三种方式安装,安装本地目录包时需要提前手动运行 pnpm install 解析依赖,创建文件监听器时路径必须为绝对路径或带 ~ 前缀。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-monitor(AbnerAI/dsh-monitor)
仓库:https://github.com/AbnerAI/dsh-monitor
本站详情页:https://www.yhbd.top/plugins/abnerai-dsh-monitor/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-13 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
npx @deepseek-ai/dsh@latest plugin --profile web add dsh-monitor
把 AbnerAI/dsh-monitor 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
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 <task-notification> 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 <task-notification>) |
| 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 <name> <args...>is a thin pnpm forwarder: it runspnpm <args...>in the profile directory, then adds any installed package that declaresdsh.bundleto 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 installinside 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:
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
CocoSgt/dsh-attachments
tower1229/dsh-thinkbar