dsh-macos-notify
DeepSeek Harness plugin: native macOS Notification Center banners (osascript) when an agent turn ends or a permission request arrives, with a per-operation sound picker on the web settings page
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WShihan/dsh-macos-notify说明文档
阅读完整 README ↗在 deepseek-harness 检出目录内使用
用一个 patch 覆盖层指向构建后的入口:
- name: 'file:///absolute/path/to/deepseek-harness/macos-notify/lib/index.js'
请把构建后的插件挂载到运行构建产物的 harness 上。以源码方式启动(tsx)的 harness 会从源码解析 @deepseek-ai/*,此时构建后的插件会加载第二个 Cordis 实例;请先构建 harness(pnpm run build)。
组合配置(cordis.yml)
每个字段都可省略;设置文档的优先级高于它。
| 字段 | 默认值 | 含义 |
|---|---|---|
notifyOnTurnEnd | true | 每个关闭的 agent 轮次弹出一条通知。 |
notifyOnApproval | true | 审批请求到达应答链时弹出通知。 |
topLevelOnly | true | 跳过委托子 agent(delegationDepth > 0)所属的会话;用户分叉出的会话仍视为顶层。 |
sounds.completed … sounds.approval | 见上表 | 每种操作的提示音。未知名称会在加载时明确失败,作为设置写入也会被拒绝。 |
messages..title | 见上表 | 横幅标题。sounds 下的每一种操作在这里都有对应项。 |
messages..message | 见上表 | 横幅内容;横幅触发时会代入上表的可用变量。 |
- id: macos-notify
name: dsh-macos-notify
config:
sounds:
completed: Hero
approval: Submarine
messages:
completed:
title: 任务完成
message: 第 {turn} 轮已结束
error:
title: 任务失败
message: '第 {turn} 轮失败:{error}'
approval:
title: 需要授权:{tool}
message: 原因:{reason}