Preface¶
DeepSeek Harness (DSH) follows the design philosophy of “everything is a plugin,” aiming to allow developers to extend agent capabilities by combining tools. In actual development, agents often require users to confirm, make decisions, or handle completed tasks. Without effective interaction methods, users might miss important information. dsh-caller is a plugin designed for this purpose; it forcibly interrupts the user through physical sounds and pop-ups to ensure the “call” is definitely perceived.
What is this¶
dsh-caller is a DeepSeek Harness client plugin maintained by ChuxueTeam. When the model requires you to return to the computer, it invokes the call_owner tool. The plugin’s design intent is forceful interruption: the pop-up will not disappear automatically, and the alert sound will loop until the user manually closes it.
Core Features¶
The plugin possesses the following verified capabilities:
- Customizable Pop-up: Supports modifying the pop-up’s title, body text, and a single line of description.
- Three Alert Sound Sources: Supports system speech synthesis (depends on Windows SAPI), built-in sound effects, and local audio files.
- Forced Looping: The alert sound loops continuously; any operation to close the pop-up (click, Esc key, or being replaced by a new call) will immediately stop the sound.
- Urgent Mode: By setting
urgent: true, the pop-up switches to a 🚨 style, making it more prominent. - Toggle Control: Users can turn off the “Allow AI to call me” switch in settings; if disabled, the model’s tool invocation will not trigger the pop-up.
- Tool Acknowledgment: The tool returns
{ delivered, clients, text?, note }. If the window is not open or the toggle is off,deliveredwill befalse, allowing the model to adjust its strategy accordingly. - System Notifications: As an optional auxiliary measure, system notifications are sent when the window is not in the foreground.
- Zero Intrusion: Does not modify DSH built-in packages, does not read business DOM, and does not initiate any external network requests.
Installation and Activation¶
Installing this plugin requires the use of the DSH command-line tool.
dsh plugin --profile desktop add github:ChuxueTeam/dshOwnerCaller
For local development, you can clone the repository and add it via a local link:
git clone https://github.com/ChuxueTeam/dshOwnerCaller.git
dsh plugin --profile desktop add link:<your-path>/dshOwnerCaller
The plugin adopts a “single package, dual-side” architecture: lib/index.js is the host side, responsible for handling tool calls and the event bus; lib/client.js is the browser side, responsible for the settings panel, pop-up rendering, and audio playback.
Usage¶
After installation, configure and use it according to the following steps:
-
Configure Settings
Open Settings → Call Owner. In this interface, you can adjust the pop-up text, alert sound source, volume, and configure whether to allow AI calls. -
Test Call
In the settings panel, you can use three test buttons:- Call Now (Test): Fully simulates a call effect.
- Preview Pop-up Only: View the style without playing sound.
- Preview Alert Sound (Once): Test the audio effect separately.
-
Model Invocation
When the model requires your intervention, it invokes thecall_ownertool. Parameters include:text: Pop-up text (up to 300 characters); if omitted, default text is used.reason: An optional one-line description.urgent: Boolean value; set totrueto enable urgent mode.silent: Boolean value; set totrueto only show the pop-up without sound.
How it Works¶
The plugin functions through communication between the host process and the browser side:
- Host Process: After the model invokes the
call_ownertool, the event enters the host process’s event bus. The host pushes events to the browser viaGET /api/dsh-caller/stream(SSE) orGET /api/dsh-caller/poll(polling). - Browser Side:
lib/client.jsmaintains a persistent SSE connection; upon receiving acallevent, it triggers the pop-up and starts the audio player. - State Synchronization: The pop-up’s close callback holds the player’s
stop()method, ensuring immediate muting upon window closure. If the audio source fails to play (e.g., file deleted), it automatically falls back to built-in sound effects.
Precautions¶
- Forceful Interruption Design: Do not test with high volume in public places or meetings; the pop-up must be closed manually.
- Environment Dependencies: Using the system speech synthesis feature depends on Windows
System.Speech(SAPI). - Activation Timing: Modifying
lib/client.jsrequires refreshing the page (Ctrl+R); modifyinglib/index.jsrequires restarting the DSH host. - License: This plugin is released under the MIT License.