dsh-session-quote
Manifest validQuote one message from an earlier session into the composer as an inline quote, plus a quote action on each assistant reply; the quote is sent as a Markdown blockquote attached to the reply, so the mo
dsh-session-quote
A DeepSeek Harness plugin that quotes one message from an earlier session into the composer as an inline quote — the same compact quote chip the composer already renders for text selected in the current conversation.
What it does
- Adds a compact 引用 / Quote control to the composer tool row, beside the skills entry.
- Clicking it opens a two-step picker:
- the sessions of the current workspace (same working directory), newest first;
- that session's recent user and assistant messages, with role, time and a preview.
- Picking a message inserts it as the composer's own atomic quote node (label + body + remove button). It is sent as an ordinary Markdown blockquote, so the model reads it as a quote attached to your question — and knows which message the reply is about.
- Nothing is stored: the quote is plain draft text, and the picker reads sessions through the built-in
sessionQueryservice.
Install
dsh plugin --profile <profile> add @jacksun1994/dsh-session-quote
or install this directory as a local bundle. Refresh the page once.
How it works
The browser cannot read another session's conversation, so the Client asks the Host half through the plugin's own volatile Configuration: it writes a request ({ id, op: 'messages' | 'message', sessionId, seq }) and polls for the matching result. The Host folds sessionQuery.readSurface(sessionId) into plain user/assistant messages — the same current-surface projection the built-in session-reference service consumes.
Limits:
- Only sessions whose working directory matches the current session are listed.
- Message previews are truncated to 200 characters; a quoted body is capped at 8000 characters with a visible truncation marker.
- Reading a session replays its log (
readSurfacevalidates the whole log), so very large histories take a moment. - The quote is text in the draft: editing or deleting it is ordinary text editing, and the original session is never modified.
Development
npm install
npm test # node --test: projection folds, host request handling
License
MIT
Comments
Loading…
Similar plugins
by naletko
Quote the text you selected in the conversation into the composer as a markdown block quote, without losing the draft you already typed.
★ 0
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-quoteSelect text in the chat transcript, right-click, and quote it into the composer. The quote travels as an atomic chip and renders as a collapsible card, while the model receives the full block with mes
★ 0
dsh plugin --profile web add dsh-quote-selectionby zhao-guang-ai
该仓库暂未提供项目说明。
★ 5
↓ 807/wk
MIT
JavaScript
Nov 18, 2026
dsh plugin --profile web add dsh-quote-annotate-proby sunnystarye-ui
Codex-style text annotation for conversations: select text, add a quote with your comment, inject it into the composer, and expand sent annotations as a pill.
★ 0
MIT
JavaScript
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-text-quoteby wanruxi
Select text in a conversation and park it as a quote card above the composer; the input box keeps only your question, and the quoted text rides along with the message you send. Package name: dsh-quote
★ 0
MIT
JavaScript
Nov 12, 2026
dsh plugin --profile web add dsh-quote-trayby QIN-SMART
Select text in a DSH reply: a floating toolbar that quotes it into the composer draft or opens a side chat about it.
★ 3
↓ 66/wk
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add dsh-quote-to-chat