Selection mode for HTML preview and browser tabs: click any element in a locally served demo page and its locator (selector, text, HTML snippet) is written into the chat input for precise AI editing.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:robin421/dsh-html-inspector
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
English | 中文
Selection mode for HTML preview and browser tabs in DeepSeek Harness (dsh): turn it on, click any element in a locally served demo page, and the element's locator — CSS selector, visible text, and an HTML snippet — is written straight into the chat input, so the agent can edit precisely what you pointed at. Nothing on disk is ever modified.
What you get
- Click-to-locate — hover highlights the element under the cursor with a blue outline; click captures tag, id, classes, a
nth-of-typeCSS selector path, up to 1200 chars of visible text, and up to 4000 chars of the element's outer HTML, then writes it into the current conversation's input box.Esccancels. - Browser tab support — type a loopback address (
localhost/127.0.0.1) into a dsh browser tab and the plugin transparently routes it through an injecting proxy (/inspector/proxy); selections survive navigation. - File preview support — HTML files opened from the file tree (
/sidebar/htmleditor iframe) get the same treatment: the preview frame is swapped for a same-content copy with the inspector injected (<base>preserved for relative assets), and selections are tagged with a "file preview" origin marker. - Selection mode toolbar button — injects an on/off toggle into the browser-tab toolbar of
dsh-better-sidebarwhen present (optional; everything else works without it). The choice is remembered per tab session; it defaults to on. - Loopback only, read-only — the proxy refuses non-loopback targets and never writes to your files.
Install
dsh plugin --profile web add github:robin421/dsh-html-inspector
Or one click from dsh-market (Settings → Plugin Market) once listed.
Restart the web GUI (or refresh the page), then look for the selection mode button in the browser-tab toolbar, or just type a localhost URL into a browser tab.
How it works
- Host side (
index.js) — a cordis plugin that registers one route,GET /inspector/proxy?url=…. It fetches the loopback URL, rewrites same-origin links so navigation stays inside the proxy, and injects a self-contained inspector script. No dependencies beyond the dsh runtime. - Client side (
client.js) — loaded via the dsh client runtime (dsh.client, platformweb). It intercepts loopback address-bar input, listens forpostMessageselections from proxied pages, writes located info into the chat composer, and manages the toolbar toggle. - The two halves never talk to the network beyond your own machine.
Compatibility
- Works with the web GUI and desktop clients that ship the dsh client runtime.
- The toolbar button appears only if
dsh-better-sidebaris installed; the address-bar interception and file-preview selection mode work regardless.
Security
The proxy binds to loopback targets only (exact-match localhost, 127.0.0.0/8, ::1, 0.0.0.0) and rejects everything else. It performs GET fetches of pages you ask it to proxy, injects the inspector script, and returns the result to your own GUI. It stores nothing and sends nothing anywhere.
License
MIT
Links
More in this category
Tencent/BrowserSkill#dsh-plugin-browserskill★ 10764
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★ 1739
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★ 1147
Chrome sidebar extension that lets DSH operate your browser directly, no vision capabilities required.
liustack/modsearch★ 1047
Web search bridge for text-only agents: ask the web or X, get structured JSON evidence (search, fetch, citations).
Fisfzy/dsh-ego-browser★ 587
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★ 273
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.