Introduction

DeepSeek Harness (DSH) uses a plugin-based architecture to modularize functionality. In the Web GUI, quoting AI replies typically requires manual copy and paste, which is cumbersome. dsh-client-ui-quote is a selection-quoting plugin for the DeepSeek Harness Web interface. It lets users select content directly within an AI reply and attach it as a quote banner to the next message.

Core Features

This plugin mainly provides the following capabilities:

  • Selection Toolbar: After selecting text, the toolbar displays a “Quote” button. The button appears after a 50-millisecond debounce, avoiding flickering while dragging the selection. The toolbar automatically hides when the selection disappears, when the Escape key is pressed, or when the page is scrolled.
  • Quote Banner: A removable banner is displayed above the input box, containing the quote symbol, quote text, and a × button. The quote banner is automatically cleared after a message is sent; it can also be cleared by pressing Escape while the input box has focus.
  • Clean Draft: Quoted content exists as a pending attachment and is not directly entered into the input box as text. After sending, focus automatically returns to the input box, making it easier to continue typing.
  • Localization Support: Toolbar labels and quote attribution follow the interface language (Chinese or English).
  • Legacy Rollback Mechanism: For older Harness versions without the input-machine quote attachment feature, the plugin inserts the quoted block at the end of the draft.

Installation and Enabling

Prerequisites:
* DeepSeek Harness Web GUI (dsh web) is installed.
* For full banner behavior, the @deepseek-ai/dsh-client-ui-conversation plugin must support InputActions.setQuote. Older Harness versions automatically fall back to inserting the quote at the end of the draft.

Installation Steps:

dsh plugin --profile web add https://github.com/skyhancloud/dsh-client-ui-quote

After installation, restart dsh web and refresh the browser.

Typical Usage

  1. In an AI reply message, select any text.
  2. Click the “Quote” button that appears above the selected text. The quoted content is displayed as a banner above the input box.
  3. Type your next message and send it. The quoted content appears as an attachment at the beginning of the message:
    > 引用 AI 回复:
    > <选中的行>

    <你的消息>
  1. When you no longer need the quote, click the × button on the banner to remove it.

Use Cases and Notes

  • Use Cases: Suitable for conversational scenarios where you frequently need to quote AI context for follow-up questions or revisions.
  • Note: This plugin runs with the permissions of the current DSH process. Before installing, it is recommended to review its source code and license.

Conclusion

dsh-client-ui-quote simplifies the process of quoting AI replies through a toolbar and banner mechanism while keeping drafts clean. For more details and source code, visit the GitHub repository.