DeepSeek Harness plugin

dsh-quote-zysftd

DSH web plugin: select AI-generated content in chat and quote it into the input box (GitHub-style quote-reply), plus a per-message quote action.

Jump to install

Source facts

Repository
zysftd/dsh-quote
Latest update
Aug 19, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and 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 review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/zysftd/dsh-quote
Plugin: dsh-quote-zysftd
Author: zysftd

Check the source files

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

File explorer3 files
README.mdSource · read only

dsh-quote

DSH(DeepSeek Harness)web 插件:把聊天里的内容引用到输入框。

功能

入口触发方式结果
划选引用选中 AI 回复正文中的文字,点选中处上方的「引用」按钮引用卡片
整条引用已完成 AI 回复操作行的「引用」按钮引用卡片
大文本粘贴输入框粘贴超过 300 字的文本引用卡片,大文本不直接进入输入框

引用卡片显示在输入框内部顶部(标签 + 内容预览 + × 移除),输入框保持干净。发送时引用块(> ...)自动加到消息开头,回车或点发送按钮均可。

安装

任何 dsh 用户都可以从 GitHub 安装:

dsh plugin --profile web add -w git+https://github.com/zysftd/dsh-quote.git

bundle 层的 cordis.patch.yml 自动插入插件行,无需手改 profile 的 cordis.patch.yml。安装/更新后需重启 dsh web,浏览器硬刷新。

卸载:

dsh plugin --profile web remove dsh-quote

结构

dsh-quote/
├── lib/
│   ├── index.js      # host 半(空实现)
│   └── client.js     # client 半(全部功能,无构建)
├── cordis.patch.yml  # bundle 挂载补丁
├── package.json
└── README.md

实现要点

  • Client bundle 通过 window.__ModuleLoader__.load({ id, factory }) 注册(factory 形态 CJS)。
  • 引用卡片嵌在输入框内部:给滚动容器(textarea 最近的有 overflow-y 的祖先)加 padding-top 空出占位行,卡片 fixed 定位落在上面。DSH 的可见文字渲染在镜像层而非 textarea 本身,所以不能只改 textarea 的 padding。
  • 发送注入分两条路径:发送按钮包装 inputActions.submit;回车路径被绕过,用 capture 阶段 keydown 监听拦截,注入后调用 inputActions.submit()
  • 划选引用只认 AI 回复正文:选区两端必须落在 data-chat-flow-kind="assistant-step" 行内、且不在 data-variant="think" 思考折叠块内(该守卫有单元测试 test/selection.test.mjs)。
  • 颜色用 DSH 主题 token(--dsw-alias-*),无硬编码颜色。
  • 纯 client:无网络请求、无文件读写、无持久化,只通过 InputActions.setDraft 写草稿。

已知限制

  • 划选引用只对 AI 回复正文生效:用户消息、工具调用卡片、思考过程(data-variant="think")以及界面其它部分都不可划选引用。
  • 页面 user-select: none 的内容选不中。
  • 大文本粘贴阈值固定 300 字(PASTE_QUOTE_THRESHOLD)。
  • 草稿以 / 开头(斜杠命令模式)时回车不拦截,引用不会注入。
  • 引用块是纯文本 markdown。

许可

MIT