DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

LianyeSheng /

LianyeSheng/dsh-attentive

Verified

Presence-aware desktop notifications for DeepSeek Harness (DSH): one popup per turn, approval/question aware, optional Feishu/Lark, Linux, macOS, Windows.

★ 0 Stars0 Forks1 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@021738aa

dsh-attentive

English | 中文

npm platforms license GitHub stars

Presence-aware desktop notifications for DeepSeek Harness (DSH): one popup when a turn ends, silence while you are watching, and an optional Feishu (Lark) copy when you are away. A failed, blocked or truncated turn always speaks.

1. Introduction

dsh-attentive is a notification plugin for DeepSeek Harness (DSH) that knows whether you are still looking at the page. It turns the end of a long agent run into one small popup — and stays quiet while the session is visible, focused and active, except when the turn failed, was blocked, or was truncated.

It is built for the moment an agent runs for minutes and you switch to another window: no polling the conversation, no duplicate notices, no notification storm from a team of workers. When you leave the desk, the optional Feishu (Lark) channel forwards the same reminder through your authorized lark-cli, so a finished or blocked run still reaches you.

Highlights

  • Presence-aware — the desktop popup, the cue and the Feishu copy are all suppressed while you are watching the session; a failed, blocked or truncated turn is the exception and always speaks.
  • One notice per turn — the notify tool picks the text; a turn-end fallback covers a model that forgets, without speaking twice.
  • Approval and question aware — a turn blocked on your decision gets the attention cue instead of a silent completion.
  • Optional Feishu / Lark channel — works through the DSH Connectors plugin and the signed-in lark-cli; it follows the same gate as the popup.
  • Linux, macOS and Windows — notify-send and a notification daemon on Linux (X11 or Wayland), osascript on macOS, native toast on Windows.
  • Team-safe — only the lead of an agent tree can notify; delegated workers cannot pop notifications of their own.

If you run DSH headless, over SSH or on a remote box, the Feishu channel is often the only reminder that can reach you.

2. Core features

The notify agent tool

The lead in an agent team, or the default model, can call the notify agent tool to choose the reminder's content and type, for example { "title": "Reindex complete", "body": "4,210 files in 38 seconds.", "level": "success", "sound": true }.

Because this is a tool call, the model may forget to use it; turn/end then fires a fallback reminder, with the current turn summary as the title and the first sentence of the model's reply as the body.

Timely reminders

The plugin uses built-in logic to decide whether you are actively watching the session that is working. If it decides you are watching, normal turns stay silent; a failed, blocked or truncated turn still triggers a reminder.

IM notifications (optional)

IM notifications follow the same rules. This feature requires the DeepSeek Harness "Connectors" plugin, and the connector must be able to send messages; currently only Feishu is supported.

3. Install

Let DSH install it

Send this to DSH:

Install the dsh-attentive plugin into the current profile from npm: add dsh-attentive, then restart DSH and refresh the page when it is done. If npm is slow or cannot be reached in your region, configure a local npm mirror (for example https://registry.npmmirror.com) first.

DSH installs the published package; the npm tarball already contains dist/, so no build-script approval is needed.

With the dsh CLI

Install the published package directly:

dsh plugin --profile web add dsh-attentive

Replace web with the profile you use. If the official registry is slow or blocked in your region, point pnpm at a mirror for this install:

PNPM_CONFIG_REGISTRY=https://registry.npmmirror.com dsh plugin --profile web add dsh-attentive

The one-off environment variable leaves your global registry unchanged. To make the mirror permanent, run pnpm config set registry https://registry.npmmirror.com instead.

From a source checkout (development)

Clone the repository from GitHub and install it locally. Requires Git, Node 22 or newer and pnpm:

git clone https://github.com/LianyeSheng/dsh-attentive.git
cd dsh-attentive
pnpm install
pnpm run build

Then choose "Add plugin → Local directory" on the Plugins page, or point plugin_manager install_bundle at the directory. dist/ is not in git, so a checkout that skips the build has no Host half to load. After the plugin reloads, refresh the page once: dist/client.js attaches the heartbeat and settings panel at page load, so without a refresh there is no heartbeat and no settings panel — notifications still fire.

Platform requirements

Platform Needs Notes
Linux notify-send (libnotify), a notification daemon (mako / dunst / swaync / Quickshell) and session D-Bus; a player such as paplay, pw-play, ffplay, mpv or aplay for sound The only platform with a custom notification icon and app name.
macOS The built-in osascript, defaults and afplay No custom notification icon; cue and text only.
Windows The built-in PowerShell and .NET No custom notification icon; Toast on Windows 10/11, tray balloon on Windows 8 and Server Core.

The plugin declares support for linux, darwin and win32; DSH refuses to install it elsewhere. The Linux fallback in the code is not a support promise.

Note: the Windows platform has not been tested.

Verify the install

On Linux, first confirm the notification chain itself works:

notify-send -a DSH -i dialog-information "DSH test" "Notification path works"

If nothing pops, the problem is the notification daemon or session D-Bus, not the plugin. dialog-information is a freedesktop standard icon name; if your theme lacks it, drop -i and the chain check still works. After installing, refresh the Web page once; the Plugins page should show the "Turn notifications" row, and its detail page should have the settings panel.

4. Contributing

Issues and pull requests are welcome: bug reports, platform notes and DSH compatibility fixes are all useful. If dsh-attentive saves you a context switch, a star helps other DSH users find it.

5. License

MIT.

—/ 5

No ratings yet

Verified DSH bundle

Commit 021738aab598

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout