AnLifeX/dsh-attention 预览 preview

AnLifeX/dsh-attention

Plugin插件 Native原生 ⭐ 2 MIT Notifications & Remote通知与远程

DeepSeek Harness 插件:会话需要 审批 / 提问 / 选择,或一轮对话结束时,在屏幕右下角弹出可操作的提醒;浏览器标签休眠后再回来时自动刷新,避免审批卡片卡住。自制卡片和系统通知仅 Windows 10+。

catalog descriptioncatalog 简介 / catalog description:dsh 提醒插件:别错过需要你的时刻

Project Overview项目介绍

dsh-attention is a DeepSeek Harness plugin that surfaces action-rich reminder cards at the screen's lower-right corner when a session needs approval, a question, a choice, or a follow-up turn. Notifications originate from the dsh host, not the browser, so they still appear when a tab is suspended or JavaScript is paused; re-activating refreshes the page to recover stuck approval cards. Settings cover per-category toggles, card opacity, sound, open-session mode, and auto-reload timing. Custom cards and system toasts work only on Windows 10+; on other OSes, the settings page and sleep wake-up refresh remain usable.

dsh-attention 是 DeepSeek Harness 插件,在模型申请提权、提问、选择或一轮对话结束时,在屏幕右下角弹出可操作的提醒卡片;通知由宿主发出,浏览器标签休眠或 JavaScript 暂停时仍可弹出,回到标签后自动刷新以恢复卡住的审批。支持多显示器跟随、子代理独立开关与不透明度、提示音等设置。仅在 Windows 10+ 弹出卡片,其他系统仅设置页和休眠刷新可用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-attention

把 AnLifeX/dsh-attention 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-attention

dsh-attention

npm version Windows

DeepSeek Harness 插件:会话需要 审批 / 提问 / 选择,或一轮对话结束时,在屏幕右下角弹出可操作的提醒;浏览器标签休眠后再回来时自动刷新,避免审批卡片卡住。自制卡片和系统通知仅 Windows 10+。

当前 0.3.x 适配 DSH 0.1.2-alpha.3 及其新版 Remote/Waterfall API,不兼容使用旧 apiProxy 接口的 DSH 版本。

功能

  • 网页休眠也能提醒。 通知由 dsh 宿主发出,不走浏览器 Notification。标签被冻住时 JavaScript 停了,审批、提问、会话结束照样能弹窗。
  • 卡片上直接处理。 允许 / 拒绝、单选 / 多选、自定义输入(标题为「其他」)、写下一步,点完即提交,会话继续。不抢网页上的审批卡片。多题卡片会逐题勾选,点「提交」才一起发送。
  • 官方卡自动关闭,隔多久都有效。 原生卡先答完时,插件会把同一结果交给 DSH 官方审批 / 提问卡,让网页里的卡片自动关闭,不需要刷新页面。记录永久保留(条数由 settledMax 控制),标签休眠多久、回来时卡片是否被重放,都不影响。
  • 跟着 dsh 主题。 自制卡片亮色 / 暗色与当前页面一致,毛玻璃圆角;底部倒计时条从绿变到红。
  • 两种卡片样式,二选一。 默认自制卡片可在窗口里操作;系统通知卡片只负责点回会话。
  • 回到已有会话。 「回到会话」优先前置已经打开的 dsh 窗口或 Edge 应用,并切到对应会话;也可每次新开。
  • 透明度可调 + 动效预览。 自制卡片的毛玻璃不透明度可在设置里用滑块调整;开启右下角预览可重放向上弹入动画,并体验按钮悬停和按下反馈。
  • 多显示器跟随焦点。 弹窗默认出现在当前聚焦显示器的右下角;找不到焦点屏幕时自动回退到主显示器。
  • 按钮布局统一。 审批卡片为「允许 / 拒绝」左右布局;会话结束 / 多选提交按钮在左侧,「回到会话」统一固定在右上角关闭按钮左侧。
  • 当前窗口不打扰。 dsh 标签正在聚焦时不弹;切到别的窗口、标签,或页面隐藏时才提醒。
  • 子代理结束提醒独立控制。 「子代理会话结束」开关默认关闭。开启后弹窗会明确标注身份,并且不提供回复输入框。
  • 设置页分组可调。 打开 设置 → 提醒(铃铛),顶部滑动开关控制总开关,下面按「提醒范围 / 卡片外观 / 休眠唤醒」分折叠卡片管理;提示音和回到会话方式也在默认展开的「提醒范围」中。改完点 保存,写入 %USERPROFILE%\.dsh\dsh-attention-ui.json,重启仍在。

安装

dsh plugin --profile web add dsh-attention

装完后重启 dsh web。

更新

dsh plugin --profile web add dsh-attention@latest

更新完成后重启 dsh web。

用法

  1. 模型申请提权:右下角出现允许 / 拒绝;点「回到会话」切回该会话。在右下角答完后,DSH 网页里的审批卡会自动关闭。
  2. 提问 / 选择:主会话单选点选项即提交;多选或多题先勾选再点提交;也可在「其他」里自己写答案。DSH 不允许受控子代理直接向用户提问。
  3. 主会话一轮对话结束:在窗口里写下一步并发送。子代理结束提醒默认关闭;开启后只提示并提供「回到会话」,不显示回复输入框。
  4. 标签休眠后再回来:隐藏超过约 8 秒会自动刷新一次(等同 F5),把还挂着的审批卡片重放出来。正在输入时不会刷新;将隐藏刷新时间设为 0(关闭)或 -1(无限)都可关闭自动刷新。
  5. 在 设置 → 提醒 里用顶部开关控制通知总开关,再在「提醒范围 / 卡片外观 / 休眠唤醒」分组里调整提示音、回到会话方式、样式、不透明度、停留时间、休眠刷新和已答记录条数。

配置

cordis.patch.yml 或 profile 里覆盖 dsh-attention 的 config:

字段 默认 含义
enabled true 总开关
notifyApproval true 提权审批
notifyQuestion true 提问 / 选择
notifyIdle true 一轮对话结束后的下一步输入
notifySubagentIdle false 子代理会话结束通知;弹窗不提供回复输入框
notifyStyle custom custom 自制卡片;system 系统通知
notifyTimeoutSec 30 停留秒数;-1 无限(一直留到关掉),0 关闭自动消失。系统通知实际只有约 7 秒 / 25 秒两档
cardOpacity 0.78 自制毛玻璃卡片不透明度,0.1–1,越小越透
openSessionMode reuse reuse 复用已有窗口;new 每次新开
hiddenReloadMs 8000 标签隐藏多久后唤醒要刷新(毫秒;设置页按秒填写);0 关闭自动刷新,-1 无限
settledMax 50 记住多少条「已用弹窗答过」的记录,用于回到窗口时自动关掉网页卡片;0 不记录,-1 不限
sound 系统默认提示音 设为 false 静音
choiceShellPath 自动 自制卡片使用的 PowerShell。默认优先 pwsh 7(启动更快),找不到时用 Windows PowerShell 5.1;可显式指定路径

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-stylevault 下一个 Next dsh-security →