rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:feifandiv/dsh-annotation
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Select text in a DeepSeek Harness reply or in a document previewed in the right sidebar; a comment box appears. Enter confirms the annotation and collects it into an aggregated "N notes" card above the composer; Cmd/Ctrl+Enter sends every pending annotation to the AI in one message.
Scope — a small, restrained patch. It does one thing and leaves the rest of DSH alone: no built-in slot or layout replaced, no core behaviour touched, no other plugin's data read or written. Upgrading DSH normally needs no change here; disabling or uninstalling restores the stock UI.
flowchart LR
A[Select text] --> B[Comment box appears]
B -->|Enter| C[Confirm + collect into the card]
C -->|Keep annotating| A
B -->|Cmd/Ctrl + Enter| D[Send all annotations to the AI]
| Action | Result |
|---|---|
| Select text | The comment box appears next to the selection and gets focus |
Type + Enter |
Confirms the annotation; it is collected into the "N notes" card above the composer |
Cmd/Ctrl + Enter |
Confirms and immediately sends all pending annotations to the AI (works inside the comment box or while no input is focused) |
Shift + Enter |
Newline inside the comment |
Cmd/Ctrl + C with no text selected in the comment box |
Copies the passage that opened the box (focusing the box collapses the document selection) |
Esc |
Cancels the comment box |
| Click the "N notes" card | Expands the quotes and notes; jump to or delete each one |
| Send with text already in the composer | The typed message and all pending annotations go to the AI as one message (attachments preserved) |
| Click a numbered dot / highlighted text | Edit or delete that annotation; the number matches its row in the list |
| Sidebar footer → Annotations | Opens the annotation list as a native right-sidebar tab (conversation / documents / other documents), beside the chat instead of over it; jump or delete |
The message the AI receives looks like this:
I annotated 2 specific places below. Please review and act on each one:
1. Quote: "…"
Location: conversation reply
Note: …
2. Quote: "…"
Location: `docs/report.md`
Note: …
The message language follows the current DSH UI language.
| Surface | Supported |
|---|---|
| Assistant reply body in the conversation | Yes (including expanded reasoning) |
| Markdown / plain text / code previews in the right sidebar | Yes |
| PDF and Word/PowerPoint-to-PDF text layers in the right sidebar | Yes, where text is selectable |
| Excel preview in the right sidebar | No — the grid is not document text |
| HTML / web page previews in the right sidebar | No — the body runs in an opaque-origin iframe, so the parent page cannot read its selection |
| Images, terminal | No |
These limits come from how the host renders those surfaces, not from the plugin.
localStorage; the list only shows chat annotations of the active session plus document annotations.index.js exports an empty apply(); all behavior lives in client.js.shell.overlay — comment box, highlight dot, edit dialog, annotation list, toasts;conversation.input.overlay — the aggregated card above the composer;sidebar.right.pane.tab — the annotation list as a right-sidebar tab (registered through sidebarRightTabs as the annotation kind);sidebar.footer.action — the Annotations entry at the sidebar foot, opening or focusing that tab.::highlight() + CSS.highlights), so React-owned text is never mutated and streaming/folding cannot conflict.exact/prefix/suffix/start; re-renders resolve it with context scoring. Chat rows are addressed by data-chat-anchor-key inside [data-conversation-session]; sidebar documents by data-textpreview-url / resource address.sessions.scope(sessionId).conversation.send(text) to deliver the batch as one user message.localStorage under dsh.annotation.v1 (per browser profile, synced across windows via storage events).Install from npm:
dsh plugin --profile <profile> add @fanfan4589/dsh-annotation
Or ask the DSH agent to install the checkout with plugin_manager install_bundle, then refresh the page once.
Uninstall through Plugin Manager; annotations stay in localStorage.
node build.mjs # generate client.js
node --test test/core.test.mjs # 20 pure-logic tests
node test/smoke.mjs # bundle load + slot registration + component render smoke test
node tools/validate.mjs # manifest/locale/icon/bundle validation
No dependencies beyond Node.js built-ins.
client.js need a page refresh.MIT © 2026 feifandiv
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。