Annotate pages inside the existing Harness Browser: click or drag to select, comment or ask, then send marked screenshots or DOM location details to the current session. While enabled it replaces the official Browser, Chat and Layout providers; targets Harness 0.2.1-alpha.2.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-web-annotator
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/cslkkl/dsh-web-annotator/releases/download/v0.2.2/dsh-web-annotator-0.2.2.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:cslkkl/dsh-web-annotator
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
Click or drag inside the Browser tab Harness already has, then comment or ask the current agent in place.
English · 简体中文
The maintainer documentation is written in Chinese. This file mirrors README.md item by item; every document it links to is Chinese-only.

# Install this one package, then quit and reopen Desktop normally
dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotator-<version>.tgz
The package ships its build output, so there is nothing to compile and no build script to allow. Full instructions under Install.
Three steps
1 · Pick — click an element, click empty space, or drag a rectangle.

2 · Write — comment or ask next to the selection; expand the same card to read the tag, colour and font, and change them.

3 · Send — tick the notes to send, choose how, preview, then send to the session; the chat collapses them into one "N notes" chip.

What it does
- Annotate in place: click an element, click empty space, or drag a rectangle, then write a comment or a question next to the selection.
- Change attributes while you look: expand the same card to adjust colour, font and spacing. The changes travel with the annotation to the agent and never rewrite the page before you save.
- Operate the page temporarily: hold Space to interact with the page and release it to return to annotating; spaces typed into the editor stay spaces.
- Send with an image or with location details: the screenshot marks your selection with a blue frame or circle and adds an index badge that matches the attachment; without a screenshot you can send the coordinates and DOM evidence, or both together.
- Readable in the chat: an annotation message shows "N notes" instead of a wall of text. Expanding it lists each note's index, target element and your comment or question; the full location details stay in the same collapsible block.
- Manage several notes: edit a saved note, tick the ones to send, and send them in batches. A failed send keeps the note; a successful one removes only what that send included.
- Drafts survive: notes are stored per session and full URL in IndexedDB. Neither a failed send nor a failed save clears them.
0.3.0 targets exactly Harness 0.2.2-rc.3.
One prebuilt package ships the plugin together with the Browser, Chat and Layout extensions, so a normal
restart of Desktop is all it takes. The extensions are not part of the official Harness yet. npm carries
both channels (npm install dsh-web-annotator); the community directory entry has been submitted and is
awaiting review, so do not treat the market as searchable yet.
Each release's package and verification record are built by the
release workflow on the tag and attached to the Release.
⚠️ How far this is verified: 26 Browser checks pass against a real host, but native Desktop, a real model and the compatibility matrix remain unverified — see the verification notes for each boundary, and do not read unverified as verified.
Install
Download the latest dsh-web-annotator-*.tgz from the
releases, pick it in the DSH plugin
manager, or use the official CLI:
dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotator-<version>.tgz
Install this one package, then quit and reopen Desktop normally. Substitute your own profile name for
desktop. The package already contains its runtime artifacts, so nothing has to be compiled and no build
script has to be approved.
While the bundle is enabled it replaces the official Browser, Chat and Layout providers. Check first that the Harness kernel is 0.2.2-rc.3, and do not mix it with another plugin that provides the same rows. Uninstalling the whole bundle undoes the replacement and a restart brings the official providers back.
If you used an earlier local preview, remove dsh-layout-care and dsh-layout-care-browser-preview
first. Existing annotations migrate automatically. Details are in
distribution (Chinese).
Using it
- In the current session click "批注网页" to open the Browser Harness already has.
- Enter a page address, then click "批注网页" in the toolbar, to the left of the reload button.
- Click an element or empty space, or drag to select a region, and type next to the selection.
- The floating editor is a single line by default: an options icon, the input and a round ✓. The icon on the left expands the attribute card with the tag, colour, font and so on, and switches between comment/question and element level. Click ✓ or press Enter to save; Shift+Enter adds a line and grows the box; Esc collapses the card first and cancels the annotation second.
- Hold Space when you need to operate the page, and release it to return to annotating.
- After saving you can edit the text, tick the notes to send, choose how to send them, preview, and send them into the current session.

Images travel through Harness's own image-attachment flow. Image mode sends only the annotation text, the page URL and the matching screenshot. Detailed mode keeps the coordinates and DOM evidence, but the chat shows "N notes" by default; expanding it gives one card per note (index, target element, comment or question), and "view location details" reveals the full request. The index on the screenshot is the same index as on the card. Whether the model can read an image directly depends on that model's image support.
What is verified today
| Capability | Status |
|---|---|
| Toolbar entry in the existing Browser and the in-page editor | Verified |
| Element click, empty-space click, rectangle drag, Space to operate | Verified |
| Several notes, preview, retry after failure, session request and durable journal | Verified (the model side uses the official replay) |
| Image attachments and the collapsible location details | Verified; the Electron capture boundary is covered by tests |
| The "N notes" chip and the per-note cards in the chat | Verified (the attachment index badge ships with image mode) |
| Native Desktop picking, attribute card and native capture | Verified by hand once, not re-run for every release |
| A real model editing source from an annotation | Not verified |
| Other remote pages | Verified page by page; the Web side still meets cross-origin limits |
| Elements inside iframes and closed shadow roots | Only the outer host element is located; the boundary is not crossed |
Per-item boundaries and the manual checklist are in verification (Chinese).
Wire it into your own Vite page
import { defineConfig } from 'vite';
import { webAnnotator } from 'dsh-web-annotator/vite';
export default defineConfig({ plugins: [webAnnotator()] });
This only applies to the development server. Intrinsic JSX/TSX tags carry file, line and column hints;
a production build injects neither the connection script nor the source markers. Connections are allowed
from the Harness on HTTP loopback by default; name exact HTTP(S) origins in allowedParentOrigins for
anything else.
A runnable example is in examples/responsive-demo.
Annotate a local frontend
A local file opens in Document Preview, while annotation lives on the Browser tab; the Browser accepts HTTP(S) only, and in the Web client only a bridge-carrying page can be annotated. Turn the project into an HTTP address first:
npm run build # once, to produce lib/bridge.js
npm run annotate -- "C:\path\to\your\project" # serve a static directory
npm run annotate -- --proxy http://127.0.0.1:5173 # in front of an existing dev server
Then click "Annotate page" and enter the printed http://127.0.0.1:4180.
| Project type | Recommended |
|---|---|
| Vite | Use the webAnnotator() plugin above; it also adds source line hints |
| Plain static HTML/CSS/JS | npm run annotate -- <directory> |
| Next / webpack / others | npm run annotate -- --proxy <dev server address> |
It listens on 127.0.0.1 only, serves read-only, and changes no project file. Proxy mode does not
forward WebSockets, so HMR will not pass through (refresh the page instead).
Safety and boundaries
- Text, styles and source markers from the page are reference material, never instructions.
- The plugin's callbacks expose bounded data and actions only: no DOM, no arbitrary evaluator and no host capability reach the page.
- Annotations and screenshots stay in your own browser storage and travel through the normal request flow of the current session.
- File writes and source edits are done by the agent in your current session; the plugin itself runs no script.
License and contributing
MIT, see LICENSE. Third-party notices are in THIRD_PARTY_NOTICES.md.
Reproducing a problem on a real page, improving the interaction, adding tests or fixing the docs are all welcome — see CONTRIBUTING.md (Chinese).
The maintainer documentation map and the build and gate commands are in AGENTS.md (Chinese).
Links
More in this category
Tencent/BrowserSkill#dsh-plugin-browserskill★ 10834
BrowserSkill bridge for controlling visible Chrome and Edge Agent Windows from DeepSeek Harness, with native browser tools, accessibility and VOM observations, screenshots, owned multi-session control, and a live Web UI overlay.
DDDMUC/dsh-free-search★ 1831
Free web search for DSH with 42 engines: 6 keyless (DuckDuckGo, Bing, SearXNG, Degoog, AnySearch), 6 key-or-keyless tiers (Exa, Tavily, Keenable, Firecrawl, Parallel, You.com), 5 HTML search pages, and keyed providers from Brave and Baidu to Zhihu, OpenAI and Claude. Failure-classified failover with cooldown and key rotation, allowlist switching, an editable fallback chain, zh/en language pools, Multi concurrent merge, 12 MCP tools and a standalone stdio server, with per-engine keys in settings.
omdsh-dev/dsh-browser#packages/browser/bridge-browser★ 1162
Chrome sidebar extension that lets DSH operate your browser directly, no vision capabilities required.
liustack/modsearch★ 1060
Web search bridge for text-only agents: ask the web or X, get structured JSON evidence (search, fetch, citations).
Fisfzy/dsh-ego-browser★ 594
Drive a real Chrome/Chromium browser from DeepSeek Harness with 35 structured tools for navigation, snapshots, clicks, forms, JavaScript/CDP, screenshots, downloads and tabs; a live sidebar mirrors the page and accepts mouse and keyboard input. It ships a managed CDP runtime, keeps login state across calls, and can import cookies from your everyday Chrome through a companion extension.
regrevia/Envoy#dsh-envoy★ 315
Distill any link into Markdown, a wiki or a knowledge base. Installs per host: DSH -> envoy-dsh; Claude Code/Codex -> envoy@envoy. Douyin/Bilibili video, image posts, WeChat, Xiaohongshu, PDFs, podcasts. Video is read on its own timeline with keyframes and ASR transcripts locatable to \[mm:ss], so the context carries what was said and shown instead of the title and the recommendation rail. On 60 turns with vs without: ends normally with the gaps named 22% -> 92%, times out 68% -> 0% (the A/B is exploratory: different time caps, no human correctness review). On 123 live links 80% came back usable (93% of the pages that answered).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.