dsh-pushover-notify: Pushing DSH's Three Human-Intervention Alerts to Your Phone

Introduction

DeepSeek Harness (DSH) can run agent work round after round in the background for a long time. Humans usually only need to return to the terminal at a few moments: when the agent asks a question, when tool permissions need approval, or when a turn ends or errors out. Staring at logs or waiting for desktop notifications isn’t always feasible, especially when headless or away from the desk.

There are already general notification plugins in the DSH ecosystem for multi-channels (such as dsh-notifier, dsh-notification, cc-notify-hooks). dsh-pushover-notify takes a different route: it focuses solely on Pushover as a single channel, handles priority, sound, device, and API errors thoroughly, and only subscribes to Session event streams, not touching the tool pipeline. Below is an introduction to what it does, how to install and configure it, and what situations it defaults to silently skipping.

What is this

dsh-pushover-notify is maintained by Mechman and categorized as “Connected Tools” in SkillHub. The plugin sends a push to Pushover when the agent calls ask_user_question, an approval/asked event occurs, or a turn/end completes/fails, allowing you to see “Answer needed”, “Approval needed”, “Turn ended”, or error messages on your phone.

DeepSeek Harness is designed to run unattended for a long time; the plugin’s README states that Harness only requires human intervention at three moments, and this plugin only reports these moments. Pushover is equivalent to a remote status bar. The npm package version is 0.1.0, license MIT; requires DeepSeek Harness >=0.2.2-alpha.1 and Node.js >=22.19.

What notifications will be sent

The events and notification content (excerpted from the official README) are as follows:

Harness Event Notification
agent calls ask_user_question Answer needed + question body, priority 1, sound cosmic
permission decision pending (approval/asked) Approval needed + tool and reason, priority 1, sound siren
turn ends (turn/end, completed / max-tokens) Agent finished + last assistant text, priority 0
turn fails (turn/end, error) Agent stopped with an error + error text, priority 1

“Design principle of not going out silently”: subagent sessions, turns interrupted by yourself, and completion events already covered by the next turn:start (e.g., goal rounds, scheduled follow-ups) will not be pushed to avoid spamming.

Differences from general notification plugins

The trade-offs summarized by the official README are as follows:

  • Single channel does it all: Pushover priority, sound, device, and API error feedback, rather than abstracting multiple channels.
  • Zero extra runtime dependencies: Uses only Node built-ins and global fetch, no shell, jq, native modules, or build steps.
  • Pure Session events: Subscribed via ctx.on('session/event', …), usable by Desktop, Web, and headless profiles.
  • JSON config hot reload: Editing the config file takes effect immediately, no restart or wizard needed.
  • Lightweight: About 330 lines in a single module, tested with node --test.

Installation and Enablement

Via DSH Plugin Manager (npm)

Execute on an already configured profile:

dsh plugin add dsh-pushover-notify --profile <profile-name>

After installation, restart the surface once, or wait for the profile to reload; the bundle patch declared in the package will mount the plugin line pushover-notify. In the Desktop app, you can also install the same-named bundle under Plugins for the current profile.

You can use the following command to confirm if the composition includes that line:

dsh --profile <name> --dump-config

Pushover Account Preparation

Register and create an Application on pushover.net, note down the API token and user user key, and write them into the config file later.

Configuration

Create ~/.dsh/pushover.json in the default path (or $DSH_HOME/pushover.json if DSH_HOME is set):

{
  "token": "your-application-api-token",
  "user": "your-user-key",
  "language": "en",
  "device": "",
  "notifyOnStartup": true,
  "notifyOnCompletion": true,
  "notifySubagents": false,
  "completionDelayMs": 2500,
  "questionPriority": 1,
  "questionSound": "cosmic",
  "approvalPriority": 1,
  "approvalSound": "siren",
  "completionPriority": 0,
  "completionSound": "pushover",
  "errorPriority": 1,
  "errorSound": "siren",
  "timeoutMs": 12000
}

The file is re-read before each event handling; changes take effect immediately. Priority order: environment variables PUSHOVER_TOKEN / PUSHOVER_USER → the file above → the config line in the profile patch (the later, the stricter). If the file does not exist, it falls back to ~/.config/opencode/pushover.json, convenient for sharing with OpenCode. See examples/pushover.example.json in the repo for full field descriptions.

Common field meanings (default values refer to the README):

Field Default Meaning
token, user — Required; if one is missing, the plugin is silent and does not send
language en Text language: en or ru
device All devices Specify Pushover device name
notifyOnStartup true Send a quiet (priority -1) self-check message on load
notifyOnCompletion true Whether to send “Turn ended” type messages
notifySubagents false Whether to notify delegated sub-agents
completionDelayMs 2500 Completion message delay; same-session turn:start will cancel
questionPriority / questionSound 1 / cosmic Question notifications
approvalPriority / approvalSound 1 / siren Approval notifications
completionPriority / completionSound 0 / pushover Completion notifications
errorPriority / errorSound 1 / siren Error notifications
startupPriority -1 Startup self-check message priority
guiUrl, urlTitle — Optional: attach a link to each message (e.g., LAN Web GUI)
timeoutMs 12000 Pushover HTTP timeout
dryRun false Log only, do not actually send

Pushover priority: -2 silent, -1 quiet, 0 normal, 1 high (can break Do Not Disturb), 2 emergency (plugin auto adds retry / expire).

Determination Logic (Avoiding False Positives)

  • Which sessions: header.origin === 'subagent' or child sessions with header.parentSession are not sent by default unless notifySubagents is true.
  • Which events: tool/call and name === 'ask_user_question', approval/asked, turn/end; turn/end with reason.kind === 'aborted' is considered user-initiated interruption and ignored.
  • Deduplication: Questions deduplicated by callId, approvals by approval.id, completions by turn number; duplicate events won’t be sent twice in a row.
  • Message format: Title (max 120 chars) plus a line of body, like — «session title» — workspace directory.

Typical Troubleshooting

Phenomenon Suggested Checks
Completely no notifications Is token / user filled? Did you reload after installation? When notifyOnStartup is true, there should be a startup self-check
Only startup message, no turn end notifyOnCompletion cannot be false; turns marked as aborted will not notify
No question push It must be a tool call ask_user_question; natural language questions don’t count as events
Log shows Pushover rejected the message (4xx) token/user mismatch, or Application not enabled for user
Every message comes twice Possible duplicate mounting of the plugin line; use --dump-config to troubleshoot

Warnings prefixed with [pushover-notify] in the host logs can be used to locate problems.

Suitable Scenarios and Notes

Suitable for developers already using Pushover who want DSH to run in the background for a long time and only use phone reminders for “Answer / Approve / End or Fail”. The plugin has no browser client half; it doesn’t change the Web UI; it runs with the current DSH process permissions and initiates outbound HTTPS to the Pushover API. It is advisable to read the source code and MIT license before installing and keep your token secure yourself.

Tested with Desktop 0.2.2-rc.1 (combination of dsh-base + dsh-web-app, HMR). The community directory SkillHub is an independent site and has no official affiliation with DeepSeek or Synthesia (幻方).

Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye