DeepSeek Harness Plugin

pingg02/dsh-plugins#dsh-quote-selection

Stars ★ 1 Category UI Enhancements Added 2026-08-21

Lets users quote selected conversation text with optional notes, then attaches the references to their next message.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:pingg02/dsh-plugins#path:/dsh-quote-selection

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

DeepSeek Harness Web GUI 插件:引用任意选中的文本,附带你自己的备注,并以 编号卡片显示在输入框上方;发送消息时自动附带引用内容。

安装

dsh plugin --profile web add dsh-quote-selection

包声明了 dsh.bundle(自动加入 bundle 层)+ dsh.client(网页客户端), dsh plugin add 后下次页面加载即生效,重启后端也不会丢。

功能

  • 任意位置划选文本(助手/用户消息、代码块、工具结果)→ 选中处浮出「引用」按钮
  • 点击后弹窗可写备注("为什么引用这段")
  • 引用以编号卡片显示在输入框上方,可逐条移除或一键清空
  • 助手消息操作条上的「引用」按钮可整条引用
  • 发送时以 Markdown 引用块附带选中文本和备注;多行内容的每一行都会保留为引用

使用限制与数据处理

  • 插件忽略输入框、备注弹窗和插件自身控件中的选择,避免误把正在编辑的内容加入引用。
  • 单条引用最多 12,000 个字符,超出时不会显示「引用」按钮;请缩小选择范围后重试。
  • 待发送的引用只保存在当前浏览器页面的内存中;发送前不会写入文件或发送到网络,页面刷新、取消引用或 发送消息后会清除。

开发说明

  • 纯手写客户端 bundle(client/client.js),遵循 harness 的 window.__ModuleLoader__.load({ id, factory }) 契约,零构建步骤、零依赖。
  • 引用存在时插件接管 composer:草稿只保存你正在写的内容,发送时才附加引用块;取消引用后会恢复 harness 的默认输入条。

排错

  • 看不到「引用」按钮:确认页面已在安装后重新加载,并选择普通消息、代码块或工具结果中的文本。
  • 引用没有发送:检查输入框上方的引用卡片;可以逐条移除,或点击「取消引用」回到默认输入条后重试。

发布

cd dsh-quote-selection
npm login
npm publish

若包名被占用,改用自己的 scope(@<your-name>/dsh-quote-selection),并保持 cordis.patch.yml 中行的 name 与包名一致。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.