DeepSeek Harness 插件

dsh-task-notify-linxin

Task-completion reminder for DeepSeek Harness: in-page toast, OS notification, and sound when an agent turn or background job finishes(英文原文)

跳到安装方式

来源信息

GitHub 仓库
ltao0829/dsh-task-notify
最近更新
2026年8月20日
分类
通知与集成
GitHub stars
7
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/ltao0829/dsh-task-notify
插件名:dsh-task-notify-linxin
作者:ltao0829

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-task-notify

Lifecycle notification layer for AI coding agents, currently supporting DeepSeek Harness.

![CI](https://github.com/ltao0829/dsh-task-notify/actions/workflows/ci.yml) ![npm version](https://www.npmjs.com/package/@ltao0829/dsh-task-notify) ![License: BSD-3-Clause](./LICENSE)

AI coding agents increasingly run long-lived, autonomous tasks: a turn can take minutes, and the human has usually moved to another window. This project adds the missing notification layer on top of an agent's task lifecycle, so the moment an agent completes, fails, settles a background job, or starts waiting for a human (approval / plan review / question), you get an in-page toast, an OS-level desktop notification, and an optional sound.

> Inspired by Codex's desktop-notification UX — not a Codex integration. Not affiliated with or sponsored by OpenAI. Today the project ships as a DeepSeek Harness (DSH) plugin. Its lifecycle-detection core is host-agnostic and is designed to grow into adapters for other coding agents.

Why this exists

Long-running agent tasks invert the normal attention model: instead of watching a terminal, users submit a task and switch away. UI-only status indicators (a spinner in a background tab) fail exactly when they matter most — when the user is not looking. dsh-task-notify turns lifecycle transitions into interruptible, OS-level signals, closing the feedback loop between an autonomous agent and a distracted human.

Demo

> Placeholder — replace with short recordings (GIF or MP4, ~10–30 s each). See [docs/demo-guide.md](./docs/demo-guide.md).

Turn completedApproval requiredBackground job failed
![Turn completed](docs/demo-turn.gif)![Approval required](docs/demo-review.gif)![Job failed](docs/demo-failure.gif)

Features

  • Turn completion — fires when an agent turn (thinking or tool use) finishes.
  • Background job — fires when a background command or subagent job settles (completed, failed, killed).
  • Review needed — fires when a running task waits for approval, plan review, or a question answer.
  • Failure — fires when an agent turn errors or a background job fails / is killed.
  • Three channels — OS-level browser notification, in-page toast, optional two-tone beep.
  • Per-event config — every trigger and channel can be toggled independently.

Install

Prerequisites: Node.js and pnpm.

# npm (recommended)
dsh plugin --profile web add @ltao0829/dsh-task-notify

# or from Git
dsh plugin --profile web add git+https://github.com/ltao0829/dsh-task-notify.git

Restart dsh web and refresh the page. On the first click/keypress the browser asks for notification permission — allow it to receive desktop notifications.

Configuration

The settings card lives in the plugin section of DSH's settings UI. Values are stored locally in localStorage (dsh.taskNotify.v1):

ToggleDefaultMeaning
Enable remindersonmaster switch
Turn completiononan agent turn finishes
Background jobona background command / subagent job settles
Review neededona running task waits for approval / plan review / question
Failureona turn errors or a job fails / is killed
Browser notificationonalso send an OS-level notification (needs permission)
Soundoffalso play a short beep

Architecture

              coding agent
                   │
                   ▼
     host adapter  (DeepSeek Harness today;
                   Claude Code / Codex / OpenCode later)
                   │
                   ▼
   sessions snapshot (N-1 vs N)
                   │
                   ▼
   lifecycle detector  ──►  events: turn | job | review | failure
                   │
                   ▼
   notification dispatcher
         │          │          │
         ▼          ▼          ▼
       OS          toast      sound
   notification

The detector (src/detect.ts) is a pure function: a snapshot goes in, lifecycle events come out. It knows nothing about DSH or the DOM, which is what makes additional coding-agent adapters a matter of implementing a new snapshot provider rather than rewriting the notification core.

  • The first snapshot only establishes a baseline — refreshing the page never replays history.
  • src/detect.ts is host-agnostic (plain data in / plain data out) and is unit-tested in isolation.

Project layout

src/index.ts                         host half — registers the settings section
src/detect.ts                        pure lifecycle detector (snapshot diff)
src/client/index.ts                  browser half — watcher + failure watcher
src/client/notify.ts                 toast / OS notification / sound
src/client/settings.ts               localStorage-backed settings store
src/client/TaskNotifySettingsCard.tsx settings UI card
tests/*.spec.ts                      detector, settings, notification, lifecycle tests

Security & Privacy

  • No external server, no cloud backend.
  • No telemetry, no analytics, no tracking.
  • No API key required.
  • Notifications are generated locally in the browser.
  • Settings are stored locally in localStorage only.
  • The plugin does not upload or exfiltrate conversation content.

The plugin runs with the permissions of your DSH process, like any other DSH plugin.

Roadmap

Current

  • [x] Turn-completion notifications
  • [x] Background-job notifications
  • [x] Approval / plan-review / question notifications
  • [x] Failure notifications
  • [x] OS notification + toast + sound
  • [x] npm distribution (@ltao0829/dsh-task-notify)
  • [x] CI/CD (typecheck + test + build + pack dry-run)

Near term

  • [ ] npm download metrics / adoption tracking
  • [ ] Cross-platform notification backend
  • [ ] Notification customization
  • [ ] Better test coverage

Long term

  • [ ] Agent-agnostic lifecycle API
  • [ ] Additional coding-agent adapters (Claude Code, Codex, OpenCode, …)
  • [ ] Reusable notification core

Related projects

  • dsh-launcher — one-click launcher for DeepSeek Harness Web.

Together these form a small suite of tooling for AI coding-agent workflows.

Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md).

Development

pnpm install
pnpm run typecheck
pnpm test
pnpm run build

License

[BSD-3-Clause](./LICENSE)