dsh-chrome
Chrome profile bridge for DeepSeek Harness: control the user's existing signed-in Chrome through the chrome_repl tool, a local HTTP bridge, and the companion WanJuan Chrome extension.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YJSoooooo/dsh-chrome说明文档
阅读完整 README ↗dsh-chrome
让 DeepSeek Harness 直接使用你已经登录的 Chrome。
dsh-chrome 是一个面向 DeepSeek Harness 的 Chrome 控制插件。它把 chrome_repl 工具、control-chrome Skill、通用审批和 /chrome 管理命令打包成可安装的 DSH Bundle,让 Agent 能在用户授权后复用真实 Chrome Profile 中的登录态、标签页和扩展环境。
适合这些任务:操作登录后的后台、复用当前网页、检查页面状态、点击和输入、截图、上传文件、验证 Web UI,以及读取虚拟列表或无限滚动内容。
[!IMPORTANT] 本项目是非官方社区插件,与 DeepSeek AI、DeepSeek Harness 和万卷 Work 均无官方隶属或背书关系。DeepSeek Harness 当前仍处于开发者预览阶段,可能发生破坏性变更;本项目目前适配
@deepseek-ai/dsh-* >= 0.1.0-rc.6。
为什么是 dsh-chrome
DeepSeek Harness 采用“一切皆插件”的架构。dsh-chrome 沿用这套机制,不修改 Agent Loop:
- 通过
ctx.tools注册原生chrome_repl工具; - 通过
ctx.skills注册内置control-chromeSkill; - 通过
tools/pre-execute接入 DSH 通用审批; - 通过
ctx.commands提供完整/chrome文本命令; - 通过
dsh.bundle.patch安装到web或其他 Profile; - 通过
SessionId隔离不同 Agent 的授权、REPL binding 和浏览器任务。
它控制的不是一个空白自动化浏览器,而是用户正在使用的 Chrome。Agent 可以复用现有登录态,但每次调用仍受 DSH 审批或显式限时授权约束。
功能
- 真实 Chrome Profile:复用现有登录态、标签页和浏览器环境。
- 受限 JavaScript REPL:持久保存变量,但不暴露 Node.js、文件系统、进程、网络全局或任意
eval。 - 观察—操作—验证:支持 snapshot、find、inspect、click、fill、press、scroll、evaluate、screenshot、upload、console 和 network。
- 用户标签保护:接管用户已有标签页不会移动、分组或关闭它。
- 任务级标签清理:Agent 创建的普通研究标签页在当前 Turn 结束后自动关闭。
- 明确交付:
markHandoff()和markDeliverable()可以保留需要交给用户的标签页。 - 通用审批:默认每次
chrome_repl调用进入 DSH 审批;也可以用/chrome authorize建立当前 Session 的限时授权。 - 多 Session 隔离:同一进程内的多个 Agent 分别持有状态,共享机器级 Bridge 而不共享 REPL binding。
- 故障恢复:Bridge owner 退出后,其他进程可以接管端口;失败的 Tab finalization 会在后续连接或调用时重试。
快速开始
1. 准备环境
- Node.js
^22.19或>=24 pnpm(DSH 的 Profile 插件命令会调用它)- DeepSeek Harness