Host-side macOS notifications for questions, approvals and finished replies — immune to hidden-renderer notification loss, with icon, sound and click-to-raise.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:huhui-tech/dsh-host-notify
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
简体中文 | English
Never miss your agent again when you leave the DSH page. When the model stops and needs you (ask_user_question / permission approval / plan review), or a reply finishes in the background, this plugin pings you with a macOS system notification + sound — whale icon, persistent banner, and clicking it raises DeepSeek Harness back to the front.
What makes it different from browser-half notification plugins: it runs entirely in the host process — no renderer, no Service Worker. On Electron desktops, browser notifications posted from hidden/throttled windows get silently dropped (measured: 2 of 9 delivered). Host-side delivery doesn't care about page state at all. That is the entire reason this plugin exists.
When it fires
| Event | Title | Sound |
|---|---|---|
Question (ask_user_question) |
🔔 Action needed · Question | Glass |
| Approval / plan review | 🔔 Action needed · Approval | Glass |
Reply finished (agent/status → idle) |
✅ Reply finished | Ping |
Subagent events are muted (they are steps of the parent turn). Per-interaction 60s dedup; per-agent 5s dedup for completions.
Install
# npm (recommended)
dsh plugin --profile web add dsh-host-notify
# or from GitHub
dsh plugin --profile web add github:huhui-tech/dsh-host-notify
Desktop (Electron) app: type dsh-host-notify into the in-app plugin manager, then restart the app.
macOS only ("os": ["darwin"]) — on other platforms the plugin loads as a silent no-op.
First-run setup (one minute, once)
Notifications are posted by a tiny signed helper app, DSH Notifier, vendored inside the package:
- When the first notification arrives, macOS may ask "DSH Notifier" would like to send you notifications → click Allow;
- Open System Settings → Notifications → DSH Notifier and set the style to Persistent (持续/Alerts) so banners stay on screen until dismissed;
- Mute there if you prefer silence.
If DSH Notifier ever fails (rare), the plugin automatically falls back to osascript delivery (credited to "Script Editor" — equally reliable, just no icon or click-to-raise).
How it works
ask_user_question / approval / reply finished (host waterfall/status events)
→ dsh-host-notify listener (global, pass-through, key-deduped)
→ vendor/DSH Notifier.app (vendored terminal-notifier binary, adhoc-signed)
→ macOS Notification Center (icon + sound + persistent + click-to-raise)
Design notes:
- Waterfall listeners always pass through:
user-questions/requestandapproval/requestare waterfall events — listeners only produce side effects and mustnext()the payload untouched. This plugin can never block a question or approval chain; every failure is swallowed silently. Notifications are a bonus, never a dependency. - Injection safety: all delivery args go to
spawnas an array — zero shell interpolation; title/body clipped to 80 chars. - Session labels: bodies prefer the official
sessionTitleservice's title (you recognize the conversation), falling back to the model name. - Dedup: 60s per interaction, 5s per agent completion — no HMR/reload double-firing.
Related work
- chromoany/dsh-notify-me (MIT): product inspiration. Browser-half implementation, richer features (settings UI, actionable buttons); may silently lose notifications from hidden renderer windows on Electron desktops — this plugin is the minimal host-side answer to exactly that layer.
- bitterSmilezzz/dsh-notify (MIT): also host-side system notifications, with different event coverage and presentation.
Credits
- The vendored
vendor/DSH Notifier.appembeds the julienXX/terminal-notifier binary (MIT) — see NOTICE.
License
MIT (the plugin itself) · vendored component licenses in NOTICE.
Links
More in this category
xmanrui/dsh-im★ 3875
Connect IM bots to DeepSeek Harness via QR codes or bot credentials (9 channels: Feishu, WeChat, DingTalk, WeCom, QQ, Slack, Telegram, Discord, and WhatsApp).
shaobeichen/dsh-pocket★ 3217
Remote phone access to the DSH Web UI: scan a QR code for LAN or public (cloudflared tunnel) access with real-time sync, a mobile-adaptive layout, and a settings tab.
c1overzz/dsh-bili-scroll★ 1483
Let your DSH agent browse Bilibili on its own, read subtitles, write a daily digest, and @ you when it finds something worth your attention.
OpenPetsHQ/openpets#dsh★ 1419
Bridges DeepSeek Harness lifecycle status, errors, and approval requests to a locally running OpenPets desktop companion.
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 611
Connects DeepSeek Harness to Avernet's Bot Collaboration Network over WebSocket V2, with automatic onboarding, isolated agent sessions, tool-call events, and multi-bot routing tools.
zaofan-make/dsh-qqbot★ 288
QQ official bot channel (enhanced fork of tencent-connect/dsh-qqbot): full agent chat in groups and DMs, rich media, an auto-tagged sticker library with AI image replies, join approval, mute and broadcast, scheduled wakeups, remote approvals over QQ, interactive cards, multi-account instances, extensions, member profiles, and token-saving value-scored wakeups.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.