dsh-tray-notify
开发工具 活跃维护

dsh-tray-notify

lzxcs/dsh-tray-notify

当agent出现停顿、提问、计划审批、授权等状态时,自动调用notify-sender.py弹出托盘通知,纯Node侧实现,蓝色主题可与Claude Code的托盘通知直观区分,无需额外依赖即可快速集成。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
4 KB
仓库大小
29 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lzxcs/dsh-tray-notify
git clone https://github.com/lzxcs/dsh-tray-notify.git
git clone git@github.com:lzxcs/dsh-tray-notify.git
README.md main

dsh-tray-notify

DSH → 托盘通知:agent 停顿 / 提问 / 计划审批 / 授权时调用 notify-sender.py 弹窗(--source dsh,托盘按蓝色主题区分于 Claude Code)。纯 node 侧插件。

安装(Install)

需要 DSH(DeepSeek Harness)与 web profile(dsh web):

# 1. 安装插件(pnpm git 依赖)
dsh plugin --profile web add github:lzxcs/dsh-tray-notify
# 2. 在 ~/.dsh/profiles/web/cordis.patch.yml 末尾追加注入块:
- insert:
    - id: dsh-tray-notify
      name: 'dsh-tray-notify'
# 3. 重启 DSH Web(托盘菜单 → DSH Web 重启),浏览器 Ctrl+F5 刷新页面

卸载:dsh plugin --profile web remove dsh-tray-notify,并删掉 cordis.patch.yml 中的注入块。

配置

默认值已可移植(不依赖作者机器):

键 默认值 覆盖方式
pythonw pythonw(从 PATH 解析) 环境变量 DSH_TRAY_NOTIFY_PYTHONW,或 cordis.patch.yml 传入 config
sender ~/.claude/notify-sender.py(用 homedir() 拼接) 环境变量 DSH_TRAY_NOTIFY_SENDER,或 cordis.patch.yml 传入 config
title DSH cordis.patch.yml 传入 config

pythonw 需在 PATH 上(Windows Python 安装默认满足);若你的 Python 不在 PATH,
用环境变量或 config 指定绝对路径即可。通知即发即弃,失败只记 warn,不影响 agent loop。