跳到正文

omdsh-dev/dsh-annotation

573最近提交 2026年8月16日

dsh-annotation DSH 插件

dsh-annotation 是一个面向 DSH Web 的浏览器端插件,允许你在助手回复中选择任意文本,添加批注(或留空),然后按 Enter 将批注块与你的问题一同发送。模型会按编号回复,每条批注标签在回复中变为可悬停的芯片,显示原文和你的笔记。批注块不会出现在你的消息气泡中,保持对话整洁。

如何安装 dsh-annotation DSH 插件

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

复制不会执行命令。安装 dsh-annotation DSH 插件前请核对仓库和版本。

dsh-annotation DSH 插件数据来源

dsh-annotation DSH 插件快照日期:2026年8月16日

discovered

dsh-annotation DSH 插件能做什么

  • 选择即批注:选中助手文本,点击工具栏“批注”,写下笔记或留空;点击其他地方或按 Esc 取消。
  • 编号标记 + 高亮:蓝色编号标记和高亮锚定在原文上,视口锚定并避免碰撞,滚动出视图时不会丢失。
  • 跨轮次累积:批注跨消息和轮次累积,从 1 开始编号。
  • “批注 ×N”芯片:输入框旁显示的小芯片,悬停可查看所有批注,可单独删除。
  • Enter 发送批注与消息:批注块和你的问题一起发送;发送后批注块在你的气泡中被隐藏,只留下问题和芯片。
  • 编号回复对应:注入格式指令,使模型按“Annotation 1:…”至“Annotation N:…”逐一回复。
  • 回复批注芯片:回复中的“Annotation N:”渲染为可悬停芯片,显示原文和你的笔记。

dsh-annotation DSH 插件适合哪些场景

  • 审阅长 AI 回复时,批注特定段落并逐一追问。
  • 标记回复中的错误或有趣点,发送跟随问题引用这些批注。
  • 协作调试:高亮助手回复中的代码片段,要求模型逐一修复。
  • 结构化批评:对助手输出进行编号批评,获得编号回复。

dsh-annotation DSH 插件适合谁

  • 经常与 AI 模型交互、需要精确引用上下文的 DSH Web 用户。
  • 希望在不重打原文的情况下,对长回复的特定部分提出追问的高级用户。

dsh-annotation DSH 插件的限制

  • 仅支持 DSH Web 的“web” profile,其他 profile 不适用。
  • 需要 DSH 已安装并运行,且必须通过官方 bundle 路径添加插件。
  • 批注块的分隔符硬编码为“提问:”,无法在不修改源码的情况下更改。
  • 气泡隐藏依赖 MutationObserver 和轮询回退,极少数边缘情况下批注块可能短暂闪烁。

dsh-annotation DSH 插件的仓库 README 摘录

以下文字摘自 dsh-annotation DSH 插件的上游仓库 omdsh-dev/dsh-annotation 的 README,版权归原作者,仅作引用。

**English** · [简体中文](./README.zh-CN.md) </div> <p align="center">Selection-annotation plugin for DSH Web: select text → annotate → press Enter to send it along with your message; the model replies to each annotation by number.</p> <p align="center"> <img src="https://badgen.net/badge/license/MIT/blue" alt="license"> </p> <img width="2940" height="1770" alt="image" src="https://github.com/user-attachments/assets/c3186efc-44d3-4e7f-9523-1902d9d037e9" /> <img width="2940" height="1770" alt="image" src="https://github.com/user-attachments/assets/0b48ac02-4648-4b94-8d8f-344f8b7c25b4" /> <img width="2940" height="1770" alt="image" src="https://github.com/user-attachments/assets/8b2610d0-3d00-41be-b314-bac2fe616787" /> <img width="2940" height="1770" alt="image" src="https://github.com/user-attachments/assets/9b66deea-3786-4296-9b0d-52873a15f5e1" /> Select any text in an assistant reply to annotate it (the annotation body may be left empty = just mark the passage). Annotations accumulate across messages and turns. An **Annotations ×N** chip appears next to the input box — hover to view all annotations, remove them one by one. Press Enter and the annotation block goes to the model to

阅读完整 README仓库许可: MIT

dsh-annotation DSH 插件常见问题

如何安装 dsh-annotation?

在终端中运行 `dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-annotation.git`,然后重启 Web 服务(例如 `launchctl kickstart -k "gui/$(id -u)/com.dsh.web"`)。安装后可使用 `dsh --profile web --dump-config | rg "id: dsh-annotation"` 验证,确保只出现一行。

能在手机上使用 dsh-annotation 吗?

该插件是为 DSH Web 桌面浏览器环境设计的,README 未提及移动端支持,且交互依赖鼠标选择和键盘 Enter,因此很可能不适用于移动触屏。

批注块会保留在我的消息历史中吗?

不会,批注块在浏览器渲染前会从你的消息气泡中移除,因此气泡中不会显示批注文本。刷新后历史消息会自动修复,芯片重新出现。模型会收到完整的批注块,但你的气泡只显示问题和芯片。

如果模型不按编号回复怎么办?

插件会在消息中注入格式指令,要求模型以“Annotation 1:…”到“Annotation N:…”的格式回复。大多数模型会遵循这个指令。如果模型忽略,回复芯片不会渲染,但批注内容仍然发送了。你可以检查原始消息确认指令是否存在。

发送前如何删除某条批注?

将鼠标悬停在输入框旁的“批注 ×N”芯片上,弹出窗口会显示所有批注,每条批注旁边都有删除按钮,点击即可单独删除。或者,你也可以不按 Enter,批注会保留在芯片中,直到你按 Enter 才发送。