dsh-quote-reply: Convert selected paragraphs into a "quote layer" and inject them into the model context in the next turn.

Introduction

When conducting multi-turn conversations with models in DeepSeek Harness (DSH), a common practice is to copy a small section of the assistant’s response, paste it into the input box, and then ask a follow-up question. However, mixing quotes with your own speech in a single draft makes it difficult to distinguish the original text from the question later, nor is it convenient to manage multiple citations collectively.

The community plugin dsh-quote-reply (maintained by liuhaolong16) turns “quoting” into an independent layer above the input box (in the same area as “Target” and “Queue”). Selected content enters the “Quote (N)” floating window and is sent to the model as context in the next turn, without entering the body of the message you send. After the turn ends, you can expand Quote (N) at the end of the conversation to review it. The following section introduces its positioning, capabilities, and installation/usage instructions. The plugin is categorized as a Client; its entry can be found on the SkillHub directory page. For source code and documentation, see the GitHub repository (The README indicates package version v0.9.0; functional descriptions in this text are based on the README and package.json).

What is This

In one sentence: A Quote Reply Layer—select a segment (or the entire response) on an assistant message and click “Quote Reply”. The content enters an editable quote line above the input box. When you send the next sentence, the quote is injected into the model via host-side pending and systemPrompt.context (README testing confirms ## User Current Quote... appears in the context). Once used, the pending state is cleared. On the interface, an expandable Quote (N) is displayed under that turn.

Unlike “stuffing quotes into the input box”: starting from v0.2, quotes are separated from the main text. The floating window allows folding, deleting items one by one, or clearing all. It retains Insert Single Item / Insert All into Input Box as a temporary escape hatch (note that sending after insertion will include them in the body text; please weigh this yourself).

Core Features

Interaction Flow

  1. Select a passage of text within a completed assistant response (if no text is selected, clicking Quote Reply will quote the entire response and prompt “No text selected, the entire response has been quoted”).
  2. Click “Quote Reply” in the action row of that response (located in the same area as feedback and jump buttons; README specifies the slot conversation.chat.assistant-actions with order = 30).
  3. The “Quote (N)” floating window appears or updates above the input box, with entries listed as Quote 1, Quote 2, etc.
  4. Write your question in the input box and send: Quotes do not enter the message body; they are sent as model context for the next turn. The floating window allows expanding, deleting, or clearing.

The end-to-end chain recorded in the README (2026-10-15): Client → POST/GET /quote-reply/quotes → Host pending → systemPrompt.context → Model.

Client vs. Host Responsibilities

  • Client Side (lib/client.js): Floating window slot conversation.input.dock (order = 30), quote button on assistant messages; a module-level Map stores quotes by sessionId for sharing between the two slots.
  • Host Side (lib/index.js): Registers HTTP routes and health checks; GET /quote-reply/health returns 200 indicating the host side is loaded. Restarting the DSH host process is mandatory after modifying the host side; simply refreshing the page will not reload the host side (enabling/disabling or uninstalling/reinstalling follow the same rule). After modifying the client side, execute plugin_manager set_bundle enabled=true target=dsh-quote-reply and refresh the page.

package.json documentation also includes localStorage persistence and Host/Client version handshake; specific fields are subject to the implementation in the repository.

Implementation Notes (For Users and Developers)

  • The “Quote Reply” button requires preventDefault() in onMouseDown; otherwise, pressing it will collapse the selection first, making it impossible to capture the selected paragraph.
  • The host’s apply function is designed to never throw errors during the process to avoid interrupting DSH startup; the README requires running a preflight check before modifying the host side (see below).

Explicitly Not Done (README Boundaries)

  • No Auto-Send: Whether to send and how to modify the draft is up to you (README “Next Phase” mentions that dedicated buttons for “Send and Quote” are not yet implemented).
  • No Unselected Content: The quote block only contains the selected segment (overly long content will be truncated and marked with the original length).
  • If using the “Insert into Input Box” escape path and the insertion fails (due to draft version changes, etc.), the quote is retained and a Copy Retained Quote option is provided; it is not silently discarded.

Installation and Activation

Installation must go through the official DSH plugin entry; the example provided in the README is a local bundle link (please replace it with the actual path on your machine):

dsh plugin --profile desktop add link:E:\DeepSeek\skills\quote-reply\bundle

You can also use install_bundle via plugin_manager in the repository directory to follow the same official path. After installing a new client-side plugin, you must reload the page for it to take effect.

License and Dependencies: package.json is MIT, requiring Node >= 20. The plugin runs under the current DSH process permissions. Please review the source code and license before installation. The community directory SkillHub and DeepSeek / Hithink RoyalFlush have no official affiliation.

If you have modified the plugin locally and it involves the host side, the README requires executing a preflight check before restarting. Restart only if the exit code is 0:

node _preflight.cjs

Before modifying the client side, you can run:

node _check-client.cjs

Typical Usage

  1. Open an existing conversation and locate the assistant message you wish to respond to.
  2. Drag to select a segment (or click Quote Reply directly without a selection to quote the entire message).
  3. Verify that the entries in the Quote (N) window above the input box are correct, then write your follow-up question in the input box and send it.
  4. In the next turn, the model should be able to answer combining the quote context; if needed, expand Quote (N) at the end of the turn to verify; once used, you can delete or clear it in the floating window.

Only use Insert / Insert All into Input Box in the floating window when you intend for the quote to appear in the body of the message you are about to send.

Use Cases and Precautions

Suitable for: Making precise follow-up questions regarding specific segments in long responses; needing multiple parallel quotes without polluting the input box body; preferring quotes to enter the model as system context rather than user-visible message blocks.

Precautions:

  • Changes to the host side take effect only after restarting DSH; changes to the client side simply require a page refresh. You can use lib/.host-status.json and GET /quote-reply/health to confirm if the host side is loaded.
  • The README lists “Next Phase” capabilities (such as automatically attaching quotes when sending, folding display after sending, etc.) which are not yet implemented; do not confuse them with current behavior.
  • An earlier paragraph in the repository README still describes the usage of “inserting quotes into the input box with > blocks,” which coexists in the documentation with the current independent quote layer + context injection main path; prioritize the one-sentence summary at the beginning of the text, the description in package.json, and the Effective Rules / End-to-End Testing sections.

Conclusion

dsh-quote-reply separates “selected assistant original text” from the input box draft, creating a manageable quote layer. It hands this over to the model in the next turn via DSH’s systemPrompt.context while keeping the user’s message body clean. To try it out or follow issues, visit GitHub: liuhaolong16/dsh-quote-reply or view the category and introduction on the SkillHub Plugin Page.

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

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

Xiaoye