Introduction¶
In DeepSeek Harness (DSH), a common approach for letting models operate web pages is to mount MCP and ingest the entire set of atomic actions from CLIs like agent-browser into the context. This leads to a large number of actions, difficulty controlling freshness per step, and challenges in implementing loops and audits within the plugin. The community plugin dsh-agent-browser (maintainer j62268781-alt) takes a different path: based on the Rust + CDP agent-browser, it registers a set of narrow tools in DSH, provides a settings page, and optionally offers a browser_run bounded decision loop driven by dsh-judgment. The following introduces what it is, what it can do, and how to install and use it.
What is this¶
dsh-agent-browser is a browser automation plugin for DSH, categorized as “Web Tools”. It wraps the agent-browser CLI into a small number of host tools, combined with in-page DOM candidate extraction, an installation self-check UI, and an optional Jev + upstream LLM low-cost early-stopping loop. The plugin is Zero MCP: it only registers tools when enabled is set to true; when “Browser Function” is turned off, relevant tools do not enter the model context.
The README states: unlike agent-browser mcp which globally exposes a large number of atomic actions, this plugin emphasizes forms such as plugin-internal bounded loops, per-step freshness gating, action auditing, and a settings page; design trade-offs are detailed in DESIGN.md within the repository.
Core Features¶
Narrow Tool Surface¶
| Tool | Function |
|---|---|
browser_snapshot |
Accessibility tree and @eN refs, returning origin / refs / digest; snapshot before action. |
browser_act |
The sole mutating entry, one action at a time (click, fill, type, press, select, scroll, etc.); optional expectUrl / expectName for pre-execution freshness assertions. |
browser_read |
Read-only: read markdown by URL, or read element text/html/value/attr, etc. |
browser_session |
open / close / tabs; uses named sessions without hijacking other agents or user windows. |
browser_screenshot |
Screenshot (can be disabled). |
browser_raw |
Escape hatch for other CLI subcommands within a whitelist; disabled by default. |
browser_run |
Registered when “Decision” is enabled: one-sentence goal → plugin-internal bounded loop → returns trace and handoff. |
Refs are bound to element identity (README notes tested in 0.38.2): when the page changes or an element disappears, old refs will error out and will not silently click on other elements.
Settings Page and Installation Self-Check¶
Configure in Settings → Browser after installation. The top summary automatically checks two items:
- agent-browser: If not installed, installation can be triggered from the settings page (Homebrew preferred, otherwise
npm i -g). - Chrome: Mandatory; the plugin does not install Chrome on behalf of the user, only provides detection and download guidance.
When both items pass, it displays “Browser environment ready”.
Built-in Skill¶
The plugin ships with skills/agent-browser/ (SKILL.md and references/), registered via ctx.skills.register() at startup; if the host does not have dsh-skill installed, it skips this, and other functions remain unaffected.
browser_run Decision Loop¶
When decision-making is enabled, browser_run(goal, inputs?, subgoals?, allowIrreversible?) is available. The loop extracts candidates within the page → deterministic completion gate → calls ctx.judgment.ask → executes a single step action. The judgment purpose defaults to the name browser.action, which needs to be configured with a dsh-judgment connection in Settings → Decision. If there are issues with judgment, keys, or quotas, it will explicitly fail rather than silently falling back to the main model.
The README notes: browser_run has been verified on a real-device benchmark of 39 tasks; action audit logging to disk and quota visualization are still planned items (DESIGN.md §8).
CLI Version and Performance¶
The plugin locks the agent-browser version to >=0.38.0 and <0.39.0 (README benchmark tested on 0.38.2). The plugin attempts to resolve to the native binary to reduce Node wrapper script startup overhead; browser.executablePath can also be configured.
Installation and Enablement¶
Install Plugin¶
dsh plugin --profile desktop add https://github.com/j62268781-alt/dsh-agent-browser.git
After installation, turn it on and configure it in Settings → Browser.
Install agent-browser¶
The CLI needs to be installed separately, with the version in the [0.38.0, 0.39.0) range:
brew install agent-browser # or npm i -g agent-browser
agent-browser --version
Enable Decision (Optional)¶
If using browser_run, establish a judgment connection in Settings → Decision and point the purpose name browser.action to that connection (default is this name).
Typical Usage¶
Manual Tool Chain: Snapshot → Action¶
- Use
browser_sessionto open a named session. - Use
browser_snapshotto get current page refs. - Use
browser_actto perform a single operation on the specified ref; re-snapshotting may be required as the page may change.
Delegate to browser_run¶
With decision-making configured, call browser_run passing a natural language goal; for complex cases or missing inputs, the plugin will early-stop and hand back. The return value may contain candidate refs and a page summary, and the host can continue using browser_act.
For development and verification, the repository provides scripts such as pnpm probe (real browser probe) and pnpm bench:tasks (real-device task benchmark); see the “Development” section of the GitHub README for details.
Applicable Scenarios and Notes¶
Suitable for: Teams or individuals already developing agents under the DSH desktop profile, who wish for browser capabilities to enter the context via a small number of tools, and require settings page self-checks and an optional judgment loop.
Notes:
- The plugin runs the browser and CLI with the current DSH process privileges; please read the source code and MIT license (
package.jsonversion 0.1.0) of the GitHub Repository before installation. - Must have Chrome and
agent-browser(within the version range) installed locally. - The community directory SkillHub Plugin Page is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-agent-browser condenses agent-browser into a narrow tool surface, settings self-checks, and an optional browser_run closed loop available to DSH, avoiding throwing the entire CLI action wall into the model context. For further information, please visit the SkillHub Directory Page and GitHub: j62268781-alt/dsh-agent-browser.