Select any passage in a DSH conversation to annotate it in place; the quoted text, the turn it came from and your comment are folded into the message on send, so the model can tell exactly what each remark refers to.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:HansHuang2683/dsh-quote-annotate
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Select any passage in a DeepSeek Harness conversation, annotate it in place, and send the quote + your comment with your next message.
A small, dependency-free Web UI plugin for DeepSeek Harness (DSH 0.2.1-rc.3+). No build step — one hand-written browser module.
What it does
- Select any text in the transcript (your message, an assistant reply, a tool output) → a floating Annotate button appears above the selection.
- Click it → a floating comment box opens next to the selection (quote preview + textarea + Cancel / Save;
⌘/Ctrl+Entersaves,Esccancels). - Save → the quoted passage is highlighted with a numbered badge (
①). Click a badge to edit its comment later. - A strip the same width as the composer appears directly above the composer:
① annotations · attached to your next message— expand it to review, edit, jump back to the source, or delete each annotation. - Send as usual (Enter or the send button). The plugin folds every annotation into the message as a compact block:
my question …
【我的批注】
批注 1|Assistant · turn 3
原文:
the paragraph you selected
批注:your comment
The model therefore receives the exact quoted text, where it came from, and what you think about it — which is the whole point: no more "I meant the thing above".
Install
Requires DeepSeek Harness 0.2.1-rc.3 or newer (Web / Desktop Web UI).
Using the plugin_manager tool (or the Plugins page → Add plugin):
action: install_bundle
target: https://github.com/HansHuang2683/dsh-quote-annotate
or point it at a local checkout directory, or at a packed tarball:
pnpm pack --pack-destination dist
# then: install_bundle, target: <abs path>/dist/dsh-quote-annotate-1.0.0.tgz
After installing, reload the page (in the Desktop app: Ctrl+R, or fully quit and relaunch). Plugin Manager → Plugins shows “Selection Annotations”.
Design notes
- Official seams only.
shell.overlayrenders the selection toolbar, the comment box, the numbered badges and the annotation strip;conversation.input.overlayholds an invisible “input bridge” that exposes the composer'sinputActionsto the plugin. Standard slot propsuseInput/inputActions(setDraft,submit) drive the composer. - Highlighting without touching foreign DOM. Highlights use the CSS Custom Highlight API (
CSS.highlights) overRanges rebuilt from stored text offsets, so no other plugin's DOM is wrapped or mutated. - Send interception is deterministic. On
Enter(capture phase, IME-aware) or a send-button click, the plugin writesbody + annotation blockinto the composer, waits until the new draft is actually published, then callsinputActions.submit()itself. The native submit path never reads a stale draft. - Shared state on
window. HMR can leave the two halves of a bundle from different module generations; the annotation list / bridge live onwindow.__DSH_QUOTE_ANNOTATE_SHARED__so both halves always see the same state. - Light / dark themes. Reads the host
themeservice (getTheme().active.colorScheme), reacts totheme/change, falls back to the luminance of--dsw-alias-bg-base, and renders its own two palettes (--dqa-*). Filled accents deliberately use--dsw-static-deepseek-500, because--dsw-alias-brand-primaryis white in dark mode.
Known limitations
- The composer is not focused automatically after saving an annotation (DSH exposes no “focus the editor and keep the caret” seam); click the composer and start typing.
- Badges and highlights depend on the transcript's
data-chat-flow-key/data-chat-turnattributes. If a future DSH changes them, highlighting degrades gracefully (annotations still listed and still sent) — the send fold only uses text. - A long quote is truncated to 1200 characters in the sent block (the annotation list keeps the whole quote).
- Web / Desktop Web UI only; the TUI is not supported.
- If the annotation strip ever disappears or annotations stop being attached after a plugin update, fully quit and relaunch DSH — a half-mounted bundle after hot reload is a known host quirk, and the strip's 「Insert」 button is a manual fallback that always works.
Repo layout
| File | Purpose |
|---|---|
client.js |
Entire feature: selection tracking, floating UI, badges, strip, send interception |
index.js |
Inert Host half — exists so DSH mounts the package's dsh.client entry |
cordis.patch.yml |
Bundle patch inserting the quote-annotate row |
locale/{zh,en}.json |
Plugin Manager title / description |
icon.svg |
Plugin icon |
License
MIT © 2026 HansHuang2683
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 9925
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 9925
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 6712
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
ccch1mneyyy/dsh-TUI★ 6538
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4808
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1672
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.