DeepSeek Harness Browser Automation Skill Plugin

Introduction

Under the DeepSeek Harness (DSH) plugin architecture, enabling a model to drive a real browser requires solving two problems: how to plug browser-control capabilities into the REPL, and how to manage cost and concurrency. This plugin repackages the browser-use agent skill for DSH, driving Chrome through a persistent Python REPL and the CDP protocol, while providing guidance on PowerShell invocation, token budgets, and multi-agent parallel execution.

Plugin Overview

  • Name: dsh-browser-use-skill
  • Maintainer: yunweizhao26
  • Category: Web Tools
  • Description: Browser Use agent skill for DeepSeek Harness: drives real Chrome over CDP via a persistent Python REPL, with support for PowerShell invocation, token budgets, and multi-agent parallelism.

Core Capabilities

From REPL to Browser

The plugin does not directly expose model-callable tools. Instead, it rewrites the browser-use skill documentation into DSH-executable Python REPL cells. The model writes a cell, the REPL executes it against a local Chrome instance, and communication is handled via the CDP protocol.

model writes cell → REPL executes on Chrome → returns result

PowerShell Support

Upstream examples target bash heredocs only. Since DSH runs on Windows with PowerShell, the plugin provides a valid invocation form:

@'
  new_tab(url);
  wait_for_load();
  js(...)
'@ | browser-use

Token Budget and Cost Control

The plugin provides a cost table for reading page content:

Method Token Count
Title ~15
Filtered accessibility tree (5 lines) 300–800
768×768 screenshot ~800
Full-size screenshot (1137×1153) ~1,500
Raw accessibility tree 20k–200k

Rule: Slice the print with a count and a sample; never print all nodes directly.

Multi-Agent Parallelism

By default, one agent maps to one browser session. Agents are distinguished via the BU_NAME environment variable:

$env:BU_NAME = 'agent3'
$env:BU_CDP_URL = 'http://127.0.0.1:9223'

Agents with the same name overwrite each other’s tabs; agents with different names share the same Chrome instance but get independent tabs. If login isolation is needed, assign a dedicated browser to each agent. Memory may become a bottleneck after roughly four local browsers.

The launch script is located at skills/browser-use/scripts/ensure-browser.ps1.

Installation & Activation

Install the Plugin

dsh plugin add dsh-browser-use-skill

The plugin injects configuration via cordis.patch.yml. The skills/ directory is mounted with includeDefaultRoots: false, so it contributes exactly one skill.

Prerequisite: browser-use CLI

Install the pinned version (the upstream API changes frequently between releases):

uv tool install 'browser-use==1.0.6'
browser-use --doctor

--doctor checks installation, browser, daemon, and credentials in sequence.

Typical Usage

The model writes Python REPL cells, which the REPL executes on a local Chrome instance. For example:

new_tab('https://example.com')
wait_for_load()
# Take a screenshot and read the title

The plugin provides skill documentation rather than tool wrappers, so the model must decide how to use the REPL and batch steps.

Use Cases & Cautions

  • Suitable for scenarios requiring a local browser, cost control, and multi-agent parallelism.
  • The plugin runs with the current dsh process permissions; no sandbox is provided. Untrusted tasks should be run inside a container.
  • Chrome remote debugging requires manual approval on every connection and cannot be persisted.
  • The plugin provides guidance only and does not enforce constraints on model behavior.

Ecosystem & Maintenance

  • The plugin is an independent project, not official to DeepSeek or Browser Use.
  • License: MIT.
  • File structure includes index.js, cordis.patch.yml, locale/en.json, icon.svg, skills/browser-use/SKILL.md, skills/browser-use/references/, skills/browser-use/scripts/ensure-browser.ps1, etc.

Summary

This plugin adapts the browser-use skill to DSH, allowing the model to drive a local Chrome via a persistent Python REPL, and provides practical guidance around PowerShell, token budgets, and multi-agent parallelism. Review the source code and license before installing or using.

Directory: https://www.skillhub.cn/plugins/yunweizhao26/dsh-browser-use-skill
GitHub: https://github.com/yunweizhao26/dsh-browser-use-skill

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye