dsh-sound-alert: DSH Authorization / Sound Alert Selection

Preface

DeepSeek Harness (DSH) requires manual intervention when performing certain operations (such as tool call approval or plan review). If users are not watching the interface, it’s easy to miss these requests. The dsh-sound-alert plugin monitors request events from local DSH instances, playing a sound and showing system notifications when approval or selection is needed, helping users respond promptly even while handling other tasks.

What is this

This is a DSH plugin maintained by zhangDSK-Xu, with the core function of playing a sound alert and showing a system notification.

When DSH needs your authorization (approval policy set to ask) or requires you to make a selection (ask_user_question, plan review), the plugin responds immediately. It does not alter any authorization results—it merely listens to events and reminds users, ensuring no important interaction requests are missed.

Core Features

  • Sound and Notification: Plays a sound alert and shows a system notification. Notifications are uniformly set to silent—the plugin handles the sound to avoid duplication.
  • Web Audio Synthesis: Uses the Web Audio API to synthesize 5 different tones, no audio files need to be loaded. Tones include: Ding, Ding-Dong (default), Triple Ascending, Bell, Urgent Alarm.
  • Bell UI: A semi-transparent bell icon is always present in the bottom-right corner of the interface. Click to toggle sound; click the adjacent ▾ or right-click to open the settings panel; hold the bell to drag it to any corner, and it will snap automatically when released.
  • Repeat Reminders: When unhandled, reminders repeat at intervals (default 5 seconds), up to 10 times. Repeating stops immediately when the count limit is reached or any interaction occurs on the page.
  • Title Flashing: When unhandled, 🔔 is automatically prepended to the page title.
  • Multi-instance Listening: The plugin listens to the current page instance and http://127.0.0.1:3080, http://127.0.0.1:19387 by default. Notifications from other instances show the source at the end of the message (e.g., from 127.0.0.1:3080).
  • Fully Transparent: The plugin only listens and does not change any authorization results; after uninstallation, behavior is completely identical to before installation.

Installation and Activation

Prerequisite: DSH (Harness) is installed.

Installation Methods

  1. Install via Interface:
    In DSH Settings → Plugins, enter the following repository address in the installation input box:
    github:zhangDSK-Xu/dsh-sound-alert
  1. Install via Command Line (web is the default Web interface profile, replace according to your actual situation):
    dsh plugin --profile web add github:zhangDSK-Xu/dsh-sound-alert

Note: Desktop profiles cannot be manipulated using the dsh plugin command; installation must be done through the interface.

Uninstallation

dsh plugin --profile web remove dsh-sound-alert

Typical Usage

After installation, the plugin runs automatically. Common operations are as follows:

  1. Toggle Sound: Click the bell icon in the bottom-right corner.
  2. Open Settings: Click the ▾ next to the bell or right-click the bell.
  3. Adjust Position: Hold and drag the bell icon, and it will snap to the nearest corner (bottom-right, bottom-left, top-right, top-left) when released.
  4. Test Reminder: You can manually send a test reminder in the settings panel, or trigger it manually via command line:
    Invoke-WebRequest http://127.0.0.1:3080/dsh-sound-alert/test.json -Method POST -UseBasicParsing

Use Cases and Notes

  • Suitable Scenarios: For users who need to run DSH processes for extended periods and want to respond to authorization or selection requests promptly without watching the screen.
  • Browser Autoplay Restrictions: Browser policies require the page to have a user interaction before sound can play. The plugin will “catch up” and play the sound for the first reminder after your first click or keypress. Even if the sound doesn’t play, system notifications and title flashing will still appear.
  • Focus Mode Interference: Windows Focus Assist/Do Not Disturb mode silences system notifications (no banner appears, but they enter the notification center).
  • Multi-tab Behavior: If multiple browser tabs are open, each tab will play the sound separately.
  • Page Must Stay Open: At least one page with the plugin loaded must remain open for the plugin to work.

Conclusion

dsh-sound-alert provides a non-invasive alert method, making DSH’s interaction flow more transparent through sounds and notifications. It does not change core logic but serves as an auditory extension, ensuring that critical approval or selection steps are not missed during multitasking.

Plugin directory: dsh-sound-alert - SkillHub
Source repository: zhangDSK-Xu/dsh-sound-alert

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

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

Xiaoye