lyd123qw2008/pi-control-chrome
Chrome and Edge browser control for Pi, Codex and DSH. Drives your real browser profile, login state and tabs through an MV3 extension and a local loopback Bridge - native CDP, AX-first semantics, no separate browser.
Project Overview项目介绍
This is a Codex-aligned browser control tool that works with three popular AI coding agents: Pi, Codex, and DeepSeek Harness. It connects to the user’s existing Chrome or Edge browser via a local WebSocket bridge and a Manifest V3 extension, so it can reuse the user’s existing profile, including all saved login states, cookies, extensions, and open tabs. You do not need to create a separate browser profile just for agent automation, which keeps friction low after the initial one-time setup. The tool provides full access to DOM, accessibility locators, and native Chrome DevTools Protocol controls, and it returns bounded semantic page state by default to keep token usage manageable.
When using the tool, the AI agent can inspect and claim explicitly selected existing user tabs without moving them by default, keeping the user’s original browsing organization intact. Any tabs created by the agent are automatically placed in a dedicated blue “Pi” tab group for clear separation between user and agent activity. The tool tracks agent ownership, sessions, and lifecycle states such as handoff and deliverable, so it can clean up temporary tabs automatically at the end of each turn without touching user-owned tabs. It is designed for users who want AI agents to handle browser automation tasks while retaining full access to their personal browsing session.
The core Stage 1 and 2 implementation is complete, with additional features like WebMCP integration, GSuite export, and browsing history APIs planned for future development. The tool is released under the open source MIT license, and currently requires manual installation of the extension from the local repository, as it has not yet been published to the Chrome Web Store or Edge Add-ons marketplace. After installation, you should check the extensions page at chrome://extensions to confirm the extension loaded correctly in your normal user profile. All sensitive values are redacted in accessibility and locator results by default, which adds a layer of safety for regular users.
这是一个适配多代理的Chrome、Edge浏览器控制工具,支持Codex、Pi和DSH三类编码代理。它通过本地WebSocket桥和Manifest V3版本的浏览器扩展完成连接,可复用用户已有的Chromium配置文件,保留原有登录状态、Cookie、扩展和标签页,无需新建独立配置即可使用,提供DOM、无障碍定位、原生CDP控制等能力,默认返回限制大小的语义化页面状态。
代理可检查并认领用户明确选中的已有标签页,默认不会移动这些标签,代理新建的标签会被放入专属的蓝色「Pi」标签组,工具会跟踪代理所有权、会话以及各类生命周期状态,每次回合结束会关闭未标记的临时标签,释放认领的用户标签但不关闭,仅保留当前回合标记为交接或交付的标签。适合需要AI代理控制浏览器完成自动化任务,同时保留原有个人浏览状态的开发者和普通用户。
目前第一、第二阶段核心功能已开发完成,未来计划新增WebMCP、GSuite导出、浏览历史API等功能,暂未发布到Chrome应用商店和Edge官方插件商店。工具采用MIT许可证开源,安装仅需手动添加本地扩展,完成一次本地配对即可使用,首次安装后需前往chrome://extensions页面检查普通配置文件是否加载正常。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:pi-control-chrome(lyd123qw2008/pi-control-chrome)
仓库:https://github.com/lyd123qw2008/pi-control-chrome
本站详情页:https://www.yhbd.top/plugins/lyd123qw2008-pi-control-chrome/
本站登记:类型 plugin · 归类 多平台兼容工具(非 DSH 原生) · 许可证 MIT · ⭐ 5 · 最近提交 2026-09-18 · 主语言 JavaScript · 未检测到 DSH 插件清单
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
- No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
- Not DSH-native: a multi-platform tool that may require Node / Electron or another runtime first非 DSH 原生,是多平台兼容工具:可能要先装 Node / Electron 等运行时
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 --profile web add @lyd123qw2008/dsh-tool-control-chrome
把 lyd123qw2008/pi-control-chrome 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
pi-control-chrome
Codex-aligned Chrome and Edge browser control for Pi, Codex and DSH. It reuses the user's existing Chromium profile through a local WebSocket Bridge and a Manifest V3 extension.
The Stage 1/2 core implementation is complete. Later-stage capabilities remain tracked separately in
FEATURES.md.
What it provides
- Reuses the current Chrome or Edge profile, login state, cookies, extensions, and tabs.
- Lets Pi inspect and claim explicitly selected existing tabs without moving them by default.
- Places Agent-created tabs in a dedicated blue
Pitab group. - Tracks Agent ownership, sessions,
handoff, anddeliverablelifecycle states. - Closes unmarked Agent temporary tabs at turn end, releases claimed user tabs without closing them, and preserves only handoff or deliverable tabs marked for the current turn.
- Provides DOM, accessibility, locator, coordinate, and native CDP controls.
- Returns bounded semantic page state by default: visible/actionable snapshot nodes, 20,000-character/200-node snapshot and DOM-CUA budgets, and a shared 12,000-character extract budget. Same-origin iframe text is included by default with bounded
framesdiagnostics; passincludeFrames: falsefor shell-only inspection.browser_snapshotkeeps refs andsnapshotIdwhile Pi/DSH projections omit duplicate raw accessibility and frameTree data; the Bridge advertisescapabilities.compactResponsesand negotiates compact page-read responses, while unspecified mode remains raw-compatible for older consumers; when tab metadata already carries title and URL, projections do not repeat them inside page results, and full page text is reserved forbrowser_extractwhen no semantic state is available. - Accessibility reads prefer the real Chromium AX tree and support full, incremental-diff, and unchanged states; actionable/focusable AX nodes may carry document-scoped
aNrefs, which require the matchingsnapshotIdfor operations. Sensitive values stay redacted in AX and locator results. If the Accessibility domain is unavailable, reads safely fall back to the DOM semantic tree. PassdisableDiffing: trueonly when a complete AX state is required. Snapshot, accessibility, extract, and DOM-CUA reads accept optionalselector,includeFrames, and output budgets. Pi and DSH adapters omit blank optionalselector,snapshotId,incarnation, and screenshotpathfields before dispatch. - Ordinary
role/name, label, and accessible-text locator, wait, and interaction targets now try Chromium AX first. AX resolves the computed role/name/state, then maps the current backend DOM node under the existing document/frame fence; successful actions expose internal provenance asresolvedBy: "chromium_ax". AX ambiguity, incomplete trees, and unsafe DOM mapping fail closed. Only an unavailable Accessibility domain, or a text-only target whose custom clickable element is absent from AX, uses the bounded DOM fallback; selectors, test IDs, and placeholders remain DOM-driven. - Bounds
browser_evaluateresults to depth 8, 2,000 array items, 200 object fields, and 200,000 characters before returning them through the Bridge. - Supports screenshots, page extraction, Console, Network, JavaScript dialogs, file upload, downloads, and clipboard text. Console and Network listings retain at most 200 entries and 20,000 serialized characters per read; Console reads support bounded
only: "errors"filtering andsince/nextSincecursors, includingpageerrorevents. browser_probe_interactionperforms exactly one explicit page action and returns before/after document identity, action confirmation, post-action Console errors, settle status, and post-action target state for UI regression diagnosis. It never replays an uncertain side effect.- Captures ordinary active-tab viewport screenshots without opening a DevTools debugger session; full-page and background-tab captures use a short session-owned debugger lease.
- Persists debugger lease identity across an MV3 worker restart. Ordinary cleanup reports an unverified old lease instead of detaching an untracked target; explicit stale recovery verifies the current tab fence and CDP target identity before detaching it.
- Fences tab handles with a tab fence and document identity. Snapshot refs are document-scoped: the same element keeps its number for the life of the document, and a ref outlives the observation that published it (resolved from the page document registry and reported as resolvedBy: document_registry). DOM-CUA node ids are live observations within their originating document: title/focus changes, user tab switching, later observations, and unrelated DOM churn do not invalidate them; an original detached node can be rebound once only when a strongly equivalent replacement is unique. Navigation, reload, and document replacement remain hard boundaries and reject old observations with
BROWSER_DOCUMENT_CHANGED; tab closure and tab-fence changes reject them withBROWSER_TAB_CLOSEDandBROWSER_TAB_FENCE_CHANGED;navigate(wait: false),back,forward, andreloadreturn a tab markedtransitionPendingwhose handle omits unstable URL/title and document-incarnation fields, so wait or re-observe before document-bound work. Read-only page reads re-observe a user tab and retry once when its document changes, while side-effecting operations that lose document identity return an uncertain result and are not replayed automatically. - Keeps a Manifest V3 Bridge socket active with application heartbeats, preventing idle worker suspension from creating avoidable connection-generation churn during long browser waits.
- Includes a reusable
pi-control-chromeSkill. Browser tool schemas are hidden until that Skill is explicitly loaded for the current session; the bundled CLI remains available for explicit human/developer workflows and tests.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
wuliLiuyue/wxpilot
Tencent/BrowserSkill
anbeime/skill
liustack/modsearch
csyangwen/dsh-memory-evolve