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.

Notifications — DSH Plugin for DeepSeek Harness
← Plugins
N

dsh-notifications

Notifications

DeepSeek Harness web notifications for approvals, structured questions, and task outcomes.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Ycet/dsh-notifications#11e365ea707d192146dbacd4f43819a9f31452cf
READMECompatibilityVersions
消息通知插件配置列表消息通知插件展开配置

Compatibility and provenance

Notifications is published as dsh-notifications 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
github
Registry updated
9/13/2026

Versions

0.2.6stable
9/13/2026
0.2.5stable
9/7/2026
0.2.4stable
9/6/2026
Show 2 more versionsCollapse versions
0.2.0stable
8/26/2026
0.1.5stable
8/21/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
github
GitHub
★ 4
Weekly downloads
0
Last push
9/13/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 integrations-communication.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseRemote Web Ui@linxin666/dsh-remote-web-uiScan-to-pair remote access for the dsh web GUI that shares one official interface: a QR beside the settings button pairs phones and PCs into the same Web GUI (a portrait-touch adaptation layer for phones, full desktop on PCs) through one-time tokens and rPocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.

README

dsh-notifications

DeepSeek Harness(DSH)Web 消息通知插件:会话待审批、发起结构化提问、成功完成或失败时,通过浏览器通知提醒用户,点击通知即可打开对应会话;同时支持在标签页标题的鲸鱼图标上以颜色直观展示各会话状态。


📑 目录

  • 📸 界面预览
  • ✨ 功能特性
  • 🚀 快速开始
  • 📖 使用说明
  • ⚙️ 配置说明
  • 🔧 工作原理
  • 🧪 开发与测试
  • ⚠️ 已知限制
  • 🤝 贡献
  • 📄 许可证

📸 界面预览

插件配置列表(「设置 → 插件 → 插件配置」中的「消息通知」入口):

消息通知插件配置列表

展开后的「消息通知」配置面板(通知开关、浏览器权限与操作按钮):

消息通知插件展开配置


✨ 功能特性

功能说明
全会话监听监听全部 DSH 会话,不限于当前打开的会话
四类通知待审批、等待回答、任务成功、任务失败
子代理通知独立开关可单独开启或关闭子代理任务成功与失败通知
标签页图标变色会话待处理、失败或完成时,标签页鲸鱼图标变黄/红/绿(优先级黄>红>绿),点开对应会话后恢复默认色
图标状态独立开关鲸鱼图标变色与消息通知总开关相互独立,无需浏览器通知权限
前台抑制当前会话正在前台查看时自动抑制重复提醒
多标签页单发多个 DSH 标签页同时打开时,只由一个标签页发送通知
点击直达点击通知聚焦 DSH 并打开对应会话(会话已不存在时仅聚焦页面)
独立配置模块在「设置 → 插件 → 插件配置」提供独立配置模块
隐私安全通知事件不包含聊天正文、问题内容、审批参数或工具参数
双语言界面中英文界面,跟随 DSH 活动语言

🚀 快速开始

前提条件

  • 已安装 DSH CLI 与 pnpm(dsh plugin 内部转发到 pnpm)
  • 兼容 DeepSeek Harness 0.1.0-rc.6 / 0.1.0-rc.7 系列;Windows / macOS / Linux;Chromium 内核浏览器(Chrome、Edge、Brave 等)
  • DSH 页面必须保持打开;浏览器关闭后无法通知

安装

# 方式一:从 GitHub 安装
dsh plugin --profile <profile> add github:Ycet/dsh-notifications

# 方式二:从本地源码安装(开发)
dsh plugin --profile <profile> add dsh-notifications@file:<absolute-path-to-plugin>

包声明了 dsh.bundle 补丁层,dsh plugin 会自动把加载项合入 profile 的 bundle 层,无需手动编辑 cordis.patch.yml。

[!NOTE] file: 安装是快照:更新源码后需重新执行安装命令,再重启 dsh web 生效(bundle 层变更不热加载)。

卸载:

dsh plugin --profile <profile> remove dsh-notifications

启动

  1. 重启网页应用:dsh web
  2. 打开 http://127.0.0.1:3080,进入「设置 → 插件 → 插件配置」
  3. 展开「消息通知」,点击「授权通知」并在浏览器权限提示中选择允许

📖 使用说明

  1. 安装插件并重启 dsh web;
  2. 打开「设置 → 插件 → 插件配置」;
  3. 展开「消息通知」模块;
  4. 点击「授权通知」,在浏览器权限提示中选择允许;
  5. 点击「发送测试通知」验证浏览器设置;
  6. 按需开关各类通知及子代理任务结束通知并保存。

默认只有在 DSH 标签页处于后台,或事件来自非当前会话时才通知。点击通知会聚焦 DSH 并打开对应会话;若目标会话已经不存在,则只聚焦页面。

[!WARNING] 浏览器必须授予当前 DSH 地址通知权限。回环地址可使用 Web Notification API;非安全远程 HTTP 地址可能被浏览器拒绝。

标签页鲸鱼图标状态

当任意非子代理会话处于以下状态时,标签页标题中的鲸鱼图标会改变颜色,直观展示 DSH 全局状态:

图标颜色出现条件恢复默认色的方式
🟡 黄色有会话等待审批 / 回答结构化提问 / plan-review 待审批点开该会话,或待审批状态消失(已回答)
🔴 红色有会话任务失败(非取消)且未点开点开该会话,或该会话开始新一轮
🟢 绿色有会话任务完成且未点开点开该会话,或该会话开始新一轮
  • 多个状态并存时按 黄>红>绿 展示(例如同时存在完成、失败、待审批会话时显示黄色)。
  • 点开会话只清除"该会话"的颜色贡献;同一颜色的所有会话都点开后该颜色才消失。
  • 子代理会话的任何状态都不参与变色;手动取消(abort)不算失败。
  • 快速验收:任意让一个会话等待审批 → 图标变黄;打开该会话 → 图标恢复。

[!NOTE] 颜色状态由 Host 内存维护:刷新页面后自动恢复当前状态;重启 dsh web 后状态机清零,状态随新事件重新建立。


⚙️ 配置说明

配置存储在 DSH settings 服务的 dsh-notifications namespace:

字段默认值说明
enabledtrue总开关
approvalPendingEnabledtrue待审批通知
questionPendingEnabledtrue结构化提问通知
taskSucceededEnabledtrue任务成功通知
taskFailedEnabledtrue任务失败通知
subagentTaskEndedEnabledtrue子代理任务成功或失败通知;关闭后不影响顶层任务通知
faviconEnabledtrue标签页鲸鱼图标状态变化总开关;与消息通知总开关相互独立

浏览器权限不写入 DSH 配置,由浏览器按 DSH origin 独立保存。


🔧 工作原理

flowchart LR
    E["DSH session/event"] --> C["Host 事件分类器"]
    C --> S["同源 SSE 事件流"]
    S --> F["配置与前台过滤"]
    F --> L["多标签页负责人选举"]
    L --> N["Web Notification API"]
    N --> O["点击后 sessions.open"]
    E --> T["Host 状态机<br/>(仅非子代理会话)"]
    T --> S2["SSE state 帧<br/>(黄/红聚合)"]
    S2 --> V["客户端聚合<br/>黄>红>绿"]
    B["会话列表 completed"] --> V
    V --> I["favicon 图标着色"]
    U["点开会话(current 变化)"] --> P["POST /api/viewed"]
    P --> T

Host 订阅 DSH session/event,只将事件归一化为以下安全结构:

{
  "eventId": "session-id:sequence:event-type",
  "type": "approval_pending",
  "sessionId": "session-id",
  "occurredAt": 1786953600000
}

同源接口:

方法路径用途
GET/dsh-notifications/api/config读取配置与 revision
POST/dsh-notifications/api/config保存或恢复默认配置
GET/dsh-notifications/api/eventsSSE 通知事件流
POST/dsh-notifications/api/viewed上报已打开的会话,清除其图标颜色贡献

SSE 仅在连接短暂中断时补发事件:Host 内存最多保存 256 条、5 分钟;首次连接和 Host 重启后不回放历史事件。

图标状态机基于事件流维护每个非子代理会话的「待处理 / 失败 / 完成 / 已查看」状态:approval/asked ↔ approval/decided、提问工具 tool/call ↔ tool/result、turn/start(新一轮重置全部状态)、turn/end(error → 失败,completed → 完成,aborted → 中性)。客户端在页面加载或切换会话时调用 viewed 上报,Host 按 黄>红>绿 计算聚合 state 帧并随 SSE 广播;客户端再叠加会话列表中「已完成且未查看」的绿色,最终把鲸鱼 SVG 改色后写回 favicon。


🧪 开发与测试

pnpm install
pnpm build
pnpm test
pnpm check

事件分类器采用显式结构契约:审批或提问必须是对应的 pending/request 事件,结构化提问也支持 tool/call 中的 request_user_input 等明确工具名;普通 assistant 文本不会按问号识别。turn/end 默认为成功,明确的失败结果映射为失败,取消和中止不通知。子代理通过 DSH 官方会话元数据 origin: "subagent" 或正数 delegationDepth 识别,不通过标题或 DOM 文本推断。

图标状态机(lib/state.js)采用相同的键控幂等与单调序列守卫设计:审批与提问按 id/callId 配对消耗,重复或乱序事件是安全空操作;「已查看」标记幂等持久,直到该会话新一轮 turn/start 才重置。


⚠️ 已知限制

  • DSH 尚未公开完整事件 schema。插件会在 debug 日志中仅记录未知事件的类型和字段名,便于升级适配,不记录字段值。
  • 如果目标 DSH 版本没有为某类状态提供官方事件,该类通知不会触发;插件不会通过 DOM 文案或 CSS 选择器猜测状态。
  • 鲸鱼图标变色依赖页面 favicon(/favicon.svg):favicon 缺失或加载失败时图标保持默认色,不阻塞其他功能。
  • Firefox 和 Safari 未列入首版验收范围。
  • 不提供原生 Node 通知、浏览器关闭后的推送、自定义通知音或外部消息渠道。
  • 多标签页采用 BroadcastChannel,并在不支持时用短期 localStorage 租约兜底;极端浏览器崩溃后最多等待约 6 秒重新选举。

🤝 贡献

欢迎提交 Issue 与 Pull Request:提交 Issue 时请提供 DSH 版本、浏览器与操作系统版本、触发的事件类型以及脱敏后的 debug 日志(不要提交聊天正文、审批参数或凭据),反馈地址 Issues;改进请按 Fork → 分支 → PR 流程提交,并说明新增事件契约及兼容版本。


📄 许可证

本项目使用 MIT 许可证。