Introduction¶
When DeepSeek Harness (DSH) is running for extended periods or unattended, you need a reliable way to be notified of key events on your phone: a conversation turn has finished, a tool is awaiting approval, or the agent has raised a structured question. Traditional approaches rely on third-party services or require keeping a client online, which introduces deployment costs and privacy risks. dsh-push-notify uses the Web Push protocol to let DSH deliver native push notifications to your browser or phone through a lightweight, self-hosted relay.
What This Plugin Is¶
dsh-push-notify is a DeepSeek Harness plugin maintained by ibuildrun. It does not depend on any third-party notification service, has no account system, and collects no telemetry. The plugin itself is a pure HTTP client; the relay is a single-dependency Node.js process. All push messages are end-to-end encrypted at the Web Push layer—only your relay can see the plaintext payload.
Core Features¶
The plugin delivers push notifications through three event hooks:
- turnEnd: Triggered when the agent finishes a conversation turn. The notification title is
Turn finished — <project>, with a brief answer preview. Notification tag:dsh-turn. - approval: Triggered when a tool requests approval. The notification title is
Approval needed, with the tool name and reason. Tag:dsh-approval. - questions: Triggered when the agent raises a structured question. The notification title is
Question waiting, with the first question. Tag:dsh-question.
The tag for each event type is fixed, so a new notification replaces the old one, preventing a pile-up of stale notifications.
Installation & Setup¶
The plugin and the relay are two separate components: the relay holds the VAPID keys, and the plugin communicates with it over HTTP.
1. Run the Relay¶
After cloning the repository, navigate to the example directory:
cd examples/relay
npm install # installs the single dependency: web-push
export PUSH_TOKEN="$(node -e 'console.log(require("node:crypto").randomBytes(32).toString("hex"))')"
node server.mjs
By default the relay listens on 127.0.0.1:8787 and prints a shared token. The examples/relay directory contains a complete, minimal relay implementation. See examples/relay/README.md for details.
2. Install the Plugin¶
Install it via DSH’s plugin command:
dsh plugin --profile <profile> add github:ibuildrun/dsh-push-notify
After installation, edit $DSH_HOME/profiles/<profile>/cordis.patch.yml and add or modify the plugin entry:
- id: push-notify
name: dsh-push-notify
config:
endpoint: https://push.example.test/push/send
tokenEnv: DSH_PUSH_TOKEN
tokenEnv specifies the environment variable name the plugin reads for the token; token can also be set directly in the config, but using an environment variable is recommended for security. Set the environment variable and restart DSH:
export DSH_PUSH_TOKEN="<the token printed by the relay>"
dsh --profile <profile>
If endpoint is empty, the plugin remains inactive until a valid address is configured.
3. Subscribe a Device¶
On the relay page (locally at http://127.0.0.1:8787/ or your HTTPS address), click Enable notifications. On iPhone/iPad, first choose Share → Add to Home Screen, then enable notifications in the installed web app. Once done, click Send test to verify.
Typical Configuration¶
All plugin configuration lives in the config field of the bundle patch entry. The table below describes the commonly used fields:
| Field | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | true |
Master switch; false disables all hooks. |
endpoint |
string | '' |
The relay’s send URL, e.g. http://127.0.0.1:8787/push/send. An empty value disables pushing. |
token |
string | '' |
Shared secret used in the authorization: Bearer <token> header. |
tokenEnv |
string | DSH_PUSH_TOKEN |
Environment variable name from which to read the token. |
events.turnEnd |
boolean | true |
Push on conversation turn end. |
events.approval |
boolean | true |
Push when a tool requests approval. |
events.questions |
boolean | true |
Push when structured questions are raised. |
title |
string | DeepSeek Harness |
Fallback notification title. |
timeoutMs |
number | 5000 |
Timeout (in milliseconds) for a single HTTP send. |
url |
string | / |
Path opened when the notification is tapped. Non-relative URLs fall back to /. |
A typical example:
- id: push-notify
name: dsh-push-notify
config:
endpoint: https://push.example.test/push/send
tokenEnv: DSH_PUSH_TOKEN
events:
questions: false
This configuration disables question notifications while keeping turn-end and approval notifications enabled.
Use Cases & Caveats¶
This plugin is well suited for scenarios where you need to monitor DSH progress remotely, intervene in approvals, or answer structured questions. The plugin runs with the privileges of the current DSH process—make sure to review the source code and license before installing.
Caveats:
- DSH host plugin API
>= 0.2.0. - The relay and test environment require Node.js
>= 22. - The browser must support Web Push; iOS/iPadOS requires 16.4 or later, and the subscription page must be added to the Home Screen.
- The relay binds to
127.0.0.1by default. For phone access, place a TLS reverse proxy or tunnel in front of it. Do not expose plain HTTP to the public internet. - The token is read from an environment variable and is never written to logs or notification payloads.
- Sends are fire-and-forget; a failure will not block DSH’s normal flow.
Summary¶
dsh-push-notify provides a self-hosted, dependency-free push notification solution that delivers DSH’s key events to your phone through a lightweight relay. Setup is straightforward, security is guaranteed by the Web Push protocol and a shared token, making it ideal for users who want to keep DSH fully under their local control.
- Plugin directory page: https://www.skillhub.cn/plugins/ibuildrun/dsh-push-notify
- GitHub repository: https://github.com/ibuildrun/dsh-push-notify