Preface¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, enhancing functionality through extension points. For tasks requiring a real browser environment, dynamic content rendering, or complex interactions, dsh-browser-use provides a direct solution. By launching native Chrome or Chromium and utilizing the Chrome DevTools Protocol (CDP) and DOM tools, it equips Agents with browser manipulation capabilities, serving as an alternative to static scraping or search schemes.
What It Is¶
dsh-browser-use is a plugin that provides native browser Agent tools for DeepSeek Harness. Maintained by dengpeihua and licensed under MIT, this plugin is installed independently as a Web profile plugin for DSH and does not require modifications to the DSH source code.
Core Features¶
The plugin provides the following capabilities:
- Native Chromium:Uses native Chrome/Chromium instead of HTTP scrapers.
- Incremental DOM:Prioritizes returning DOM diffs (
+|/-|) to reduce redundant context. - Session Isolation:Each DSH Agent possesses an independent browser process, tab, CDP session, and DOM cache.
- Multi-Tab & Scroll Exploration:Supports creating, switching, and closing tabs, as well as exploring by screen or page position.
- DSH-Native Lifecycle:Uses Cordis,
defineTool, approval, and attachment services. - Explicit Browser Routing:Clearly distinguishes between browser operations and search/scraping.
- Safe Defaults:Chromium sandbox is enabled by default; operations modifying page state require approval by default.
- Bounded Output:Limits script result size, returning only previews, while writing full results to a directory.
- In-Turn Text Retention:Alerts the Agent to record important answers before changing the page.
- On-Demand Recall:Page observations are automatically archived; calls
browser_recallon demand. - Post-Action Post-Conditions:Clicks and inputs can check for specific text or URLs.
- Precise Checkpoint Resume:Supports restoring form values, expanded states, scroll positions, etc.
- Structured & Cross-Origin Diagnostics:Supports JSON-LD, duplicate lists, and bounded results.
Installation & Activation¶
Requirements¶
- Node.js
>=22.19 - Chrome or Chromium
pnpm(Required for the DSH plugin installation command)
Installation Steps¶
Add the plugin to the DSH web profile:
npx @deepseek-ai/dsh@0.1.2-alpha.2 plugin --profile web add dsh-browser-plugin
Typical Usage¶
Once installed, the Agent can describe tasks via natural language. Typical scenarios include:
- Information Extraction:Open a webpage and extract ranking data (e.g., Hugging Face models).
- Form Filling:Open a contact form and fill in specified fields, verifying validation rules.
- Multi-step Research:Investigate a paper’s code repository, dependencies, maintenance status, and reproduction issues.
Use Cases & Notes¶
- Local Build:This plugin is not currently published to npm and typically requires local building and installation.
- Version Dependency:According to the examples, DeepSeek Harness version
0.1.2-alpha.2is required. - Security Mechanism:Sandbox is enabled by default; operations involving page state modifications require DSH approval.
- Compatibility:Compatibility with other versions of DSH has not been explicitly confirmed.
Summary¶
dsh-browser-use brings real browser control capabilities to DeepSeek Harness. Through session isolation, incremental DOM, and precise checkpoint recovery, it provides Agents with reliable multi-step Web task execution capabilities.