dshbase

插件目录 / Developer / dsh-turn-reminder

dsh-turn-reminder

已验证 · 实测可装 SipengXie2024

✓ 持续维护 基于 5 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

User-attention notifications for DeepSeek Harness (dsh) web: turn end, approval requests, and model questions — in-page toast + OS-level browser notification

✅
我们的评价
可用 — 实测通过,早期项目

User-attention notifications for DeepSeek Harness (dsh) web: turn end, approval requests, and model questions — in-page toast + OS-level browser notification 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-turn-reminder

中文说明

User-attention notifications for DeepSeek Harness (dsh) web. Whenever a session blocks waiting for you, this plugin reminds you: an in-page toast while the page is visible, an OS-level browser notification while the page is hidden (click it to jump back; falls back to the toast when the system channel is unavailable).

What it watches

Channel Trigger Notes
turnEnd agent/status event, running → idle A turn finished and the session waits for input. Blocked goals and errored turns end the turn, so they are covered transitively.
approval approval/request waterfall (pass-through listener) Tool approvals, sandbox escalations, etc. These block mid-turn — the agent never goes idle, so a turn-end watcher alone misses them.
question tools/pre-execute waterfall, filtered on ask_user_question (pass-through listener) The model asks you a question; also blocks mid-turn.
plan tools/pre-execute waterfall, filtered on exit_plan_mode (pass-through listener) The model presents a plan for review. The review panel opens inside the tool call, so this also blocks mid-turn — earlier versions wrongly assumed turnEnd covered it.

Notification bodies carry detail: approvals show the tool name plus the asker's reason, questions show the first question's text, plan reviews show the plan's first markdown heading (all clipped at 60 chars). Counters are per session, so multiple tabs each remind only about their own session.

Usage

A 🔔 control sits at the right end of the composer tool row. Click it once to grant the browser Notification permission (browsers require a user gesture; the permission persists per origin). The in-page toast dismisses itself after 8 seconds, or on click.

Build & install

npm install
npm run build          # tsc (host half) + tsdown (client closure-factory bundle)
npm pack               # produces dsh-turn-reminder-0.1.0.tgz
dsh plugin --profile web add dsh-turn-reminder-0.1.0.tgz

Then restart dsh web — bundle plugin rows load at boot. After that it serves every session automatically.

How it works

  • Host half (bundle layer): listens to agent/status / approval/request / tools/pre-execute (ask_user_question and exit_plan_mode) across all agents, keeps per-session counters per channel, and exposes them through a Typert Remote service turnReminder/poll (agent-scoped; the wire argument agentId is the session id).
  • Client half: registered into the session-scoped conversation.input.right slot, whose standard props carry sessionId — that is how the page knows which session to poll. Polls every 1.5 s; on a counter increment, fires the toast or a system Notification (per-channel tags so different kinds don't replace each other).
  • Both waterfall listeners are pass-through (return next()); they observe, never decide.

Notes

  • Counters only cover events after the plugin loaded; they reset on process restart, and the first poll only records a baseline (no catch-up reminders for history).
  • Tested against dsh 0.1.0-rc.6. Reinstalling from a local tarball needs a version bump (pnpm dedupes same name+version and keeps the old build).

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-turn-reminder」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:SipengXie2024/dsh-turn-reminder

Headless(CLI)profile:

dsh plugin --profile headless add github:SipengXie2024/dsh-turn-reminder

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →