DeepSeek Harness Taskbar Flashing and Notification Sound Plugin

Preface

When developing agents with DeepSeek Harness (DSH), you may encounter scenarios such as a conversation turn completing, waiting for a user’s response, or awaiting approval. When running in the background, these state changes lack intuitive feedback. Existing notification methods either rely on system pop-ups or require the user to manually refresh the interface. This plugin provides a lighter, less intrusive form of status feedback by playing a selected alert sound and flashing the taskbar button when running in the background.

Plugin Overview

This is a Windows-only DSH client plugin. It is maintained by liaoshaohua123 and operates through a local Host + browser client architecture. It does not depend on any background service, does not modify the registry, and does not alter DSH’s approval policies. It simply plays a sound and flashes the taskbar when needed.

Core Features

Sound Alert Scenarios

The plugin plays an alert sound in the following three scenarios:

  • Turn completed: The top-level session has finished a round of conversation. Manual stop, failure, session branch recovery, or internal sub-agent completion will not trigger this event.
  • Question pending: The agent has posed a structured question, including plan reviews. Sub-agent questions that genuinely require a user’s answer also count toward this category.
  • Approval pending: The agent is blocked at a tool approval step. The user’s approval policy and response flow remain unchanged.

All alert sounds are played according to the current system volume and mute state. Question pending uses the approval alert sound.

Taskbar Flash

  • When DSH is running in the background, the taskbar button flashes with the Windows default color until the user switches back to that window.
  • When DSH is running in the foreground, only the sound is played—no flashing occurs and focus is not stolen.

Sounds & Customization

The plugin provides 10 built-in sounds, all generated locally with no network dependency:

Value Name Description
chime Classic chime Classic two-tone chime, 0.55 s
bright Bright ascending C6–E6–G6 ascending major triad
soft Soft descending G5–E5 two soft tones
triple Triple blip Default approval sound, three short blips
deep Deep bell 392 Hz bell tone
velvet Warm low bell D3–A3–D4 layered, 2.3 s sustain
ember Deep hum Default completion sound, C3–G3–C4, 2.5 s
resolve Low completion A2–E3–A3 slow ascending, 2.2 s
system Windows system sound The Asterisk sound from the current theme
none Silent Flash only, no sound

Adding Custom Sounds

  1. Click “Add sound” and select one or more audio files. The files are copied to the custom-sounds/ directory and appear immediately in both sound menus. Files with the same name are renamed in the format mine-2.wav, etc.
  2. You can also open the custom-sounds/ directory via File Explorer, drop audio files in directly, and then click “Refresh list”.
  3. Supported formats: wav mp3 m4a ogg flac wma; maximum file size is 12 MB.

Clip Studio

The plugin includes a built-in Clip Studio for extracting segments from local audio files to use as alert sounds:

  1. Expand “Make a reminder sound”.
  2. Select or drag in a local file (source file max 32 MB / 10 minutes).
  3. Drag the start/end handles to set the selection range.
  4. Preview the selected range.
  5. Name the clip and save it as a WAV file to custom-sounds/.
  6. Exported clips are up to 15 seconds long. After saving, the clip appears in both sound menus.

Installation & Enablement

Installing via Plugin Manager

  1. Open Settings → Plugins → Add plugin and point to the plugin directory or repository URL. Installing from a local directory creates a link to the checkout directory rather than copying it.
  2. Enable Taskbar Flash & Sounds on the Plugins page (plugin ID: taskbar-flash).

Manual Installation

Add the following to ~/.dsh/profile/package.json:

{
  "dependencies": {
    "dsh-plugin-taskbar-flash": "link:C:/path/to/dsh-plugin-taskbar-flash"
  }
}

The plugin ships with a cordis.patch.yml; the plugin manager will automatically apply it to the cordis.patch.yml configuration. Keep the source directory in place: linked plugins are loaded from the checkout directory.

Local Verification

# Run unit tests (execute files directly; bare `node --test test` requires a subprocess)
node test/reminders.test.mjs
node test/sounds.test.mjs

# Play sound only, no flash (iterates through built-in sounds)
pwsh -NoProfile -File flash-window.ps1 -HostPid $PID -Sound bright -SoundOnly

# Play a custom file (wav uses PlaySound; others use MCI)
pwsh -NoProfile -File flash-window.ps1 -HostPid $PID -Sound custom -SoundFile "C:\path\to\mine.mp3" -SoundOnly

# Check the target window, then flash / clear the flash
pwsh -NoProfile -File flash-window.ps1 -HostPid <host pid> -ProbeOnly
pwsh -NoProfile -File flash-window.ps1 -HostPid <host pid> -Sound deep
pwsh -NoProfile -File flash-window.ps1 -HostPid <host pid> -Clear

Use Cases & Notes

  • Use case: You are using the DSH desktop app on Windows for long-running or background sessions and need intuitive feedback on session status.
  • Notes:
  • The plugin requires the DSH desktop app as its Host; browser environments do not have a desktop window to flash.
  • The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installing.
  • The plugin requires PowerShell 7 (pwsh.exe); the DSH subprocess sandbox rejects Windows PowerShell 5.1. The plugin first looks for %ProgramFiles%\PowerShell\7\pwsh.exe and falls back to 5.1 with a console warning if not found.

Conclusion

This plugin provides DSH with a lightweight status feedback mechanism through sound and taskbar flashing. It does not rely on background services or pop-ups, does not interfere with approval workflows, and does not modify the registry or DSH configuration. If you use DSH on Windows and want a more intuitive sense of session progress, you can try installing it and configuring the sounds you like.

References

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

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

Xiaoye