Introduction¶
The DeepSeek Harness (dsh) web client runs in the browser. When it needs to access external web pages, you typically have to switch away and switch back. The right sidebar’s “Start” page can display a browser card, but dsh itself cannot directly control it. dsh-insider-browser is a community plugin that provides real browser capabilities to dsh’s right sidebar and exposes those capabilities to the agent, enabling it to autonomously browse web pages.
What It Is¶
dsh-insider-browser is a community plugin that provides a right sidebar “built-in browser” for the dsh web client, maintained by qwunros. It drives a local Chrome or Edge instance via CDP (Chrome DevTools Protocol), displays a live view in the right sidebar, and provides a set of browser_* tools to the agent, allowing it to open web pages, read content, click, type, scroll, and more.
Core Features¶
Right Sidebar “Browser” Card¶
Expand the “Start” page in the right sidebar to see the “Browser” card. The panel includes an address bar, back/forward/refresh buttons, and a live rendering view from a real Chrome/Edge instance. The low-latency mirror runs at approximately 30fps, and click-to-screen feedback is typically around 20–30ms.
Both Humans and the Agent Can Operate¶
The plugin maps mouse clicks/double-clicks/right-clicks/dragging, scroll wheel, keyboard input, and shortcuts (including Chinese IME and paste) to the real browser. While the agent is operating, human and agent interactions do not lock each other out.
No Background Freezing¶
When the mirror page is pushed to the background by a new tab or popup, it automatically restores visibility and focus. Chrome only renders frames for visible pages, and input to hidden pages can be delayed by several seconds. After restoration, address bar navigation and keyboard/mouse operations remain responsive.
Direct Navigation to Links in Conversations¶
Clicking a web link in the conversation (with link open mode set to “sidebar”) opens the browser in the right sidebar and navigates to that address, even if the panel is already open on a different page. Links opened via target="_blank" or window.open within a page also open directly in the mirror view while preserving back/forward history.
Selectable Browser Carrier¶
The plugin supports two carrier modes with a fixed priority order:
- Attach to an existing browser (configured via
attachTo, or auto-discovered debug port); - Launch its own headless Chrome/Edge (using an isolated profile).
Directly Usable by the Agent¶
After installation, the agent gains access to browser_* tools. The first time the agent operates the browser, the right sidebar automatically expands and displays the browser view. During operations, the top of the view shows “dsh is operating the browser,” and the cursor position and click ripples are displayed in real time.
Cookie Management¶
On the “Settings → Browser” page, you can clear the built-in browser’s cookies or import cookies from local Chrome/Edge/Firefox (preserving login sessions after import).
Installation & Activation¶
Chrome or Edge must be installed on your local machine. First, clone the repository, then install this directory into DSH’s web profile:
git clone https://github.com/qwunros/dsh-insider-browser-use
cd dsh-insider-browser-use
dsh plugin --profile web add "<absolute path to this directory>"
You can also select this plugin directory to install it from the Harness Plugins page (recommended).
No configuration is needed after installation; the built-in browser starts automatically on the first browser_* tool call. After installation, you can find the Cookie Management page under “Settings → Browser,” and a “Browser” card will appear on the right sidebar’s “Start” page.
Typical Usage¶
Agent Opens a Web Page¶
The agent can use the browser_open tool to open any URL, and the right sidebar will automatically expand and display the browser view:
// Agent-side example
browser_open({ url: "https://example.com" })
Reading Page Content¶
The agent can use browser_content to read the page body text, or browser_source to read the page source:
browser_content({ selector: "body" })
browser_source({ url: "https://example.com" })
Screenshots¶
The agent can use browser_screenshot to capture a screenshot and return the image (requires the current model to support image input):
browser_screenshot({ selector: "body" })
Interactive Operations¶
The agent can use browser_click, browser_type, browser_key, browser_scroll, and other tools for interaction:
// Click an element (with reference number)
browser_click({ ref: 1 })
// Type text into an input field
browser_type({ selector: "input[name='search']", text: "hello" })
// Send a key press
browser_key({ keys: "Enter" })
// Scroll the page
browser_scroll({ direction: "down" })
Waiting for Elements¶
The agent can use browser_wait_for to wait for text or a selector to appear:
browser_wait_for({ selector: ".result", timeout: 5000 })
History Navigation¶
The agent can use browser_back, browser_forward, and browser_reload for history navigation:
browser_back()
browser_forward()
browser_reload()
Browser Carrier Configuration¶
Attach Mode (Reuse an Existing Browser)¶
If the browser is launched with a debug port, the plugin can directly open a tab within it to drive, without spawning a new process. Login sessions are fully shared with this browser.
Launch Chrome on Windows with a specified debug port:
"C:\Program Files\Google\Chrome\Application\chrome.exe" ^
--remote-debugging-port=9222 ^
--user-data-dir="%LOCALAPPDATA%\dsh-carrier-profile" ^
"http://127.0.0.1:3080"
The plugin probes ports 9222 / 9223 / 9333 in sequence and uses whichever is responding; you can also specify it explicitly:
- id: insider-browser
config:
attachTo: 9222
Or via environment variables:
set DSH_BROWSER_DEBUG_PORT=9222
set DSH_BROWSER_DEBUG_URL=http://127.0.0.1:9222
Electron / desktop shells are equally applicable: as long as it is launched with --remote-debugging-port=<port> (or already exposes a CDP endpoint), simply point attachTo at it.
When No Browser Is Found¶
If the plugin cannot auto-discover a browser, you can specify the browser path and channel via configuration:
- id: insider-browser
config:
browserPath: "D:/Portable/Chrome/chrome.exe"
browserChannel: chrome|edge|brave|chromium
attachTo: 9222
The diagnostics field in the GET /dsh-insider-browser/state response lists discovered candidate executables (with their source), whether attachTo is reachable, relevant environment variables, and the reason for the last launch failure.
Use Cases & Caveats¶
Ideal for scenarios where the agent needs to autonomously browse web pages, extract content, or perform interactions—such as automated testing, web content extraction, and information gathering.
Note: The plugin runs with the current dsh process’s permissions. Review the source code and license before installation. The current version does not support multi-tab views, downloads, uploads, proxies, or extensions; one dsh host shares one built-in browser instance. The screenshot tool requires the current model to declare image input support.
In Brief¶
dsh-insider-browser provides full browser capabilities to the dsh web client, enabling the agent to autonomously browse web pages while maintaining low latency and a good user experience. The plugin supports both attach mode and standalone mode, and offers a rich set of browser_* tools, making it well-suited for scenarios requiring agent-web page interaction.