Introduction¶
When running agents in DSH (DeepSeek Harness), it is common to open separate terminals, copy page content, or write custom scripts to bridge the browser and the host. Reading web pages, clicking buttons, and observing network requests are often disconnected from the “text segment currently being viewed.” If you are already using the dsh web profile and wish to select text in Chrome or Edge for immediate interpretation, continue asking questions in the sidebar, and allow the agent to directly read pages, capture traffic, and navigate, you need to install the browser extension and host plugin as a pair. dsh-insight (maintained by Suguyun, GitHub repo Suguyun/dsh-insight) is a DSH browser companion designed for this purpose: the MV3 extension handles text selection, the sidebar, and settings; the host side registers the WebSocket bridge, text selection interpretation routing, and browser_* tools. The following section introduces its components, installation steps, and typical usage.
What is this¶
dsh-insight is a browser companion for dsh, classified as a client plugin within the DSH ecosystem. It consists of two indispensable parts:
| Path | Function |
|---|---|
extension/ |
MV3 Extension: Sidebar, text selection, floating window, settings |
host/bridge.js |
WebSocket bridge between extension and dsh (route /dsh-insight/bridge) |
host/browser-tools.js |
Registers browser_* tools |
host/insight.js |
Text selection interpretation route POST /dsh-insight |
host/page-injector.js |
Injects the “current page” into the session (not mounted by default) |
For protocol details, see docs/bridge-protocol.md in the repository. The current package version is 0.1.9, and the license is MIT.
Core Features¶
Interpretation on Selection¶
After selecting text on a webpage, a customizable small floating icon appears (default text: “Interpret”). Clicking it POSTs the selected text, page URL, and title to the local dsh, and the interpretation result is rendered in Markdown.
There are four trigger and display modes:
| Mode | Trigger | Result Destination |
|---|---|---|
click (default) |
Click floating icon after selection | Page floating window |
click-sidebar |
Click floating icon after selection | Sidebar only |
auto |
Interpretation starts ~0.45s after selection stops | Page floating window |
auto-sidebar |
Interpretation starts immediately upon selection | Sidebar only, no element appears on the page |
The same text segment is only interpreted once; during continuous selection, the new selection queues up and overwrites the old one. The floating window position can be set to “Follow Selection” or “Fixed at Bottom Right”. If the sidebar is not open, click-sidebar and auto-sidebar will not initiate interpretation nor show the floating icon; the two page floating window modes are unaffected.
Sidebar: Original Text Editing and Multi-turn Follow-ups¶
In the sidebar, “Selected Original Text” exceeding 160 characters is collapsed by default; you can click “Edit” to modify the text and then “Re-interpret with this text”. Below the interpretation is a follow-up input box (Enter to send, Shift+Enter for a new line), which utilizes native multi-turn conversation, carrying the last 16 rounds of history with a maximum of 4000 characters per round.
Settings are centralized in the “Settings” button at the top right of the sidebar; no separate extension options page is needed. Sidebar background color and font size (11–20px) are adjustable, and it can follow Light / Dark themes.
Interpretation Presets¶
There are six built-in presets: Default Interpretation, Explain in One Sentence, Literal Translation + Terms, Code / Error Explanation, Critical Review, and Explain to a Complete Novice. Built-in presets can be modified (saved as an overlay, restorable to default), and custom presets can also be created.
Agent: browser_* Tools¶
Once the host side is installed, dsh agents have access to 8 tools: browser_get_page, browser_list_tabs, browser_navigate, browser_click, browser_open_tab, browser_start_capture, browser_stop_capture, browser_capture_requests.
Packet capture goes through CDP, with credential redaction enabled by default (redactCredentials: true). Actions that modify the page (navigation, clicking, opening tabs, starting capture) require explicit intent words in the current user message to be executed, serving as a safeguard against prompt injection.
Environment Requirements¶
- A runnable dsh instance with the web profile enabled (default
http://127.0.0.1:3080) - Node.js ≥ 18, and pnpm (required by
dsh plugin) - Chrome or Edge ≥ 118
Installation and Activation¶
1. Install the Host Side¶
According to the source text, the installation command is:
dsh plugin --profile web add github:Suguyun/dsh-insight
This command installs the package and automatically writes dsh-insight into the profile’s dsh.profile.bundles. If fetching the github: spec via HTTPS fails, you can SSH clone it within the profile directory and then run dsh plugin --profile web add ./dsh-insight (the README explains why pointing link: symlinks outside the profile is discouraged).
2. Install the Browser Extension¶
Method A: Download dsh-insight-<version>.zip from Releases and extract it to a fixed directory (manifest.json must be in the extraction root).
Method B:
npx github:Suguyun/dsh-insight install
This package is not published to npm, so the github: prefix is mandatory. The command copies the extension to a stable user directory and prints the path.
After either method, proceed identically:
- Open
chrome://extensionsoredge://extensionsand enable “Developer mode”; - Click “Load unpacked”, selecting the layer that directly contains
manifest.json(for CLI installation, this is the…/dsh-insight/root directory, not the outerextension/parent directory); - Click the toolbar icon to open the sidebar.
3. Verification¶
The sidebar top should display “Bridge Connected”. If it shows “Not Connected”, ensure dsh is running, the dsh address in the sidebar is correct, and then refresh the page.
Typical Usage¶
Text Selection and Sidebar Follow-ups¶
- Select a segment of text on any
http(s)page; - Click the floating icon or wait for auto-interpretation based on the current mode;
- Read the Markdown result in the sidebar; edit the selection if necessary and re-interpret;
- Continue multi-turn conversation in the follow-up box.
Scripted Settings Changes¶
Settings are stored in chrome.storage.local. For example, to switch to “Selection goes to sidebar only”:
chrome.storage.local.set({ insight_mode: "auto-sidebar" });
Common keys include: dsh_url, insight_mode, insight_label, insight_position, insight_preset, panel_bg, panel_font_size; the page auto-push switch insight_autopush defaults to false.
Auto-injection on Page Open (Optional)¶
This requires enabling both places simultaneously; enabling only one will result in silent idle running:
- Uncomment the two lines related to
dsh-insight-page-injectorincordis.patch.yml; chrome.storage.local.set({ insight_autopush: true }).
The implementation is bounded: max 4000 characters per instance, body content with injection markers is skipped, and a session cumulative cap of 60,000 characters.
Agent Reading Pages and Packet Capture¶
In dsh conversations, the model calls browser_* tools. To capture raw traffic without redaction, you must explicitly set redactCredentials: false in cordis.patch.yml (default is redacted).
Data Flow, Permissions, and Limitations¶
Text selection interpretation sends the selection and URL / title to {your dsh}/dsh-insight. Whether it leaves the local machine depends on the model service provider configured for dsh. The extension’s external requests only point to the local dsh address and the CDP fallback endpoint 127.0.0.1:9222; the README explicitly states no telemetry and no third-party endpoints.
The extension uses permissions such as sidePanel, storage, tabs, scripting, webNavigation, debugger, and <all_urls>; debugger is used for CDP packet capture, and a “Debugging” notification bar will appear on the debugged tab.
Known limitations include: Sidebar Markdown rendering does not support tables; works only on http(s) pages (excludes file://, PDF readers, extension stores, etc.); text selection interpretation is one-shot Q&A and does not create sessions; verified only on Chrome / Edge MV3. Sidebar width is determined by the browser and cannot be controlled by the extension.
Use Cases and Notes¶
Suitable for: Developers who are already running the dsh web profile locally and want to select text for interpretation and follow-up questions while browsing; developers who want dsh agents to read current pages, click elements, and capture network requests via standard tools.
Notes: The host plugin runs in the same process as dsh. Before installation, you should read the repository source code and the MIT license to confirm that permissions and data paths are acceptable. The community directory dsh-insight page on skillhub.cn and GitHub are independent information sources and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “Everything is a plugin”.
Links¶
- Community Directory: https://www.skillhub.cn/plugins/Suguyun/dsh-insight
- Source Code and Docs: https://github.com/Suguyun/dsh-insight