dsh-pharos: DSH Desktop Guardian Reminder Plugin

Preface

In the plugin ecosystem of DeepSeek Harness (DSH), developers frequently encounter scenarios where they “ask a question and switch away, waiting for results in the background.” dsh-pharos (Pharos Lighthouse) aims to solve this problem. As a desktop watchtower notification plugin, it provides multi-channel status alerts and system interaction capabilities, ensuring that key signals regarding task completion, errors, or the need for human intervention are never missed.

Feature Overview

Maintained by Leo Chen (Leo-Cjw) and licensed under MIT. Core capabilities include:

  • Multi-channel Alerts: Supports various event types including actions (approval/confirmation), completion, errors, interruptions, limits, background tasks, and workflow progress.
  • System Interaction: Provides native system notifications, distinct sound alerts, and title markers (e.g., 🔔 Need You). Clicking a notification directs the user to the corresponding session (implemented via the host’s uiWorkspace.openSession since v0.6.3).
  • Webhook Push: Supports message pushing to WeCom, Feishu, DingTalk, and generic channels, including statistics for the current turn (Token/Cache/TPS).
  • Automation Control: Built-in Do Not Disturb (DND) hours, sub-agent filtering, SSE bridging, and remote triggering.

Installation and Configuration

Install via the DSH plugin directory:

# Install via directory link (requires DSH environment support)
https://www.skillhub.cn/plugins/Leo-Cjw/dsh-pharos

Or install via the GitHub repository:

https://github.com/Leo-Cjw/dsh-pharos

The configuration entry point is located in DSH under Settings → Message Notifications. Settings are automatically saved approximately 0.8 seconds after modification.

Usage Instructions

Adjusting Alert Timing

By default, “Reply Completed” alerts are triggered only when the page is hidden or in the background. In the settings page, this can be adjusted to three modes: Off / Alert only when page is hidden / Always Alert. For requests that “Require Your Action,” alerts are enabled by default at all times; however, when the current session page is in the foreground, notifications are silent and only the title marker is retained.

Configuring Webhooks

In the Webhook channel management section of the settings page, you can configure WeCom, Feishu, DingTalk (signature support), and generic pass-through. Message formats support three levels: Simple, Detailed, or Custom. The Custom level allows for layout formatting using variables such as {title}{note}{kind}{summary}.

Script Invocation

The plugin exposes a global object window.__dshPharos, which can be controlled via JS scripts:

window.__dshPharos.setConfig({
  enabled: true,               // Master switch
  sound: true,                 // Alert sound
  doneHiddenOnly: true,        // Completion alert timing
  quietHours: { enabled: false, start: "23:00", end: "08:00" }, // Do Not Disturb
  workflowEvents: false,       // Workflow alerts
  webhooks: []                 // Webhook configuration
})

Notes

  • Windows Platform Limitations: The length of Windows native notification tags is restricted by the system (approx. 64 characters); this issue was fixed in v0.6.4. Additionally, Windows native notifications rely on the DSH host being online.
  • Deduplication Mechanism: To prevent duplicate notifications, the plugin employs SSE frame-level 2-second window deduplication, dual-source done deduplication, and same-session throttling (default 6 seconds).
  • Browser Compatibility: Browser notifications have zero dependencies, but the click-to-navigate feature (v0.6.3) requires the host to provide the uiWorkspace.openSession interface.
  • Permission Requirements: The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye