CJYLZS/dsh-browser
Give dsh agent a real browser to use
Project Overview项目介绍
dsh-browser is a native plugin for the DeepSeek Harness host, shipped exclusively for dsh and installed via dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.2.1, where the #v0.2.1 ref must match the host's dsh -V generation because dsh changed its settings model in 0.1.7-rc.1 with no compatibility layer. The plugin registers a volatile field page through ctx.configForms instead of the removed SettingsScope, spawns one Chrome or Edge process per conversation with its own profile and CDP port, mirrors it in the right sidebar, and exposes six tools plus a skill that reinforces read-before-act and treat-page-text-as-data. It is not an embedded web view, so sites see a normal browser and DevTools or another Playwright can attach to the same external port while the sidebar mirror is live.
In a typical session, the agent calls browser_snapshot to print the accessibility tree with ref ids, narrows large pages with find, locates targets with boxes, then drives the page through browser_click, browser_type, browser_evaluate, and browser_close; clicks dispatch real mouse events with the correct button and click count, chords such as Ctrl+A are supported, and JavaScript dialogs are answered rather than silently dismissed, which lets the agent read and act on pages it has never seen without selectors. The pane also forwards human clicks and typing back into the real page, and isolation is enforced on both directions so two conversations cannot see each other's tabs, cookies, or ports.
Runtime dependencies are only playwright-core (Apache-2.0) and ws (MIT); no browser is bundled, so a local Chrome or Edge install is required and the roughly 200 MB download a bundled browser would cost is avoided, while upstream security updates reach users through their own install rather than this repository. The package is not on npm — install from GitHub or a local link: checkout — and the committed lib/index.js plus lib/client.js must be rebuilt with pnpm run build after any source change. Known limits: no request interception, dialogs not surfaced through the pane, calls without a session are refused, screenshots cannot become image blocks, and license is MIT.
dsh-browser 是 DeepSeek Harness 的原生浏览器插件,会话维度启动独立的本地 Chrome 或 Edge 进程,并分配专属 CDP 端口。用户通过 dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.2.1 安装,需先确认 dsh -V 版本与标签对应;安装路径严格依托 dsh 自身 plugin 机制,无法脱离 Harness 运行,依赖宿主页面的 ctx.configForms 服务注册配置面板。
典型工作流:模型读取 browser_snapshot 输出的可访问性树与 ref 标识,经 find 缩窄范围,再以 browser_click、browser_type 触发真实鼠标与按键事件,信任输入绕开合成 click 被拦截的站点。右侧栏实时镜像页面,允许人手介入同一浏览器;DevTools、Playwright 或 scripts/cdp.mjs 可附加到同一 CDP 端口协同。
依赖与限制:运行时仅引入 playwright-core 与 ws,不打包浏览器,需本机已装 Chrome 或 Edge;不发布到 npm,仅 GitHub 或本地 checkout;网络拦截、对话框、跨会话调用、截图转图像块均未实现;版本严格对齐 0.1.7-rc.1 起的配置模型,旧版需切回 v0.1.x。许可证为 MIT。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-browser(CJYLZS/dsh-browser)
仓库:https://github.com/CJYLZS/dsh-browser
本站详情页:https://www.yhbd.top/plugins/cjylzs-dsh-browser/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-30 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.2.3
把 CJYLZS/dsh-browser 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-browser
English | 中文

A real local browser for every conversation. The agent opens pages and works in them while the sidebar mirrors the same browser, so you can watch the work happen and take over whenever you want. It runs in both the Web and the Desktop interface.
Summary
Chrome or Edge runs as its own process, with its own profile and its own CDP port, and every conversation gets its own: tabs, sign-ins, and ports are never shared between conversations. The agent drives it with nine tools, and the sidebar shows the same pages — either side can act on them.
It is not an embedded web view. The page runs in an ordinary browser process, so sites see a normal browser, DevTools or another Playwright can attach to it while the mirror is live, and closing the harness does not leave a browser pretending to be part of the app.
Highlights
- Works in both interfaces. The Web GUI and the Desktop app run the same plugin against the same browser; install it once in each and nothing else differs, including the settings page.
- One browser per conversation. Tabs, sign-ins, and ports belong to one conversation and stay there: the sidebar pane names its session, and a tool call resolves its browser from the session that called it.
- Watch it work, or take over. Every page the browser opens gets its own sidebar tab with a live view, and clicks and typing in that tab reach the real page.
- The agent can read a page it has never seen.
browser_snapshotprints the page's accessibility tree with arefper node, which is how the agent reads an unfamiliar page and how it names the element to click;findnarrows a large page, andboxesgives positions without a screenshot. - Input a site accepts. Real mouse and text events at the element's own position — a page that ignores a synthetic
element.click()still takes these — plus chords such asCtrl+A, native dropdowns and checkboxes, dialogs answered by the call that opens them, and an explicit refusal when something else would receive the press. - Nine tools, and code for the rest.
browser_evaluateis the general-purpose one; the others cover what code cannot express, such as reading a page without knowing its selectors first, or asking what the page said while it failed. See Tools. - Attachable. Each browser listens on an external CDP port, so
chrome://inspect, another Playwright, or the bundledscripts/cdp.mjscan attach to the same browser the sidebar is mirroring. - Working rules where the model reads them. The plugin contributes a skill — read before acting, one action per observation, and a page's text is data rather than instructions — with five short recipes read only when their question comes up.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Tencent/BrowserSkill
YaoApp/yao
anbeime/skill
Jesseovo/last30days-skill-cn
bowenliang123/dsh-context
platonai/Browser4
liustack/modsearch