dsh-desktop-notify: DeepSeek Harness Desktop Notification Plugin

Introduction

When developing agents using DeepSeek Harness (DSH), manual intervention is often required: authorization confirmation is needed when a tool exceeds its privileges, the model asks you questions or submits a plan for review, or a task run completes. If you are not watching the interface during these moments, the conversation will hang indefinitely. The dsh-desktop-notify plugin captures these three states via system-level notifications (system toasts on Windows), allowing you to be informed and handle them immediately while working on other tasks.

What is it

dsh-desktop-notify is a client-side plugin maintained by AFAP. It performs read-only monitoring of DSH’s official status sources and converts pending interactive states into browser Notification API notifications.

Core Features

  • Three Types of Alerts: Supports tool authorization confirmation (approval), question and plan review (question / plan-review), and task completion (session transition to idle).
  • System-Level Notifications: Sent by the browser (displayed as system toasts on Windows), no persistent background program required.
  • Click to Focus: Clicking a notification brings the window to the foreground and automatically scrolls to the corresponding pending card.
  • Focus Suppression & Catch-up: By default, alerts are only issued when DSH is not in the foreground; suppressed notifications will be resent if you switch away from the window.
  • Sub-agent Noise Reduction: Completion alerts are only for the host session list; no pop-ups occur when sub-agents finish.
  • Deduplication & Auto-cleanup: Each request is notified only once, and the corresponding notification closes automatically after it is answered.
  • Zero Dependency & Zero Overhead: No external npm dependencies, no HTTP route registration, no new entry points in the sidebar; configuration is provided only in a section on the settings page.

Installation & Activation

The plugin is installed via the command line and becomes active after refreshing the page.

dsh plugin --profile web add github:AFAP/dsh-desktop-notify

After installation:

  1. Open “Settings” → “Desktop Notifications” on the left.
  2. Click “Enable Permission” and allow notifications in the browser popup.
  3. Click “Send Test Notification” to verify the channel.

Usage Instructions

Notification Trigger Scenarios

  • Tool Authorization Confirmation: A tool requests privileged execution (e.g., a write operation rejected by the sandbox).
  • Question/Plan Review: The model asks you a question or submits a plan for confirmation.
  • Task Completion: A session in the host session list transitions from running to idle.

Behavior Details

  • Auto-close: After answering a question or clicking through an authorization in the interface, the corresponding notification closes automatically.
  • Foreground Suppression: “Only notify when DSH is not in the foreground” is enabled by default, preventing interruptions when you are actively watching the interface.

Notes

  • Environment Requirements: Requires DeepSeek Harness 0.1.7-alpha.1 or higher. The page must be a secure context (https or localhost) for the browser to provide the Notification API.
  • Permission Management: Browser notification permission is required, and the page must be a secure context (https or localhost). Settings are stored only in the browser’s localStorage; no data is uploaded.
  • Security Design: The plugin performs read-only monitoring of official status sources, does not hijack any pipelines, sends no network requests, reads no session logs, and contains no credentials or keys.
  • Privacy: Notification content may appear on the lock screen or in the notification center, containing the tool name, request reason, and session title.

Conclusion

This plugin reduces reliance on the interface during Agent development through system-level notifications, making it suitable for multitasking scenarios or long-running Agent operations.

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

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

Xiaoye