dsh-quote-sidechat: DeepSeek Harness Quote Fragment and Side Question Plugin

When working with long conversations in DeepSeek Harness, excerpting snippets from historical replies to continue the conversation is a common need. Manual copy-paste often leads to context loss or format corruption. The dsh-quote-sidechat plugin solves this pain point by floating a native toolbar when text is selected, writing the quoted content as an atomic node into the input box, or directly launching a side-bar question.

This plugin is maintained by panando and categorized as a client-side plugin. It primarily addresses the problems of “how to precisely quote historical replies” and “how to quickly start a new thread using snippets.” Through the quote pipeline provided by the host, it converts selected text into quote nodes that can be deleted as a whole or clicked to jump to the source, or directly opens a new conversation in the sidebar.

Core Features

Atomic quote chip

When you select text and click “Add to conversation,” a quote chip is generated in the input box instead of scattered plain text. This chip is an atomic node of the host and supports whole-item deletion. Clicking the chip scrolls the page to the original source and briefly highlights it. When submitting the conversation, the chip expands into a structured quote block, so the model can clearly distinguish between quoted content and user input.

Side-bar question

Clicking “Side-bar question” sends the selected snippet to the right sidebar (requires dsh-better-sidebar to be installed). Since the sidebar input box does not support chip rendering, the plugin converts it into quote text with structured boundaries, ensuring correct Markdown formatting.

Copy & diagnostics

One-click copy of the original text is supported. Developers can run diagnostic commands via DevTools to check the status of the quote pipeline.

JSON.stringify(window.__dshQuoteSideChat.probe(), null, 2)

Installation & Configuration

There are two installation methods:
1. Add the package to the profile’s dsh.profile.bundles and install dependencies.
2. Install directly via the plugin manager.

The plugin is a browser extension and defines the Loader entry through cordis.patch.yml.

Configuration is stored in the browser’s localStorage under the key dsh.quote-sidechat.v1. Common configuration options are as follows:

Field Default Description
enabled true Master switch
format 'auto' Quote block text format: auto (fenced for code blocks / blockquote for others), quote, fenced, plain
referenceMode 'chip' Reference mode: chip = atomic node; quote = plain-text quote block
attribution false Whether to append source attribution after the quote
minChars 2 Minimum character count to trigger the toolbar

If the host lacks a quote pipeline or the write is rejected (session busy / draft version changed), the plugin automatically degrades to plain-text insertion with a prompt, without silently dropping content.

Typical Usage

  1. Select text in the conversation body.
  2. A toolbar pops up; click “Add to conversation,” and a quote chip appears in the input box.
  3. Click “Side-bar question,” and a new thread opens in the right sidebar containing the quoted text of that snippet.
  4. Click the chip in the input box to scroll the body to the corresponding turn.

Technical Implementation & Notes

The plugin relies on interfaces provided by the host for development, including registering a quote source, materializing atomic chips, and serialization on submission. Quote information is encoded in a ref string (format: q2|<base64url({ t: model text, s: session id, n: turn })>), and can be restored after a page refresh.

The plugin has zero side effects; when no text is selected, there is no visible DOM on the page. The toolbar will not appear when selection is within the input box, the selection is invalid, only whitespace is selected, the character count is below minChars, a submission is in progress, the plugin is disabled, or the context is outside the conversation body.

Before use, ensure that dsh-better-sidebar is installed to enable the side-bar question feature.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye