Introduction¶
When running multiple sessions in parallel in DeepSeek Harness (DSH), it’s often necessary to repeatedly switch tabs just to confirm whether a task has finished, failed, or is waiting for your answer or authorization. The community already has lightweight notification ideas based on session state; attention-plugins reimplements and extends these concepts on a similar architecture, combining “completion reminders” with “priority management for parallel multi-tasking”: you can mark one thread as the main line and treat the others as side lines, using sound and optional system notifications to bring your attention back without having to watch the screen and poll for updates.
The following describes this client-side (Web) plugin published by maintainer zjbc2000: it runs inside the DSH Web interface, does not replace the task scheduling of the Harness itself, and is solely responsible for detecting session state and providing configurable feedback.
What Is This¶
attention-plugins is a lightweight plugin for DSH Web, positioned as “smart session notifications + main line/side line management.” It monitors session running and interaction states, triggers sound effects or browser notifications on four types of events, and allows you to mark a specific session as the main line: notifications fire immediately when the main line ends, while side lines stay silent as each one completes, until all side lines are done and a final notification is triggered.
- Maintainer: zjbc2000
- Category: Client-side (
platform: web) - License: MIT (see the repo LICENSE)
- Current package version: 0.1.2 (as per the repo
package.json) - Directory page: SkillHub plugin page
- Source code: GitHub zjbc2000/attention-plugins
The DSH ecosystem emphasizes “everything is a plugin”; community directories such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer. Please read the source code and license yourself before installing — the plugin executes on the browser side alongside the current DSH Web process, and configuration is written to the local machine’s localStorage.
Core Features¶
Four Event Notification Types¶
The plugin distinguishes four notification scenarios (the default sound effect can be toggled individually per event in the settings):
| Event | Meaning | Default Sound |
|---|---|---|
| Completed | Task finished successfully (running goes from true to false) |
Chime |
| Failed | The agent loop actually failed (api-session/error; user-initiated aborts do not trigger) |
Subtle |
| Question | Requires user input/answer | Success |
| Permission | Requires user authorization (including plan-review, approval, and other pending interactions) | Success |
Completion and failure mainly rely on the remote events api-session/status and api-session/error; questions and permissions have no corresponding api-session/* remote events, so the implementation detects them via the pendingInteraction field in the injected UI session state ctx.uiSession.sessionStatus (kind: 'question' | 'plan-review' | 'approval'). The first frame only records a baseline to avoid false positives.
Main Line and Side Lines¶
- Marked as main line: when that session completes, trigger sound/notification immediately (as long as the global switch and the event switch allow it).
- Not marked as main line: treated as a side line; a single side line’s completion does not trigger a separate “all complete” ring.
- When all side lines have completed, trigger a single summary reminder (the README example text is “All side-line tasks completed”).
- If no session is marked as main line (pure side-line mode): trigger a single “All tasks completed”-type reminder after all sessions have ended.
There are two entry points for marking the main line: the “Set as main line” button on the right side of the session title bar, and a compact star icon to the left of the tool row in the input area for new sessions before the first message is sent. Unmarked sessions show a gray star; when marked, it turns into an orange highlighted “main line” state.
Sound and Browser Notifications¶
- Three built-in Web Audio real-time synthesized sound effects: Chime, Success, Subtle; volume is 0–100%, default 70%.
- Optional browser system notifications (Notification API, requires user permission); disabled by default.
- “Also notify for current session” is disabled by default — typically you only need to enable browser notifications when leaving that tab or when you don’t want the current page to interrupt you.
The settings panel is located at Settings → Attention, with the persistent configuration key attention-plugins:config.
UI Injection and Implementation Notes¶
The plugin injects slots into DSH Web via a Cordis patch: conversation.session.header.utilities (main line button in the title bar), conversation.input.left (star icon in the input tool row). The event engine, main line/side line logic, and sound effect parameters are covered by Vitest unit tests within the repo (the README reports all 62 tests passing).
Installation and Activation¶
Environment requirements: DeepSeek Harness ≥ 0.1.6-alpha.1.
The installation method given in the official README is to build locally and then register the Web plugin via a file: path (npm one-click installation is not yet listed; the roadmap includes npm publishing and directory listing as to-dos):
# Install from local
cd /path/to/attention-plugins
pnpm install && pnpm run build
dsh plugin --profile web add file:$(pwd)
# Restart DSH Web
dsh web
Replace /path/to/attention-plugins with the root directory of the repo you cloned or extracted. The build artifacts are generated via tsc and bundle-client.mjs, and then pointed to by dsh plugin --profile web add.
After installation is complete:
- Open Settings → Attention and confirm the global sound switch, volume, browser notifications, and per-event switches.
- Open any session and mark the main line in the title bar or (for a new session) in the input tool row.
- If you need to receive system notifications even when away from the tab, enable browser notifications in the settings and allow the site notification permission in your browser.
Typical Usage¶
Main-line-first multi-task parallelism¶
Start four sessions simultaneously: A marked as the main line, B, C, D as side lines.
A completes → notify immediately
B, C, D each complete → stay silent
All side lines complete → notify "All side-line tasks completed"
Suitable for a workflow where “one main requirement must be followed up immediately, and the rest are auxiliary scans or subtasks.”
Pure side lines, no main line¶
All three sessions are unmarked:
A, B complete → stay silent
C completes (the last one) → notify "All tasks completed"
Suitable for scenarios where a batch of homogeneous tasks is running simultaneously and you only care about “whether all have ended.”
Blocking interactions¶
A session throws a Question or Permission during execution:
→ Notify + Question uses the default Success sound effect
→ User switches back to the tab to answer or authorize
Default mappings such as Question using Success and Completed using Chime can be adjusted per event in the settings.
Use Cases and Notes¶
Who it’s for: Developers or users who frequently open multiple sessions in DSH Web; who need audible / system-level reminders instead of manual refreshing; who are willing to distinguish priorities using “one main line + multiple side lines.”
Things to note before use:
- The plugin is only installed under the Web profile as described in the README; it depends on the DSH 0.1.6-alpha.1+ client injection packages (such as
dsh-client-ui-session,dsh-api-session-controller, etc., seepackage.json’sdsh.client.inject). - The semantics of failure notifications refer to agent loop errors, not every user-visible exception; user aborts do not go through the Failed path.
- Browser notifications and Web Audio are affected by browser policies, tab focus, and audio device switching; the implementation includes cold-start warmup for AudioContext and rebuilding on
devicechange, but it is still recommended to test the volume and routing once in a real multi-device environment. - The roadmap still includes npm publishing, more sound effects, custom audio uploads, etc.; currently installation from GitHub source is the primary method.
If you maintain or fork the plugin, pnpm test in the repo runs the full unit test suite; pnpm run watch is convenient for refreshing and verifying the DSH Web after modifying the client bundle.
Conclusion¶
attention-plugins consolidates “when should I take a look” during DSH multi-session parallelism into four configurable event types, optional browser notifications, and two sets of main line/side line summary logic; both the installation path and configuration options follow the repo README. For further details and English documentation, see the GitHub repository, and for community indexing see the SkillHub directory page.