Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Why
Agents need page commands on a browser display (snapshot with refs, click, fill, type, press, wait, screenshot) without installing Playwright or a third-party CLI.
chromux (MIT, same author) already has this logic, proven in daily agent use.
chromux itself is deprecated, so its page logic moves into hide browser and its browser-ownership parts stay behind.
Take from chromux
modakbul-gongbang/chromux, chromux.mjs at 93f770f:
| Piece | Where | What it gives |
|---|---|---|
SNAPSHOT_JS: in-page snapshot with @N refs, the --interactive filter and field redaction |
L3051, captureSessionSnapshot L3676 |
the compact page view agents act on |
OOPIF routing: cross-origin iframe sessions and @ns:N refs |
enableOopifRouting L3506, captureOopifSnapshot L3655, clickOopifRef / fillOopifRef L3701-3719 |
refs inside cross-origin iframes |
| Snapshot diff and grep | parseSnapshotText, renderSnapshotDiff, renderSnapshotGrep L3800-3851 |
verifying an action for a few tokens |
| Stable snapshot | captureStableSnapshot L3972 |
waiting for the page to settle |
| Ref to element and point | refToSelector L4575, DEEP_QUERY_JS L4906, resolveDeepElementRect L4680 |
shadow DOM and scroll into view |
| Input | pressKey L5118, typeFocusedText L5126 |
keys and text as CDP input |
| Waits | selectorVisibleExpression, selectorGoneExpression L5070-5080 |
waiting for a selector |
| Action overlay | RECORD_OVERLAY_BOOTSTRAP_JS L4958 (cursor, ripple, flash) |
the operator sees where the agent acts |
| Screenshot | cmdScreenshot L9373 |
Leave behind
Profile launch, the daemon, pause and resume, kill, ps, live tabs and pairing, the extension, Bitwarden secrets, batch fleets, notes, scripts and skill topics: the desktop app owns the browser now.
Scope
hide browser snapshot|click|fill|type|press|wait|screenshot|eval <display>as a CDP client of the scoped gateway (desktop: let agents drive browser displays over a scoped CDP endpoint #156), so it reaches only browser displays and needs nothing beyond thehidebinary.- The in-page scripts (
SNAPSHOT_JS,DEEP_QUERY_JS, the overlay) are carried over as bundled assets with their tests; the CDP orchestration around them is rewritten where the CLI lives.
The PRD decides that home: the RusthideCLI with the scripts embedded (recommended, one binary), or a Node CLI shipped with the desktop app. - chromux's command and output shapes are kept where they fit (
@Nrefs,--interactive,--diff), so agents' existing habits and skills carry over. - An agent skill for
hide browserreplaces the chromux browser QA path in the agent session guidance.
Done when
- Through
hide browseralone, an agent opens a local page, snapshots it, clicks a ref inside a cross-origin iframe, fills a field and verifies with--diff, while the operator sees the action overlay in the display. - chromux's snapshot and ref tests, ported with the scripts, pass against a browser display.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat: let agents drive browser displays over a scoped CDP endpoint (#373
fix: remove the causes of the connected-node runtime test flakes (#1824)