rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HonestShine/dsh-desktop-notify
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Native desktop notifications for DeepSeek Harness: permission requests can be answered directly from the system notification (Reject / Allow once), and turn completion, questions and errors can raise reminders; notification sounds support system sounds, a built-in chime, custom audio and silence.
dshnotify: protocol callback), macOS (terminal-notifier), Linux (notify-send).approval/request waterfall.settings.section.icon; 0.2.0/0.2.1 use a DOM patch that silently falls back to the default gear if the structure changes).system / bundled / custom / none, previewable in settings.bundled / custom / none and preview.ctx.desktopNotify; other plugins can call show() to display a notification with buttons.DeepSeek Harness.lnk, so the toast header shows "DeepSeek Harness" and the application icon; falls back to a manually configured AUMID only when detection fails.dshnotify: protocol and open the system notification settings after confirmation.| Capability | Windows | macOS | Linux |
|---|---|---|---|
| Notification display | WinRT toast (PowerShell) | terminal-notifier | notify-send |
| Inline buttons | Yes (dshnotify: protocol + VBS) |
Yes | needs libnotify 0.7.10+ and a daemon with actions |
| Click callback | VBS writes a rendezvous JSON | stdout | notify-send -A |
| System sound | toast <audio ms-winsoundevent:...> |
system sound names (Bottle, etc.) | canberra-gtk-play, best effort |
| Custom audio | WAV only (SoundPlayer) |
formats supported by afplay |
paplay / canberra-gtk-play / aplay |
| Notification identity | DeepSeek Harness (reuses the installer shortcut) + app icon |
terminal-notifier (platform limitation) | app-name + icon |
| Interaction cue | Yes (SoundPlayer plays a built-in/custom WAV) |
afplay |
paplay / canberra-gtk-play / aplay |
On macOS notifications appear as terminal-notifier, not DeepSeek Harness. This is a known limitation of node-notifier/terminal-notifier 3 (sender/icon cannot be set). Buttons, sounds and click callbacks still work. For full branding you can build your own terminal-notifier (
make icon ICON=... APP_NAME=...) and set it under Settings → Advanced → macOS custom notifier path.
DSH currently ships as release candidates (0.2.0-rc.x, 0.2.1-rc.x, 0.2.2-rc.x); this plugin was audited and adapted against 0.2.0-rc.2 / 0.2.1-rc.5 / 0.2.2-rc.4, covering the intermediate RCs of 0.2.0/0.2.1/0.2.2 (including 0.2.2-rc.1, rc.2 and rc.3).
| DSH | Settings nav icon | Config form | Notifications/approvals |
|---|---|---|---|
| 0.2.2-rc.4 / 0.2.2-rc.3 / 0.2.2-rc.2 / 0.2.2-rc.1 | native settings.section.icon |
configForms + volatile fields |
unchanged |
| 0.2.1-rc.5 / 0.2.1-rc.4 | DOM patch | configForms + volatile fields |
unchanged |
| 0.2.0-rc.2 | DOM patch | configForms + volatile fields |
unchanged |
Adaptation notes:
@deepseek-ai/cordis ^4.0.0 and @deepseek-ai/schemastery ^3.18.0, covering cordis ~4.0.4 / schemastery ~3.18.4 in 0.2.0 and cordis ~4.1.0 / schemastery ~3.19.0 in 0.2.2. 0.2.2-rc.3/rc.4 ship cordis 4.1.0 / schemastery 3.19.0, which both ranges cover.approval/request and its result vocabulary, user-questions/request, agent/status|error|disposed, sessionTitle.get, connection.requestRejection, typertGateway.hasLiveClient, configForms.get/mutate/whileServed, settings.section and volatile form filtering were checked against all three version lines (0.2.2-rc.1 through rc.4).settings.section context's openSettings accepts an optional sectionId, ui-approval slots gained an optional warning field, and user-questions now permits historical ordinary forks to ask; no approval/question event or result vocabulary changed.displayReason is a localized { en, zh, ... } object in 0.2.x (not a string); the plugin picks the value for the current UI language.settings.section.icon slot; 0.2.0/0.2.1 do not have it, so the plugin falls back to its DOM patch and all three versions show the bell.configForms is injected optionally: when a composition does not provide it, notifications, approvals and presence keep working; only the settings page is absent.Two options; pick one. Afterwards restart dsh web (or fully quit and reopen the desktop app), then press F5 in the browser; the configuration page appears under Settings → Notifications.
Use this when someone handed you a zip, or you already have an extracted plugin directory (it should contain package.json, cordis.patch.yml, lib/, assets/, README.md).
# 1) Extract to a stable directory you will not move or delete afterwards
# (never a temp/download directory). Example: D:\Plugins\dsh-desktop-notify
# Install the layer that contains package.json; do not nest another
# same-named directory.
# 2) Make sure the key files are present (missing assets/ means no icon/sound)
Test-Path "D:\Plugins\dsh-desktop-notify\package.json",
"D:\Plugins\dsh-desktop-notify\cordis.patch.yml",
"D:\Plugins\dsh-desktop-notify\lib\winrt.js",
"D:\Plugins\dsh-desktop-notify\assets\notify.wav"
# 3) Remove a previous installation of the same plugin to avoid version conflicts
dsh plugin --profile web remove dsh-desktop-notify
# 4) Install using the absolute path (quote paths that contain spaces)
dsh plugin --profile web add link:D:\Plugins\dsh-desktop-notify
Notes:
link: is a symlink install: edits in the source directory take effect immediately, but the directory must not be moved or renamed afterwards; if it is, run add again.node_modules, run pnpm install in it before a link: install (macOS/Linux need node-notifier for terminal-notifier / notify-send; Windows uses WinRT and usually works without it).dsh plugin --profile web add file:D:\Plugins\dsh-desktop-notify (pnpm installs dependencies too; later changes in the source directory are not picked up and require another add).dsh-desktop-notify-<version>.tgz from the Releases page can also be installed directly: dsh plugin --profile web add file:D:\Downloads\dsh-desktop-notify-<version>.tgz.No local clone required, one command:
dsh plugin --profile web add github:HonestShine/dsh-desktop-notify
dsh plugin --profile web add github:HonestShine/dsh-desktop-notify#v0.1.1github:HonestShine/dsh-desktop-notify#<commit sha>; dsh plugin automatically adds packages that declare dsh.bundle to the profile's dsh.profile.bundles, so cordis.patch.yml does not need manual edits.prepare only installs dependencies (node-notifier), so the allowBuilds prompt normally does not appear.^22.22.2 || ^24.15.0 || >=26.0.0 (the node-notifier@12 engine requirement, declared under engines in package.json).The package is published as @honorshine/dsh-desktop-notify; a prebuilt install skips the build-approval step:
dsh plugin --profile web add @honorshine/dsh-desktop-notify
dsh plugin --profile web add @honorshine/dsh-desktop-notify@0.1.1repository field points back at this repository, so storefronts can link the two automatically.web profile (the one dsh web boots). The desktop (Electron) desktop profile is managed by the application itself; the CLI rejects --profile desktop, so use the app's built-in plugin_manager to install the same directory or tarball.dshnotify: protocol (registry HKCU\Software\Classes\dshnotify, with a per-instance nonce); on disable or uninstall it unregisters the protocol and cleans the %LOCALAPPDATA%\dsh-desktop-notify polling directory. A plugin reload skips the unregistration of the old instance (nonce mismatch), so a fresh registration is never deleted.dsh plugin --profile web remove dsh-desktop-notify (the protocol is unregistered on disable/uninstall; no manual registry cleanup).dsh web and press F5 again.While the window is focused no notification appears and the native panel is used; the interaction cue still plays (see Sound below).
ask_user_question; the notification does not take over the Q&A, and clicking the body focuses the app.running → idle transition.agent/error; identical errors are deduplicated within 2 seconds.The plugin has two kinds of sound, configured separately.
Notification sound (turn completion / error reminders / notifications with callback buttons) is selected under Settings → Notifications → Notification sound:
Notification.Default (a system sound name can be set in the Notification sound group); macOS uses Bottle; Linux tries canberra-gtk-play.assets/notify.wav, an original two-tone chime played through the platform player..wav; macOS/Linux depend on the system player.Interaction cue (approvals, questions/plan prompts and other interactions that need your reply) is configured separately in the Interaction cue group:
assets/alert.wav (three rising short notes), clearly different from the notification chime;custom accepts a custom .wav; none silences it;The Preview button plays the current mode once.
The configuration lives in the profile's cordis.patch.yml (written by the settings page), with entry id desktop-notify:
| Field | Default | Description |
|---|---|---|
enabled |
true |
Plugin master switch |
approval.enabled |
true |
Take over permission approval notifications |
approval.onlyWhenHidden |
true |
Take over only while the window is not focused |
approval.timeoutSeconds |
30 |
Notification wait limit (5–300) |
events.question |
true |
Question reminder |
events.turnEnd |
true |
Turn-completion reminder |
events.errors |
true |
Error reminder |
events.onlyWhenHidden |
true |
Reminders only in the background |
sound.mode |
bundled |
system / bundled / custom / none |
sound.file |
"" |
Absolute path to custom audio |
sound.systemName |
"" |
Windows/macOS system sound name override |
attention.enabled |
true |
Play the interaction cue on approvals/questions (also while focused) |
attention.mode |
bundled |
Interaction cue source: bundled / custom / none |
attention.file |
"" |
Absolute path to a custom interaction cue |
windows.appId |
"" |
Optional manual Windows AppUserModelID; empty auto-reads the registered DeepSeek Harness.lnk |
windows.duration |
long |
Windows toast display time (short / long); Windows may ignore it for toasts with buttons |
macos.customNotifierPath |
"" |
Optional custom terminal-notifier |
presence.staleSeconds |
120 |
Presence report expiry |
presence.idleSeconds |
180 |
Treat a focused window without input as away after this many seconds; 0 disables |
DeepSeek Harness.lnk in the Start Menu (created by the installer); if it shows the raw AUMID or the wrong icon, verify that shortcut exists, or set an AppUserModelID override under Settings → Notifications → Advanced → Windows notification identity.dshnotify: on load (and unregisters it on disable/uninstall); if buttons stop working, use "Repair notification button protocol" in the plugin settings to re-register. The registration lives under HKCU\Software\Classes\dshnotify and points at the plugin's assets/activate.vbs.wscript.exe, which writes a JSON file into %LOCALAPPDATA%\dsh-desktop-notify\actions; the Host polls that directory. If no new file appears, check whether Windows blocks wscript.exe or security software blocks the custom protocol.<audio ms-winsoundevent:...>; built-in/custom sounds are played by SoundPlayer. If neither plays, check the system notification sound settings.Windows button callbacks depend on the Host process being alive; after the app quits, buttons in historical notifications are no longer processed. The protocol registration is written to the current-user registry and needs no administrator rights.
notify-send (libnotify-bin) and a notification daemon with action support; buttons need notify-send --version ≥ 0.7.10.paplay, canberra-gtk-play or aplay.index.js): registers the Cordis Service desktopNotify; listens for approval/request (prepend + global), user-questions/request, agent/status and agent/error; Windows uses lib/winrt.js (WinRT toast + protocol callback + assets/resolve-aumid.ps1 for the notification identity), macOS/Linux use lib/notifier.js (node-notifier); lib/sound.js plays the notification sound and the interaction cue (two independent SoundPlayer instances); lib/presence.js tracks multi-window focus. The interaction cue plays when approval/request and user-questions/request arrive, without checking focus.client.js): always reports window focus, idle time and locale; registers the settings page under settings.section, reads and writes Host configuration through ctx.configForms.get('desktop-notify'), and uses same-origin /desktop-notify/* routes for testing, preview, status and Windows protocol repair. 0.2.2+ registers the native settings.section.icon; 0.2.0/0.2.1 use a DOM patch (data-shortcut-modal="settings" + a label <span>) and keep the shell's default gear if it fails./desktop-notify/status|presence|test|preview-sound|preview-attention|open-notification-settings|repair-windows, all gated by ctx.connection.requestRejection(req), JSON body limited to 16 KiB.assets/winrt-toast.ps1 shows the toast; clicking <action activationType="protocol" arguments="dshnotify:?token=...&decision=..."> makes assets/activate.vbs write a rendezvous file; the Host polls every 300 ms and resolves the approval by token.unavailable.app.asar, Electron main/preload are untouched and no IPC is added.pnpm install
node --check index.js
node --check client.js
node test/unit.test.js # run node:test directly (do not use --test spawn under a sandbox)
node scripts/winrt-probe.mjs 300 # Windows: real WinRT toast + protocol button callback
node scripts/notify-probe.mjs 300 # macOS/Linux: node-notifier probe
node scripts/make-chime.mjs # regenerate assets/notify.wav and assets/alert.wav
Both probes wait for you to click a button; under the restricted DSH sandbox child processes / named pipes may be blocked, so run them in a normal terminal or an elevated sandbox. The Host process is not affected by that sandbox at runtime. Disable the plugin before running
winrt-probe.mjsso its watcher does not consume the callback file first.
The bell icon, idle-away detection and session-title body are interactions inspired by the open-source project dsh-notify-me (MIT). This project borrows interaction and implementation ideas only; the code is an independent implementation, and the two have different positioning:
settings.section.icon; 0.2.0/0.2.1 can only use a DOM patch and fall back to the default gear if the host structure changes.HKCU\Software\Classes\dshnotify. If security software blocks wscript.exe, button callbacks are unavailable.Notification..,, ; and a leading - are removed; max 24 characters); action ids keep only letters, digits, _ and -; at most 3 buttons.v0.1.0); the package is also published to npm as @honorshine/dsh-desktop-notify.README.md).Plugin code is MIT. Runtime dependencies:
assets/notify.wav and assets/alert.wav are synthesized by scripts/make-chime.mjs; no third-party audio copyright applies.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。