插件目录 / Developer / dsh-attention
dsh-attention
未验证 shaomingbo
功能简介
Desktop attention alerts for DeepSeek Harness Web: tab title, favicon, sound, and native OS notifications.
未验证 — 尚未实测
Desktop attention alerts for DeepSeek Harness Web: tab title, favicon, sound, and native OS notifications. 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-attention
Desktop attention alerts for DeepSeek Harness Web.
The bundle tells you when a session finishes a turn (always — even the one you are reading) and when an agent is waiting for approval, a question, or a plan review (while the page is in the background). It is a GitHub-distributed DSH bundle, not a shell modification.
What it does
| Event | When it alerts |
|---|---|
| Task finished (any session, including the one you are reading) | Always: sound + tab title flash + system banner |
| Approval / plan review / question | While this page is in the background or unfocused |
Each channel is independent and can be toggled in Settings → Alerts:
| Channel | Owner |
|---|---|
| Short chime (Web Audio, OpenCode/Codex-style) | The page, whenever it is open |
| Tab title prefix + favicon badge | The page (blocking waits hold it; finished flashes ~4 s) |
Native OS banner (osascript / notify-send / Windows toast) |
The host |
Single-producer rule: while a browser tab is alive (heartbeat fresher than ~8 s), the page owns the banner and the chime; the host backs off. If every tab is closed or frozen, the host fires the banner itself (with the bundled chime) — no duplicates, no gaps. Completions and waterfall approvals collapse onto a host-minted per-session ordinal. Questions and plan reviews occupy a live slot: the first tab to report open mints the identity, later tabs collapse, and close (when the wait leaves the session list) releases the slot so the next real question can ring. Concurrent reports of one identity single-flight: the host grants sound and fallback to exactly one caller. A client-side native failure is soft-recorded so echoes collapse; a backup failure leaves the event unclaimed so the first recovering tab can fall back. Completion edges observed while preferences are still loading are stashed and flushed once loaded.
When the native notifier binary is missing (notify-send absent, and so on), the host reports it, the Alerts page shows native notifications as unavailable, and the browser Notification fallback takes over automatically.
Install
dsh plugin --profile web add github:shaomingbo/dsh-attention#v0.1.0
Or run the package installer:
npx --yes github:shaomingbo/dsh-attention#v0.1.0
Restart dsh web, then hard-refresh the browser. To update:
dsh plugin --profile web update dsh-attention
To remove it:
dsh plugin --profile web remove dsh-attention
For a local checkout:
npx --yes /path/to/dsh-attention --source link:/path/to/dsh-attention
Settings
Open Settings → Alerts to toggle:
- Master enable
- Tab title / favicon
- Sound
- Native desktop notification
- Browser notification fallback
- Event classes: approvals, questions/plan reviews, finished tasks
Preferences live in $DSH_HOME/attention.json (default ~/.dsh/attention.json) so they survive a browser refresh.
Behaviour notes
- Finished turns alert unconditionally — watching the page included. Approvals and questions stay quiet while you are looking at the page.
- Native notifications are loopback-only. A remote Web GUI cannot trigger them.
- The host listens to
approval/requestbut always callsnext(). It never answers an approval. - The first visit may show a toast asking for browser notification permission. That permission is only used as a fallback when native notifications are unavailable.
Development
npm test
npm run check
lib/ is the release authority. The browser half is a hand-written window.__ModuleLoader__ bundle, matching other optional DSH Web plugins.
License
MIT.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-attention」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:shaomingbo/dsh-attention Headless(CLI)profile:
dsh plugin --profile headless add github:shaomingbo/dsh-attention 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。
2026-08-27 · 标记 webonly 备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →