返回目录

dsh-annotation

编辑精选维护状态: 活跃

omdsh-dev/dsh-annotation

DSH Web 选中批注插件:选文字→批注→回车随消息发送;气泡隐藏批注块(零闪烁);回复按 Annotation N 逐条对照(可悬浮芯片)。官方 bundle,零核心改动

前往 GitHub项目主页
$ dsh plugin --profile web add @changfenhuang/dsh-annotation

112

星标

7

Fork

HTML

语言

MIT

许可证

2026-08-10

创建于

2026-09-07

最近推送

MIT 协议、面向 Web UI 的原生 DSH bundle 外掛:选中助手文本、inline 批注,得到编号式逐段回覆——批注块从你自己的消息气泡中隐藏。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-08-25

许可证

MIT

01它能帮你完成什么?

  • 在 DSH Web 中对任意助手回覆做批注,并让模型按编号逐条回应

    可悬浮的 `Annotations ×N` 芯片,以及编号式 `Annotation N:` 回覆;批注块不会出现在你自己的气泡中(零闪烁)

    希望在模型回答上做逐段inline反馈、又不想让对话变乱的 DSH Web 用户

  • 建立一条跨轮次的批注线索,让模型持续带着上下文

    批注跨消息 / 轮次累积,并在你下一次提问时作为编号块一并发送

    在单个长线程里反复迭代的研究者、审阅者与重度用户

02如何接入 DeepSeek Harness?

前置条件

  • 已具备 DeepSeek Harness 的 Web profile(`dsh plugin --profile web`)—— README 说明这是唯一受支持的安装路径
  • DSH Web 服务正在运行,因为插件透过 client-modules 注入浏览器

安装步骤

  1. 01

    执行 `dsh plugin --profile web add @changfenhuang/dsh-annotation`(公开 npm 包,无需 npm 账号)

    $ dsh plugin --profile web add @changfenhuang/dsh-annotation

  2. 02

    或从源码安装:`dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-annotation.git`

    $ dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-annotation.git

  3. 03

    重启 Web 服务(launchctl / systemctl / 强制刷新),让新的 client.js 被加载

验证接入成功

  • 执行 `dsh --profile web --dump-config | rg "id: dsh-annotation"` —— 必须恰好只有 1 行
  • 执行 `curl -s -o /dev/null -w '%{http_code}\n' "http://127.0.0.1:3080/plugins/@changfenhuang/dsh-annotation/client.js"` —— 期望返回 200

03DSH 适配与能力边界

DSH 适配原生运行时

官方 DSH bundle 外掛,透过 `dsh plugin add` 以 client-modules 注入 DSH Web 浏览器,对 DSH 核心零改动。

  • 选中即批注

    选中的助手回覆文本(批注正文可为空)蓝色编号标记 + 高亮,锚定在原文段落上,带碰撞避免

  • Annotations ×N 芯片与跨轮次收集

    跨消息 / 轮次的任意数量批注输入框旁的芯片;悬浮可查看 / 逐条删除每个批注

  • 零闪烁气泡隐藏

    你的消息加上批注块气泡中只显示问题 + 芯片;批注块在绘制前被移除

    在微任务阶段(绘制前)透过 MutationObserver 修改你消息气泡的 DOM
  • 编号式回覆对应

    注入的格式指令加上你的问题模型回覆 `Annotation 1:` … `Annotation N:`,每条渲染为可悬浮芯片

04适合谁?何时不该用?

适合

  • 希望在模型回答上做逐段inline反馈、又不想让对话变乱的 DSH Web 用户
  • 在单个长线程里反复迭代的研究者、审阅者与重度用户

不适合

  • 不要手动把插件 id 再次写入 profile / home 的 `cordis.patch.yml` —— 插件自带该条目,重复 id 会导致加载失败。只需 `dsh plugin add` 或写入 `bundles` 即可。

05兼容性、维护与安全提示

  • 不要手动把插件 id 再次写入 profile / home 的 `cordis.patch.yml` —— 插件自带该条目,重复 id 会导致加载失败。只需 `dsh plugin add` 或写入 `bundles` 即可。
  • 插件纯浏览器端:所有逻辑都在 `client.js`(手写 CJS 包,无构建步骤,按请求无缓存提供)中,Node 端是空实现,因此除了 `dsh plugin add` 之外没有服务端动作。
2026-08-102026-08-25作者未说明

MIT · 维护中(无标记发布)

06常见问题

怎么把 dsh-annotation 装进 DeepSeek Harness?

走唯一受支持的路径:`dsh plugin --profile web add @changfenhuang/dsh-annotation`(公开 npm 包,无需账号),或 `dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-annotation.git` 从源码安装。它是官方 bundle 外掛,透过 client-modules 注入浏览器,对 DSH 核心零改动。

批注块会出现在我自己的消息气泡里吗?

不会。批注块在你发送的那一刻、浏览器绘制前就从气泡 DOM 中移除——只剩你的问题加芯片(悬浮可见),因此没有闪烁。

模型怎么处理多条批注?

消息中会注入一条格式指令,让模型逐条回覆 `Annotation 1:` … `Annotation N:`,与你的编号批注一一对应。回覆里每个 `Annotation N:` 标签都会变成可悬浮芯片,展示被批注的原文与你的笔记。

批注能跨轮次保留吗?

可以。任意数量的批注会跨消息 / 轮次累积,从 1 开始编号,并在你下一次提问时作为编号块一并发送。该插件在 dsh-focus-chat 的聚焦对话视图中同样可用。

08数据与来源

  • 作者声明github.combc4d7926d0e2…

    official **bundle plugin** (`dsh.bundle` + a `dsh.client` declaration in package.json, injected into the browser via cli…

  • 作者声明github.combc4d7926d0e2…

    **Zero core changes** — no DSH files are touched; `cordis.patch.yml` only inserts its own id once, and the profile patch…

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-25。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。