Introduction¶
Running Agents in DeepSeek Harness (DSH) often involves long background tasks that require you to return to the terminal to click “Allow,” or encounter mid-run errors. Staring at the terminal or repeatedly switching windows is impractical. While email and Webhooks are options, iPhone users typically prefer a system-level push notification, ideally visible at a glance on an Apple Watch.
Below is an introduction to the community plugin bark-notify (npm package @lijixu/bark-notify, GitHub repo xuliji/bark-notify). It pushes notifications to your iPhone via Bark when an Agent finishes running, requires manual authorization, or encounters an error; when paired with an Apple Watch, notifications mirror automatically. Maintained by xuliji, it is categorized as a Network Tool in the DSH plugin directory.
What is this?¶
bark-notify is a bundle plugin for DSH: it listens for task lifecycle and authorization events within the Harness and POSTs push requests to the Bark server. You simply need to install the Bark App on your iPhone and write the Key displayed on the App’s homepage into your DSH configuration. The plugin only sends notifications; it does not perform authorization on your behalf within DSH.
When will you receive notifications?¶
| When | What you receive |
|---|---|
| Task finishes running | ✅ Task Complete |
| A tool call requires you to click “Allow” | 🔔 Authorization Required |
| An error occurs during execution | ⚠️ Execution Error |
| You manually click “Stop” | No push (default behavior) |
Several default strategies are designed to minimize disturbance:
- Manually stopped tasks will not be reported as “Task Complete.” If you wish to be notified upon abort, set
notifyOnAborttotrueto receive⏹️ Aborted. - Errors are pushed only once; a “Task Complete” notification will not be sent after an error notification.
- Sub-agents are silent by default; a single task may spawn multiple sub-agents, and enabling all of them can cause notification overload. Set
includeSubagents: trueif needed. - Authorization must still be confirmed normally within DSH; the plugin does not alter authorization results.
Notification bodies typically include a title line, a brief description, and the Task Title + first 8 characters of the Session ID, making it easy to distinguish which session requires your attention. Example formats (from the official README):
✅ Task Complete
Agent run finished
Refactor login module (7dbd389b)
🔔 Authorization Required
Tool: bash
Reason: Writing to file outside workspace
Refactor login module (7dbd389b)
Installation and Activation¶
Prerequisites: Install the Bark App on your iPhone. Open the homepage to see a URL like https://api.day.app/xxxxx, where xxxxx is your Key.
Run the official installation command in DSH:
plugin_manager: { action: "install_bundle", target: "@lijixu/bark-notify" }
Restart DSH after installation. For installations from GitHub or local paths (e.g., github:xuliji/bark-notify), refer to the repository’s PUBLISHING.md for syntax.
Configuration: deviceKey is a required field. If not provided, the plugin will only log a message and will not perform network pushes.
It is recommended to write this into the profile patch layer (~/.dsh/profiles/desktop/cordis.patch.yml), which has higher priority and prevents configuration loss during plugin upgrades:
- id: bark-notify
name: '@lijixu/bark-notify'
config:
deviceKey: 'Your Bark Key'
Restart DSH again for changes to take effect.
Optional Configuration¶
| Config | Default | Description |
|---|---|---|
serverUrl |
https://api.day.app |
Bark server; change to your own domain if using a self-hosted bark-server |
notifyOnFinish |
true |
Whether to push when a task finishes |
notifyOnApproval |
true |
Whether to push when authorization is required |
notifyOnError |
true |
Whether to push when an execution error occurs |
notifyOnAbort |
false |
Whether to push when manually aborted |
includeSubagents |
false |
Whether to push for sub-agents as well |
settleMs |
1500 |
Delay before pushing after completion (ms), used to skip jitter where a task “finishes and starts immediately”; 0 means push immediately |
timeoutMs |
10000 |
Timeout for a single push (ms) |
group |
DeepSeek Harness |
Bark notification group |
sound |
empty | Bark ringtone name, empty for system default |
level |
active |
Interruption level: active / timeSensitive / passive / critical |
icon |
empty | Notification icon URL |
url |
empty | Link to open when the notification is clicked |
If you only want to be reminded when authorization is needed, set notifyOnFinish and notifyOnError to false, or change level to passive.
Typical Usage and Troubleshooting¶
Only want alerts for authorization: Turn off completion and error pushes in the patch, keeping notifyOnApproval: true.
If you receive no notifications at all, check the following in order:
- Check if
deviceKeyis filled in and copied correctly. - Check if you restarted DSH after changing config (config is read at startup).
- Check if
serverUrlwas changed if using a self-hosted bark-server. - Check if Bark notification permissions or Focus modes on the iPhone are blocking alerts.
- Check if
levelis set topassive(no screen wake, no sound, goes to notification center only).
Multiple notifications for one task: Check if includeSubagents is enabled; you can also adjust settleMs appropriately.
Uninstall or Temporarily Disable:
Full uninstall:
plugin_manager: { action: "remove_bundle", target: "@lijixu/bark-notify" }
Temporary disable:
plugin_manager: { action: "set_bundle", target: "@lijixu/bark-notify", enabled: false }
All operations above require a DSH restart to take effect.
Use Cases and Notes¶
Suitable for developers who run Agents in DSH for long periods and are accustomed to receiving push notifications on their iPhone / Apple Watch. The DSH ecosystem emphasizes “Everything is a plugin”; the community directory site bark-notify page on skillhub.cn has no official affiliation with DeepSeek or Hunyuan. Please review the source code and MIT License yourself before installing.
The plugin runs with the permissions of the current DSH process; deviceKey is stored only in local DSH configuration, and pushes are POSTed to your configured serverUrl (defaulting to the official api.day.app). Before installing network-enabled plugins, it is recommended to confirm that the repository source and behavior align with your security expectations.
Conclusion¶
bark-notify connects the three critical moments in DSH—“Task Finished,” “Authorization Required,” and “Error”—to Bark, reducing the cost of watching the terminal. Directory page: https://www.skillhub.cn/plugins/xuliji/bark-notify; Source code and full documentation: https://github.com/xuliji/bark-notify.