DeepSeek Harness plugin

dsh-quote-selection

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

Jump to install

Source facts

Repository
pingg02/dsh-plugins
Latest update
Aug 21, 2026
Category
UI Enhancements
GitHub stars
0

Install

Start with a prompt that asks an agent to read the source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to read the page and repository first.

Do not install anything yet. Read this DeepSeek Harness plugin and explain what it does, which files, networks, or credentials it can access, and how to install and remove it.

Plugin page: https://deepseekplugins.org/plugins/pingg02/dsh-plugins~23dsh-quote-selection
GitHub: https://github.com/pingg02/dsh-plugins/tree/main/dsh-quote-selection
Plugin: dsh-plugins#dsh-quote-selection
Author: pingg02
Install command: dsh plugin --profile web add github:pingg02/dsh-plugins#path:/dsh-quote-selection

Do not run the install command until I confirm.

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-quote-selection

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 与包名一致。