DeepSeek Harness 插件

dsh-annotator

DSH conversation annotator: select transcript text, attach a note in a popup, then send the compiled quote+note pair through the composer.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
cw1999mm/dsh-annotator
最近更新
2026年8月18日
分类
文档与渲染
GitHub stars
0
载体类型
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/cw1999mm/dsh-annotator
插件名:dsh-annotator
作者:cw1999mm

检查来源文件

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

文件资源管理器4 个文件
README.zh-CN.md来源说明 · 只读预览
README 语言

dsh-annotator

English | 中文

DSH(DeepSeek Harness)社区插件:给对话记录加注释。在会话里划选任意文本,点击浮出的 Annotate 按钮,写上备注——点击发送箭头会把引用(blockquote)和备注编译后直接通过 composer 发出。

功能

  • 划选对话文本 → 选区下方出现 Annotate 浮标。
  • 只有整段都在聊天记录([data-chat-flow])内的选区才会出现浮标;拖出记录区的划词会被忽略。
  • 弹窗展示引用原文和备注输入框(⌘/Ctrl + Enter 发送)。
  • 点击发送箭头会把 > 引用文本 + 备注编译后直接通过 composer 发出。
  • 界面文案为英文。
  • 清理全部走 ctx.effect,卸载时不会留下全局监听。

要求

  • DeepSeek Harness 的 web profile(profile 名称任意;下文示例用 web)。

安装

仓库已提交编译好的 lib/,安装不需要构建步骤。

方式 A — tarball

cd dsh-annotator
npm pack                        # → dsh-annotator-0.1.0.tgz
dsh plugin --profile web add ./dsh-annotator-0.1.0.tgz

方式 B — git(安装最新版)

dsh plugin --profile web add github:cw1999mm/dsh-annotator

然后重启(或刷新)Web UI。插件会作为 dsh-annotator 组合包层加载;卸载:

dsh plugin --profile web remove dsh-annotator

手动 / 开发安装

把包 link 进 profile 的 node_modules,并加上组合包行:

# 在 profile 目录下(例如 ~/.dsh/profiles/web)
pnpm add link:<本项目的绝对路径>

然后在该 profile 的 cordis.patch.yml 末尾追加:

- insert:
    - id: dsh-annotator
      name: dsh-annotator

用法

1. 在聊天记录里拖选一段文字。 2. 点击浮出的 Annotate 按钮。 3. 写备注并点击发送箭头(或按 ⌘/Ctrl+Enter)——消息 > quoted text\n\nnote 会编译后直接发出。

开发

src/ 是 TypeScript 源码;lib/ 是提交进仓库的构建产物。

类型检查需要 DSH 的 client 类型包。附带的 tsconfig.json 通过 paths 指向旁边的 deepseek-harness checkout(开发时的目录布局);请改成你自己的路径:

pnpm typecheck   # tsc -p tsconfig.json (noEmit)

重新构建 lib/(浏览器 bundle)使用包含 client 包的 DSH 仓库里的 tsdown 工具链;已提交的 lib/client.js 是运行时的权威产物。

许可证

[MIT](./LICENSE) © 2026 cw1999mm