YuChuanhui3/dsh-plugin-attention-chime0

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.

包名
dsh-plugin-attention-chime
版本
0.2.2
许可证
MIT
最近更新
2026年9月8日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuChuanhui3/dsh-plugin-attention-chime

配置

安装即带默认值(见 cordis.patch.yml)。覆盖方式二选一:

  1. 设置页卡片(推荐):设置 → 插件 → 可配置 → 「注意力提醒」。即改即生效,写入 ~/.dsh/settings.yaml,重启保留。
  2. 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 }
    # ...其余字段需完整给出,见下表

配置项一览

字段默认说明
enabledtrue总开关
idleGraceMs1200回合结束后等待这么久仍 idle 才提醒(过滤连续回合)
minGapMs1500两次提醒的最小间隔(防连环轰炸)
notificationTitleDeepSeek Harness系统通知标题
backgroundGuardtrue有后台 job / 运行中子代理时不发「等待回复」提醒
jump.enabledtrue点击通知跳转会话标签页(需 terminal-notifier)
jump.browserGoogle Chrome浏览器应用名(Safari / Microsoft Edge / Arc / Brave Browser…)
escalate.enabledtrue升级提醒开关
escalate.intervalMs300000重复提醒间隔(5 分钟)
escalate.max3最多重复次数
escalate.volumeStep0.5每次重复的音量增量
escalate.maxVolume3音量上限
escalate.sound''升级专用提示音(空 = 沿用原提示音)
foreground.enabledfalse提醒时把应用切到前台
foreground.appGoogle 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 = 静音)。

配置项一览

字段默认说明
enabledtrue总开关
idleGraceMs1200回合结束后等待这么久仍 idle 才提醒(过滤连续回合)
minGapMs1500两次提醒的最小间隔(防连环轰炸)
notificationTitleDeepSeek Harness系统通知标题
backgroundGuardtrue有后台 job / 运行中子代理时不发「等待回复」提醒
jump.enabledtrue点击通知跳转会话标签页(需 terminal-notifier)
jump.browserGoogle Chrome浏览器应用名(Safari / Microsoft Edge / Arc / Brave Browser…)
escalate.enabledtrue升级提醒开关
escalate.intervalMs300000重复提醒间隔(5 分钟)
escalate.max3最多重复次数
escalate.volumeStep0.5每次重复的音量增量
escalate.maxVolume3音量上限
escalate.sound''升级专用提示音(空 = 沿用原提示音)
foreground.enabledfalse提醒时把应用切到前台
foreground.appGoogle 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 = 静音)。