DeepSeek Harness Plugin

huhui-tech/dsh-host-notify

Stars ★ 1 Category Notifications & Integrations Added 2026-10-16

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:

  1. When the first notification arrives, macOS may ask "DSH Notifier" would like to send you notifications → click Allow;
  2. Open System Settings → Notifications → DSH Notifier and set the style to Persistent (持续/Alerts) so banners stay on screen until dismissed;
  3. 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/request and approval/request are waterfall events — listeners only produce side effects and must next() 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 spawn as an array — zero shell interpolation; title/body clipped to 80 chars.
  • Session labels: bodies prefer the official sessionTitle service'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

License

MIT (the plugin itself) · vendored component licenses in NOTICE.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.