Introduction¶
When running sessions, DeepSeek Harness (DSH) often requires external feedback upon approval requests or at the end of a turn. This plugin provides a lightweight solution to push these lifecycle events to a specified endpoint via Webhook.
Core Features¶
The core function of this plugin is to monitor the DSH session event log and forward qualifying events. It does not contain prompts, replies, tool arguments, or file contents; it only forwards lifecycle facts.
- Event Filtering and Forwarding: By default, listens for
turn/endandapproval/askedevents. - Multiple Format Support: Supports
json(default),ntfy(push notifications), andbark(iOS push) formats. - Pure JavaScript Implementation: No build step required, runs directly.
Installation and Enablement¶
The installation command is as follows. Please ensure you have reviewed the source code and license before installing.
dsh plugin --profile web add github:chenweigao/dsh-perch-notify
After installation, environment variables need to be configured before starting DSH.
Configuration and Usage¶
Configuration is done via environment variables. The following example uses ntfy.sh as the notification endpoint:
export DSH_NOTIFY_URL="https://ntfy.sh/my-topic"
export DSH_NOTIFY_FORMAT="ntfy"
export DSH_NOTIFY_EVENTS="turn/end,approval/asked"
dsh web
For persistent configuration, you can add the following content to the profile’s cordis.patch.yml:
- id: perch-notify
name: dsh-perch-notify
config:
url: https://ntfy.sh/my-topic
format: ntfy
events: ['turn/end', 'approval/asked']
timeoutMs: 8000
Format of Sent Content¶
The plugin sends data in different formats based on the DSH_NOTIFY_FORMAT setting.
JSON Format (Default):
{
"event": "turn/end",
"sessionId": "3d60430f-…",
"time": "2026-09-21T13:29:56.155Z",
"text": "dsh 轮次结束:3d60430f · completed",
"detail": { "turn": 1, "reason": "completed" }
}
The format for approval requests includes detail.toolName and detail.reason.
ntfy Format:
Sends text with Title and Tags headers attached, suitable for mobile push notifications.
Bark Format:
Sends a {title, body} structure conforming to the Bark protocol.
Scenarios and Notes¶
- Privacy and Security: The plugin sends only a single outbound POST request to the configured URL. No telemetry, no storage, no other network calls. When
urlis not configured, the plugin remains dormant and sends no data. - Fault Tolerance: If notification sending fails, the error is logged to the DSH console, but it will never block or retry the agent’s operation.
- Permission Scope: The plugin runs with the permissions of the current DSH process.
Conclusion¶
This plugin was built by chenweigao, the author of the Perch project. If you use Perch on Mac to handle approval and completion notifications for remote agents, you can refer to the design philosophy of this plugin. For more details, please check the directory page or the source repository.