dsh-approval-alert: macOS Audio Notification While Waiting for DSH Authorization

Preface

When running agents with DeepSeek Harness (DSH), you often get stuck at “need you to click once”: tool approvals, sandbox upgrades, agents waiting for your answers via ask_user_question, or macOS TCC permission dialogs for microphone, screen recording, etc. With windows in the background, headphones on, and switching to other applications, it’s easy to miss these, leaving tasks stalled.

Monitoring the interface manually isn’t a sustainable solution. Community maintainer kongbaiming5’s dsh-approval-alert (directory package name dsh-approval-alert, displayed as “Approval Alert” in the sidebar) uses macOS system sounds to repeat alerts at a rhythm in the above scenarios, and provides a master switch and Chinese configuration form in the DSH sidebar “Plugins”. The plugin is categorized as a Client, currently has 1 GitHub star; license is MIT, package version 0.2.0 (subject to the repository’s package.json).

Below is an introduction to what it covers, how to install and configure it, as well as verification and notes. Facts are based on the GitHub README; community directory page: SkillHub Plugin Page.

What is this

dsh-approval-alert is a DeepSeek Harness plugin: when DSH gets stuck at “needs your approval”, it reminds you using macOS built-in system sounds. It does not replace the approval or answer flow; it only makes sounds when waiting for your action (with optional first system notification); it stops immediately after you allow, deny, or answer.

Maintainer: kongbaiming5. Repository: https://github.com/kongbaiming5/dsh-approval-alert.

Coverage

Source Examples
DSH tool approvals Sandbox upgrades, dangerous commands, writing files outside workspace
DSH agent questions ask_user_question, plan review exit_plan_mode
macOS system permission dialogs Microphone, camera, screen recording, accessibility, automation, files and folders, full disk access

The macOS permission dialog handling only processes requests with TCC identity com.deepseek.dsh / DeepSeek Harness; permission dialogs from other apps will not trigger.

Core Features

Alert Rhythm

The first alert sounds immediately at the moment approval is needed, then repeats at fixed intervals:

Which Interval
1st Immediately (0 seconds)
2nd After 25 seconds
3rd After 20 seconds
4th After 15 seconds
5th After 10 seconds
6th and later After 5 seconds each

Each alert defaults to double beeps (0.38 seconds apart), adjustable via the “Beeps per alert” field in the form. It stops immediately after you click allow/deny, answer a question, or the system dialog returns a result. Multiple requests share the same rhythm and only stop after all are processed. macOS permission dialogs have an additional systemPromptTimeoutMs safety cap (default 10 minutes) to prevent infinite alerts when logs miss results.

After installing and enabling the bundle:

  1. Open the sidebar Plugins;
  2. Find the card “Approval Alert” (package name dsh-approval-alert) in Installed Plugins;
  3. The switch on the right of the card controls the entire bundle; clicking into the card, the approval-alert row inside has its own switch;
  4. Click the row title/config button to open the Chinese configuration form, changes take effect immediately after saving.

The plugin also appears as approval-alert in DSH’s Settings → Built-in Plugins → Plugin List, but that is only a read-only running status; for daily configuration, use the form in the sidebar “Plugins”.

Configuration items (default values in the table below) are written to the profile patch via the DSH plugin configuration mechanism; no manual YAML editing needed. Advanced users can still edit the approval-alert override in $DSH_HOME/profiles/<profile>/cordis.patch.yml.

Configuration Default Description
Enable approval alerts On Master switch; no sounds from any source when off
Alert sound Glass macOS system sound name, or absolute audio path
Volume multiplier 1 afplay -v multiplier; 1 = follow current system output volume
Beeps per alert 2 Double beeps per alert; 1–4
Also show one system notification On Show notification on first alert
DSH tool approvals On Approval requests
Agent questions / plan review On ask_user_question, exit_plan_mode
macOS system permission dialogs On DSH-triggered TCC dialogs
System dialog safety cap 600000 Milliseconds; 0 means no auto-stop
Notification language zh Chinese / English
Diagnostic log file Empty e.g. /tmp/dsh-approval-alert.log

All configuration fields are volatile; after saving via the form, the Host reads the new values directly, no plugin restart required.

How it works (brief)

  • DSH approvals / questions: Register pre-listeners on two Cordis waterfalls: approval/request and user-questions/request; after starting alerts, call next(), without changing the original approval/answer chain.
  • macOS TCC dialogs: Run a background log stream that only filters com.apple.TCC. When matching AUTHREQ_PROMPTING + com.deepseek.dsh, start alerts; when matching the corresponding AUTHREQ_RESULT, stop. The log stream auto-restarts when it exits.
  • No network, no credentials: Only calls afplay, log, with osascript as a fallback for notifications.

On the first alert, it attempts to show a system notification. Notifications prefer Electron native notifications; when the current desktop Host is a pure Node process, it degrades to osascript display notification, and the notification source may display as “Script Editor”. To disable notifications, turn it off in the form; sounds are unaffected.

Installation and Activation

Environment Requirements

  • macOS 13 or newer (README tested on macOS 26 / Apple Silicon).
  • DeepSeek Harness with profile plugin mechanism (tested on 0.2.1-rc.2).
  • Node.js 20+ only for running tests; DSH runtime comes with Node.

One-click Installation (from GitHub clone)

The installation method given in the README is to clone the repository and run the installation script:

git clone https://github.com/kongbaiming5/dsh-approval-alert.git
cd dsh-approval-alert
./scripts/install.sh desktop

The script will:

  1. Find the dsh CLI ($DSH_BIN, PATH, or inside the macOS App bundle path);
  2. Add the current directory as a local package to $DSH_HOME/profiles/<profile>/package.json;
  3. Add dsh-approval-alert to dsh.profile.bundles so the sidebar “Plugins” recognizes it;
  4. If an old “manual insert” entry is detected, prompt you to remove it to avoid duplicate mounting.

If DSH is running, bundle list changes usually require restarting the App once; after restart, you can see “Approval Alert” in the sidebar “Plugins”.

Installation via Plugin Page

In the sidebar Plugins → Add Plugin → Install Third-party Plugin, enter the local absolute path of this repository; after installation, enable the bundle. The configuration form will also appear in the “Approval Alert” detail page.

The installation script only modifies the selected DSH profile, not the App bundle or system settings. The plugin runs with the permissions of the current DSH process; before installing, review the source code and MIT license yourself to confirm acceptance of its behavior (including TCC log monitoring, local afplay, etc.).

Typical Usage and Verification

Sound chain

In the configuration form, confirm “Enable approval alerts” is on and save; trigger a DSH approval or system permission dialog. The first alert should sound immediately, then repeat at 25/20/15/10/5 second intervals.

macOS permission dialog (microphone)

The following commands are used to verify DSH microphone dialog and alert linkage (will reset DSH’s microphone authorization status, not affecting other apps):

tccutil reset Microphone com.deepseek.dsh
ffmpeg -f avfoundation -i ":0" -t 0.5 -y /tmp/dsh-mic-test.wav

When the system pops up “DeepSeek Harness wants access to microphone”, the plugin should immediately sound the first alert; it stops after clicking allow/deny.

DSH tool approvals

Switch the session permission policy to ask, letting the agent request broader sandbox permissions. When the prompt appears, it sounds immediately, stopping after clicking allow/deny.

If there is no sound at all, first manually test the system sound: afplay /System/Library/Sounds/Glass.aiff, and check system volume, mute, and “Enable approval alerts” and corresponding source switches in the form.

Use cases and notes

Who it’s for: Developers primarily using the DSH desktop on macOS, often away from the main window or running agents unattended for long periods. Not suitable for non-macOS environments (the plugin depends on afplay and TCC log streams).

Security and Privacy (per README): Makes no network requests, reads no credentials, no telemetry. The TCC watcher only reads com.apple.TCC prompt/result lines, filtered to DSH’s bundle identity. Diagnostic logs only write local event names, service names, PIDs, and timings; leave empty when not debugging.

Troubleshooting quick reference: If the plugin page has no card, confirm dsh.profile.bundles includes dsh-approval-alert and restart the App; if macOS dialogs don’t trigger, use log show --last 1m --predicate 'subsystem == "com.apple.TCC"' to check for AUTHREQ_PROMPTING and com.deepseek.dsh, or open the diagnostic log to see tcc prompt.

The DeepSeek Harness ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent sites, with no official affiliation to DeepSeek / High-Flyer.

Conclusion

dsh-approval-alert unifies DSH approvals, agent questions, and DSH-triggered macOS permission dialogs into configurable audio alerts, and manages switches and rhythm via a Chinese form in the sidebar. For details or to file issues, see the repository https://github.com/kongbaiming5/dsh-approval-alert; directory index at https://www.skillhub.cn/plugins/kongbaiming5/dsh-approval-alert.

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

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

Xiaoye