dsh-quote-annotate-pro: A Selection Annotation and Quoting DSH plugin for DeepSeek Harness
zhao-guang-ai/dsh-quote-annotate-pro
Adds quote-and-annotate to DeepSeek Harness sessions: select text to mint an anchored quote chip, with a persistent quote bar under the input that jumps back to and highlights the source, serialized on send into a structured quote block with turn and role.
dsh-quote-annotate-pro is a DSH plugin that adds a quoting layer to DeepSeek Harness sessions: select any text, write a comment, and the quote enters the input box as a chip that becomes a structured quote block carrying the turn number and speaker role on send. It solves the problem of the model not knowing which passage you mean in multi-turn conversations, with a navigation bar below the input box that jumps back to the source and highlights it, plus per-session anchors in local storage that survive refreshes. An enhanced fork of an upstream project under the MIT license, it suits long conversations that need precise context references.
How to Install
dsh plugin --profile web add dsh-quote-annotate-pro- Category
- Sessions & Messages
- Platform
- DSH Plugin
- Author
- zhao-guang-ai
- Distribution
- Plugin
dsh-quote-annotate-pro Key Features
dsh-quote-annotate-pro Repo Summary
What Does It Do?
It is a DSH plugin for DeepSeek Harness that turns any selected text in a session into a structured, anchored quote. It solves the problem of the model not knowing which passage you mean in multi-turn conversations, because each quote block carries its turn number and speaker role. Its core abilities include selection-based annotation, quote chips in the input box, a quote navigation bar that jumps back to the source, and anchor persistence that survives page reloads. It is an enhanced fork of the upstream dsh-quote-annotate, maintained by zhao-guang-ai under the MIT license.
Core Features
- Selection annotation: select any text in a session, a bubble appears above the selection, and pressing Enter after writing a comment inserts the quote.
- Quote chips: an atomic chip such as "Quote #1 · Turn 5 · DSH Reply" appears in the input box and expands into a full quote block on send.
- Quote navigation bar: a persistent list below the input box lets you click to jump back to the source text and highlight it, with hover previews.
- Precise model-side location: the first line of a quote block reads "[Quote · Turn N · Your Message]" followed by the original text, so the model knows exactly which turn and who said it.
- Anchor persistence: the ref-to-anchor mapping is stored per session in local storage, up to 60 entries, so quotes still jump back after a page refresh.
- Turn-level quoting: each completed turn offers "quote question / quote answer" buttons to quote the whole turn.
How to Use This Plugin?
After enabling it in DSH, select the text you want to quote inside a session, click "Annotate" in the bubble, optionally write a comment, and press Enter to place the quote into the input box as a chip. On send it is serialized into a quote block carrying the turn number and role, which the model uses to locate the original passage. To revisit a quote, click the navigation bar below the input box or the chip itself to jump back and highlight the source; button labels follow the interface language automatically.
How to Troubleshoot This Plugin?
If the plugin does nothing at all on DSH, registering no UI and throwing no error, it usually lacks the slots dependency declaration, so apply runs early and exits silently; follow the official instructions to declare the dependency and wrap each registration step in error handling. If the turn-tail buttons never appear, the session snapshot shape has changed, and the text extraction must be rewritten against the current Chat snapshot, Map-based nodes, and node identity. If quotes degrade to plain text, the chip insertion API has changed and the official session event path should be used instead.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: zhao-guang-ai/dsh-quote-annotate-pro. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
