- Início
- Plugins
- Melhorias de UI
- dsh-sidebar-quote
dsh-sidebar-quote
zzr-rui-997/dsh-sidebar-quote
Select text in a sidebar document preview to quote it into the composer with your comment on the same line; frame a picture in a Word, PowerPoint or PDF preview to ask for changes; drop a file on the sidebar to open it there; and rewrite the draft prompt by first finding what it is missing rather than paraphrasing it.
Instalar
dsh plugin --profile web add github:zzr-rui-997/dsh-sidebar-quoteREADME
dsh-sidebar-quote
Select text in the sidebar document preview (Markdown, PDF, Office, plain text, code) and ask about it right there: the selection enters the composer as a read-only quote chip with your question attached. A little whale beside the composer rewrites your draft into an executable prompt — and every rewrite is reviewed by you before it touches anything.
What it does
- Quote & ask — select text in a document preview, press the floating
button, type your question, press Enter. The quote goes into the composer as
an atomic read-only chip (
insertQuote), so the model (and you) can always tell what you were asking about. The source filename is shown on the card when the preview provides one. Quotes longer than 8000 characters are truncated and the card tells you so. - Frame a picture — a Word or PowerPoint illustration is just pixels in the converted PDF, so there is nothing to select. Press the framing button at the top-right of the preview, drag a box over the picture you want changed, and the card opens with that crop attached: the composer receives a read-only quote naming the file, page and area, plus the saved screenshot path, so the agent can open the real crop (or pull the original image out of the source file). A box that is too small, or that missed the page, says so instead of doing nothing.
- Drop a file onto the sidebar to open it — dragging a file from Explorer onto the right sidebar opens it in the document pane, the same way a link click there does. Only the desktop shell provides real filesystem paths; in the browser the plugin says so instead of guessing.
- Prompt optimization (the whale) — press the whale to send the draft to a
two-stage rewrite:
- Analyze finds real execution gaps (missing task boundary, background, constraints, output form, or acceptance criteria). If the gaps would change the result completely, it asks at most two questions first. If there is nothing worth closing, it says so and leaves your draft alone.
- Generate rewrites the draft to close exactly those gaps, longer or shorter as needed — no fixed template, no fixed length multiplier. A deterministic gate flags invented facts, placeholders and copy-only rewrites; violations trigger one repair round before you ever see it.
- You get a preview panel (draggable, action buttons always visible) listing what changed and which gap each change closes. Nothing is written to the composer until you press "Write to composer". One click on ↩ restores your original draft.
- Quotes stay read-only through optimization: the rewrite replaces your words, never the quoted originals.
Recommended usage
The optimizer does not see your conversation history — only the draft and any quotes in it. So:
- First message of a project, or a standalone task: press the whale; the rewrite adds the background it needs.
- Follow-up turns: send as-is; the conversation already carries the context.
- A follow-up that could be misunderstood: quote the previous conclusion into the composer, then press the whale — quotes are the context channel.
Requirements
- DSH
>=0.2.2-rc.1, Node>=22 - Uses the agent's currently selected model; two model calls per optimization (analyze + generate), each capped (2048 / 8192 output tokens). No data leaves the model provider you already use.
Install
From npm (once published):
dsh plugin add dsh-sidebar-quote
Or from a local checkout:
dsh plugin add <path-to-this-repo>
Privacy
Your draft (and any quoted text) is sent to the selected model for rewriting. Nothing is stored beyond the draft itself; the plugin keeps no history of its own.
License & assets
Code and hand-drawn SVGs (icon.svg, preview.svg): MIT (see LICENSE). The bitmap icons (icon.png / avatar.png) are AI-derived fan works of a community mascot, distributed under CC BY-NC-SA 4.0 — see ASSET_LICENSE.md. "DeepSeek" and the whale logo are trademarks of DeepSeek; this plugin is unofficial and not endorsed by DeepSeek.
License
MIT
Plugins relacionados
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui