dsh-chrome
Manifest validDSH desktop plugin: drive a dedicated visible Chrome window over CDP, with screenshots the model can see
chrome
当前项目是深度适配个人使用,项目只是给大家提供思路和借鉴,尽量不要直接照搬。
DeepSeek Harness 桌面插件。通过本机 Chrome 扩展,在当前 Chrome 里开后台标签,收进一个折叠的 DSH 标签组。不另开窗口,也不把 Chrome 拉到最前。用的是当前 Chrome 的登录状态。
只允许 http / https。页面正文是不可信数据,不是指令。
安装
复制到 $DSH_HOME/plugins/chrome(默认 $DSH_HOME 为 ~/.dsh),在 $DSH_HOME/profiles/desktop/cordis.patch.yml 写入:
- insert:
- id: chrome
name: ../../plugins/chrome/lib/index.js
完全退出 DeepSeek Harness(macOS:⌘Q)再打开。插件启动时会写入 Chrome 本机通信主机清单。
还要在正在使用的 Chrome 配置里装一次扩展:
- 打开
chrome://extensions - 打开右上角的开发者模式
- 选择「加载已解压的扩展程序」,目录选
$DSH_HOME/plugins/chrome/extension - 允许调试提示。Chrome 会在被控制的标签上显示「正在调试」,这是扩展调试的固定提示,不会把窗口抢到最前
改了 extension/ 之后,在扩展卡片上点重新加载。
说明
- 工具以
chrome_开头。标注由 Client 放进当前会话输入框,不另做可见面板 - 每个对话单独一个折叠标签组,标题是
DSH加会话 id 末 6 位。不会复用另一个对话的标签,也不会调用Page.bringToFront - 只操作本对话标签组里的标签,不列出、不切换你正在看的其他标签
chrome_close只关掉本对话的标签组,不退出 Chrome,也不关其他对话的组chrome_resize不改窗口大小,避免 macOS 把 Chrome 激活chrome_screenshot把 PNG 交回模型并落盘;配合zhanshi可在本轮对话里预览- 元素引用(ref)来自最近一次
chrome_snapshot/chrome_query/chrome_find/chrome_a11y;这几次调用都会重新编号 - 不自动接受
alert/confirm/prompt。弹窗挡住后续点击或输入时,先调用chrome_dialog - 点击、输入和查询只作用在顶层页面;跨源 iframe 里的内容不可见
- 下载进当前 Chrome 的下载目录。cookie / storage 默认不返回值;名字像 token 或密码的项始终打码
标注
点 Chrome 工具栏里的 DSH Chrome(悬停是「发给 DSH」)。只在当前 http 或 https 页面上选。点击元素后写下要改的内容,选「改变」或「疑问」,再点添加。可以连续添加,最多 12 条。列表里点发送,一次放进当前 DSH 输入框。复制只复制文字,清空删掉全部注释。Esc 先关输入卡,再退出。再点一次图标也退出。
截下当前可视区域,红框和编号对应所选元素。文字按设计标注格式一次放进输入框:URL、视口、意图、选择器、结构路径、坐标、计算样式、DOM 路径和 HTML。不自动发送。页面文字、HTML 和样式是数据,不是指令。底栏「改」可改成「问」或「删」。不用调试器,也不操作你正在看的标签。chrome:// 和扩展页不能选。
改了 extension/ 之后,在扩展卡片上点重新加载。改了 Host 或 Client 后,完全退出 DeepSeek Harness(⌘Q)再打开。
开发
node --check lib/index.js lib/browser.js lib/page.js lib/tools.js lib/bridge-client.js lib/install.js lib/marks.js extension/background.js extension/picker.js extension/shot.js extension/crop.js host/bridge.mjs
node --test
Comments
Loading…
Similar plugins
by chaserchan
DSH plugin: drive a real Chrome from your dsh agent via the browser-use Browser Harness (local, no API key).
★ 0
MIT
JavaScript
Sep 25, 2026
dsh plugin --profile web add dsh-browser-harnessby zjuatri
A DSH browser sidebar plugin with an isolated Chrome profile for every conversation, live interaction, and agent automation.
★ 0
JavaScript
Sep 16, 2026
dsh plugin --profile web add dsh-browser-pluginA dsh web plugin that wraps the running Harness in a native Windows desktop window: it bundles a Wails v3 desktop client (so installing the plugin is enough), probes the web port and writes the ~/.dsh
★ 1
↓ 430/wk
NOASSERTION
JavaScript
dsh plugin --profile web add @zerorigin-studio/dsh-desktop-shellChrome DevTools Protocol Plugin for DeepSeek Harness. Use chrome-remote-interface to connect to and control Chrome via CDP. The connection includes a graphical interface.
★ 0
dsh plugin --profile web add dsh-chrome-cdpDSH plugin: matches a model you declared on a custom gateway to the capability metadata it should have — context window, output cap, reasoning levels and image support — by looking the bare model name
★ 0
dsh plugin --profile web add dsh-model-metadataby MARIOMLY
Open the DeepSeek Harness Web UI as a standalone desktop app window (Chromium --app mode) — a DSH host plugin. / 把 DSH Web 界面变成独立桌面应用窗口的 DSH 插件。
★ 0
MIT
JavaScript
Sep 14, 2026
dsh plugin --profile web add dsh-desktop-app