Introduction¶
When using DeepSeek Harness (DSH) to ask models to modify web pages or review live pages, the common approach is to take screenshots, draw on them, and then manually type descriptions like “the button in the top left corner” or “the whitespace in the second screen.” Information is easily lost, and it is difficult for the model to align these descriptions with specific DOM elements. The DSH right sidebar features a built-in Browser tab that can open http(s) pages within the same session. If you can select elements, box-select areas, and write comments directly on the page, and then merge the structured report into your next user message, the round-trip will be significantly shorter. Here we introduce the community plugin dsh-web-annotation (Maintainer: HXwHSJS, Category: Web Tools). It focuses solely on “web annotation + screenshot + local report + sending with message” and does not take over the official Browser/Chat providers.
What is this¶
dsh-web-annotation enables annotation within the Browser tab of the right sidebar in the DSH desktop app: click to select elements, click on blank spaces, or drag to box-select areas, and write modification comments in the bubble; the plugin automatically saves screenshots and structured reports, and sends the merged annotation report together with your next message.
- Repository: github.com/HXwHSJS/dsh-web-annotation
- Community Directory Page: skillhub.cn/plugins/HXwHSJS/dsh-web-annotation
- License: MIT; Current Package Version 0.1.1 (see
package.json) - Validation Baseline: DSH Desktop 0.2.1-rc.2; Pure JS, no build step, no runtime dependencies.
The community directory and GitHub are independent sources of information and have no official affiliation with DeepSeek / High-Flyer; please check the source code and license yourself before installing. The plugin runs under the DSH Host process permissions. Annotations are injected into the current <webview> and read DOM information from the annotated page (only when annotation mode is enabled).
Core Features¶
Annotation and Editing¶
- Continuous Annotation: Click to select elements, click on blank space (“click position” annotation), or drag to box-select areas; after saving, you can continue with the next one.
- In-place Editing: Input comments within the bubble;
Enterto save,Shift+Enterfor a new line,Escto cancel; saved annotations can be re-edited by clicking their number, with ✓ to save and a trash icon to delete. - Page Interference Suppression: In annotation mode, a transparent capture layer blocks page floating popups/link redirects; cross-origin iframes can be annotated as a whole element/area (internal elements cannot be precisely annotated due to browser restrictions).
Evidence and Persistence¶
- Screenshot Evidence: Each annotation automatically crops a screenshot of the element/area (click positions include context) and saves it as
NN.png. - Report Persistence: Each batch generates
report.md,annotations.json, and screenshots. The directory is$DSH_HOME/annotations/<sessionId>/<timestamp>/(default~/.dsh/annotations).
Session Integration¶
- Merged Sending: Annotations from multiple sessions or pages are merged into one comprehensive report (grouped by page, with merged report paths listed, no duplicate titles).
- Auto-Attach: When sending a message, the Host merges the report into the user message you are currently sending—the message is visible, replayable, and received directly by the model; the plugin does not directly rewrite conversation logs.
- Complete Even When Sending Mid-way: If you send a message before ending annotation mode, the background process first saves the current annotations as screenshots/reports and sends them with the message; after the message is consumed, annotation mode automatically exits, and the same batch of annotations will not be duplicated in the next message.
Positioning vs. Similar Plugins¶
The DSH community already has several annotation plugins (e.g., cslkkl/dsh-web-annotator, zhxnix/dsh-sidebar-annotations). This plugin deliberately remains narrow and light: it only handles web annotation, screenshots, reports, and sending with messages. The differentiation lies in evidence and persistence (every annotation has a screenshot and local report, and the report is persisted as regular message text). The trade-off is the absence of heavy features like source mapping/component chains, in-canvas object labeling, or model-side browser tools.
Installation and Activation¶
Requires DSH Desktop 0.2.1-rc.2 (README verified on this version). The plugin requires Host half-code; after installation or update, you must fully exit and restart DSH.
Method A: Plugin Management Page (Recommended for Desktop)¶
- Download
dsh-web-annotation-0.1.1.tgzfrom Releases; - Open DSH Settings → Plugins, use the install entry to select the local tgz or enter the absolute path of the tgz (The Desktop’s
desktopprofile is managed by Electron, and the CLI may refuse directadd); - Fully exit and reopen DSH.
Method B: CLI-Managed Web / Headless Profile¶
dsh plugin --profile <profile> add \
https://github.com/HXwHSJS/dsh-web-annotation/releases/download/v0.1.1/dsh-web-annotation-0.1.1.tgz
You can also install from GitHub source (no build script, allowBuilds is not required):
dsh plugin --profile <profile> add github:HXwHSJS/dsh-web-annotation#<commit-sha>
After installation, restart the Host for the corresponding profile and refresh the page.
Method C: Local Development¶
git clone https://github.com/HXwHSJS/dsh-web-annotation.git
dsh plugin --profile <profile> add "link:/absolute/path/to/dsh-web-annotation"
Typical Usage¶
- Open the Browser tab on the right side of the session and visit any
http(s)page; - Click the annotation icon on the sidebar control bar (to the left of the split/fullscreen buttons) to enter annotation mode;
- Click elements / click blank space / drag to box-select, write comments in the bubble, and press
Enterto save; you can continue with the next one; - After exiting annotation mode, a “Annotations xN” block appears above the input box;
- Input and send the message normally—the annotation report will be merged into this message.
You can also send directly without exiting annotation mode: the background saves the current batch and sends it with the message, and annotation mode automatically exits after sending.
After sending, a structure similar to the following is visible in the message (excerpt):
Web Annotations (3 total)
Page: Console (https://example.com/#dashboard)
Page Source (Inferred): ./src/pages/dashboard.html
1. [Element] "Export": Button color is too light, contrast with background is insufficient
2. [Area] 640×240: This whitespace is too large, compress it by half
...
Full Annotation Report: .../report.md;...
Annotation Data: ...;...
Screenshot Directory: ...;...
Applicable Scenarios and Notes¶
Who it is for: Users who need to provide precise UI/interaction modification comments on “pages currently open in the Browser” within DSH and want the model to receive merged reports and path references in the same user message; screenshots remain local by default, while text and report paths are sent to the model with the message.
Privacy: No external network requests, no telemetry; HTTP routing is provided by the local DSH Host. For security details, see the repository’s SECURITY.md.
Known Limitations (should be aware before installing):
- Desktop only (relies on the right sidebar Browser’s Electron
<webview>); the Web version’s right sidebar is a cross-origin iframe and cannot be injected. - The sidebar annotation button has no official plugin extension point and relies on DOM insertion; if DSH updates change the sidebar structure, minor fixes may be required.
- Cross-origin iframe internals, closed Shadow DOM, and objects inside Canvas cannot be precisely annotated; page navigation/refresh will lose in-page markers (saved/sent reports are not affected).
- Auto-attach relies on the Host’s
agent/pre-stepand session log interfaces, validated against0.2.1-rc.2; after a major DSH update, it is recommended to perform a “Annotation → Send → Restart → Session Loads” regression test.
Conclusion¶
dsh-web-annotation connects element/area annotations, screenshots, and local report.md in the sidebar Browser into a replayable user message, suitable for lightweight UI review and page modification collaboration. Installation and usage are subject to the repository README.
- Directory Page: https://www.skillhub.cn/plugins/HXwHSJS/dsh-web-annotation
- GitHub: https://github.com/HXwHSJS/dsh-web-annotation