YuChuanhui3/dsh-plugin-attention-chime ↗★ 0
dsh-plugin-attention-chime
Plays a macOS system sound and posts a macOS notification whenever a DeepSeek Harness agent needs the user's reply, answer, or approval. Clicking the notification jumps to the session's browser tab.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuChuanhui3/dsh-plugin-attention-chime说明文档
阅读完整 README ↗配置
安装即带默认值(见 cordis.patch.yml)。覆盖方式二选一:
- 设置页卡片(推荐):设置 → 插件 → 可配置 → 「注意力提醒」。即改即生效,写入
~/.dsh/settings.yaml,重启保留。 - profile 补丁:在 profile 的
cordis.patch.yml里按 id 寻址(注意:补丁会整行替换config,不做合并):
- id: attention-chime
config:
alerts:
reply: { enabled: true, sound: 'Hero', volume: 1.5 }
question: { enabled: true, sound: 'Funk', volume: 1 }
approval: { enabled: true, sound: 'Sosumi', volume: 1 }
# ...其余字段需完整给出,见下表
配置项一览
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关 |
idleGraceMs | 1200 | 回合结束后等待这么久仍 idle 才提醒(过滤连续回合) |
minGapMs | 1500 | 两次提醒的最小间隔(防连环轰炸) |
notificationTitle | DeepSeek Harness | 系统通知标题 |
backgroundGuard | true | 有后台 job / 运行中子代理时不发「等待回复」提醒 |
jump.enabled | true | 点击通知跳转会话标签页(需 terminal-notifier) |
jump.browser | Google Chrome | 浏览器应用名(Safari / Microsoft Edge / Arc / Brave Browser…) |
escalate.enabled | true | 升级提醒开关 |
escalate.intervalMs | 300000 | 重复提醒间隔(5 分钟) |
escalate.max | 3 | 最多重复次数 |
escalate.volumeStep | 0.5 | 每次重复的音量增量 |
escalate.maxVolume | 3 | 音量上限 |
escalate.sound | '' | 升级专用提示音(空 = 沿用原提示音) |
foreground.enabled | false | 提醒时把应用切到前台 |
foreground.app | Google Chrome | 要前置的应用 |
alerts.reply/question/approval | 见上 | 每类 {enabled, sound, volume} |
提示音为 /System/Library/Sounds/ 下的系统声音:Basso, Blow, Bottle, Frog, Funk, Glass, Hero, Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink。音量为 afplay -v 值(1 = 正常,0.5 = 一半,0 = 静音)。
配置项一览
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关 |
idleGraceMs | 1200 | 回合结束后等待这么久仍 idle 才提醒(过滤连续回合) |
minGapMs | 1500 | 两次提醒的最小间隔(防连环轰炸) |
notificationTitle | DeepSeek Harness | 系统通知标题 |
backgroundGuard | true | 有后台 job / 运行中子代理时不发「等待回复」提醒 |
jump.enabled | true | 点击通知跳转会话标签页(需 terminal-notifier) |
jump.browser | Google Chrome | 浏览器应用名(Safari / Microsoft Edge / Arc / Brave Browser…) |
escalate.enabled | true | 升级提醒开关 |
escalate.intervalMs | 300000 | 重复提醒间隔(5 分钟) |
escalate.max | 3 | 最多重复次数 |
escalate.volumeStep | 0.5 | 每次重复的音量增量 |
escalate.maxVolume | 3 | 音量上限 |
escalate.sound | '' | 升级专用提示音(空 = 沿用原提示音) |
foreground.enabled | false | 提醒时把应用切到前台 |
foreground.app | Google Chrome | 要前置的应用 |
alerts.reply/question/approval | 见上 | 每类 {enabled, sound, volume} |
提示音为 /System/Library/Sounds/ 下的系统声音:Basso, Blow, Bottle, Frog, Funk, Glass, Hero, Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink。音量为 afplay -v 值(1 = 正常,0.5 = 一半,0 = 静音)。