插件目录 / Knowledge / dsh-web-attention-badge-enhanced
dsh-web-attention-badge-enhanced
已验证 · 实测可装 nbfys
功能简介
DSH Web attention badge (fork): [Waiting]/[Done] tab title, current-session done tracking, acknowledged reminders. MIT, based on Luaphes/dsh-web-attention-badge
可用 — 实测通过,早期项目
DSH Web attention badge (fork): [Waiting]/[Done] tab title, current-session done tracking, acknowledged reminders. MIT, based on Luaphes/dsh-web-attention-badge 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-web-attention-badge (enhanced)
Fork with customizations. This repository is a modified copy of
Luaphes/dsh-web-attention-badge
(MIT, © Luaphes). All original behavior is preserved; the deltas are
documented below under Custom modifications.
Attention reminders for the DeepSeek Harness Web UI. Whenever a session needs
you, three surfaces light up at once: a (1)-style badge in the top-left of
the frame, a [Waiting]/[Done] prefix in the browser tab title, and a
recolored whale favicon.
- Amber — sessions waiting for your input (
ask_userquestion, approval
prompt, plan-mode review). Tab title shows[Waiting]. - Green — sessions that finished while you were away and have not been
opened yet, plus the currently-selected session right after its turn ends
(running → idle). Tab title shows[Done].
All three share the same counts from the built-in sessions store — no host
code, no extra transports. The badge is click-through and never blocks the
sidebar.
Custom modifications
Relative to upstream v0.3.2 (all changes are inside lib/client.js):
[Waiting]/[Done]tab-title prefixes instead of the upstream(N)count.[Waiting]when any session awaits user input (top priority),
else[Done]when any completion reminder exists.- Current-session completion tracking (
currentDoneIds/prevRunningById):
the hostcompletedflag only arms for non-selected sessions, so the
selected session's running→idle edge is mirrored here — you now get[Done]
for the session you are actively watching. Cleared on a new running edge or
when the session stops being current (the host takes over). - Acknowledged reminders (
acknowledgedDone): the hostcompletedflag
only clears on a new running edge, so returning to a finished session would
leave a stale[Done]. Visiting the session now marks its reminder as seen
— it stays hidden until the next running edge resets it.
Install / tuning / license are identical to upstream (see below).
Install
dsh plugin --profile web add dsh-web-attention-badge
Or install straight from GitHub:
dsh plugin --profile web add "github:Luaphes/dsh-web-attention-badge#v0.3.1"
Upgrade / uninstall:
dsh plugin --profile web update dsh-web-attention-badge
dsh plugin --profile web remove dsh-web-attention-badge
dsh plugin registers the bundle automatically — no manual config.
Tuning
Constants at the top of lib/client.js:
TAB_TITLE_ENABLED— the[Waiting]/[Done]browser tab title prefix.FAVICON_ENABLED— the whale-favicon recolor.- Pill colors/position — the
stylemaps inAttentionBadge/Pill.
Bundle edits apply on a page refresh; manifest edits need a dsh web
restart.
License
MIT — original work © Luaphes; this fork's modifications are
licensed under the same MIT terms. See the upstream repository for the
original copyright notice.
Development
See CONTRIBUTING.md for layout, release and publishing.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-web-attention-badge-enhanced」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:nbfys/dsh-web-attention-badge-enhanced Headless(CLI)profile:
dsh plugin --profile headless add github:nbfys/dsh-web-attention-badge-enhanced 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。