Skip to content

oxa: browser and screen tools (navigate, screenshot, click) as an optional tool set #26

Open

Description

@n0rpan

From the owner's dogfood session on 2026-11-16: oxa has no tools for driving a browser, taking screenshots or clicking in a GUI. Not now (the Rust-only MVP and the lead come first); recorded so it is designed when its turn comes: optional, off by default, nothing in the prompt prefix unless enabled, sandbox and permission rules decided first.

🤖 Generated with Claude Code

Activity

  1. oxa-orchestrator commented on Nov 18, 2026

    @oxa-orchestrator
    Contributor

    Design: use vercel-labs agent-browser and agent-desktop, toggled on in one step

    Choice. Do not write our own browser or computer-use stack. Use the two upstream Rust CLIs as optional external tools:

    Both are Apache-2.0 and read the accessibility tree as compact text with element refs, instead of screenshots. That is far fewer tokens per step, and stale or covered targets fail loudly instead of "succeeding". They stay out of the oxa binary: they are large, release weekly, and agent-browser brings its own Chrome.

    Toggle (one command, nothing in the prompt until enabled):

    oxa tools enable browser     # or: desktop
    oxa tools update browser     # explicit; never silent auto-update (a new version is new code)
    oxa tools disable browser    # off and out of the prompt; `remove` deletes the files
    

    How enable downloads (fail closed at every step):

    • The source is fixed in code: the latest release of vercel-labs/agent-browser or vercel-labs/agent-desktop through the GitHub API over HTTPS. There is no configurable URL.
    • It picks the asset for the host (linux x64/arm64, glibc/musl; macOS later).
    • It verifies the SHA-256 against GitHub's asset digest. For agent-desktop it also checks checksums.txt and its GitHub build-provenance attestation (published for v1.3.1).
      • agent-browser v0.43.0 publishes no checksum file and no attestation. enable must say plainly "integrity checked against the GitHub release digest; no build provenance" and require an explicit confirm.
    • It installs into a per-user tool directory, mode 0700, keyed by version. The version and digest are pinned in user settings. Runs use only the pinned file and re-check its digest.
    • agent-browser's Chrome for Testing download is a separate, confirmed step. A system Chromium is an option.

    Permissions (decide before any code):

    • Pages are untrusted input (prompt injection): page text is data, never instructions.
    • The browser uses its own isolated profile. Attaching to the user's Chrome (--auto-connect, --cdp to an existing browser) is refused.
    • An optional domain allow-list. eval is off by default. Form submits and downloads go through the normal approval.
    • Desktop control: off by default and enabled per session. Headless accessibility actions only; physical input (--headed) needs its own approval. Text goes via --stdin, never argv.
    • Snapshots, screenshots and clipboard reads can hold private content. They never go into logs, reports or a2a messages unredacted.

    Integration: agent-browser through its MCP server (agent-browser mcp) on oxa's existing MCP client. agent-desktop through a thin typed adapter over its one-JSON-envelope-per-command output.

    Order: the product feature stays after 0.2.1. Before that, agent-browser is used as a developer tool only on n0rpan, to test the lead web UI (#1030) end to end. Every gap found there is recorded here.

  2. oxa-agent commented on Nov 18, 2026

    @oxa-agent
    Contributor

    Dev-tool setup gap, refs owner design6973156437. On n0rpan only, the verified v0.43.0 Linux x64 release binary succeeds at --version but agent-browser skills get core exits1 in its isolated HOME: “Skills directory not found. Install skills under ~/.agent-browser/ or set AGENT_BROWSER_SKILLS_DIR.” The standalone native asset does not supply the advertised version-matched guide in this environment. No existing browser/profile was inspected or attached. Continuing with native CLI help and pinned upstream documentation; Chrome for Testing installation is a separate owner-authorized step. This is a developer-tool gap, not a product integration or live UI acceptance claim.

  3. oxa-agent commented on Nov 18, 2026

    @oxa-agent
    Contributor

    Second dev-tool setup gap on the owner-required versioned installation path: v0.43.0 with isolated HOME/XDG and an explicit unique namespace/session refused before launch because its derived Unix socket path was138 bytes (limit103). No existing browser was attached. Applying its documented AGENT_BROWSER_SOCKET_DIR override to a short private0700 directory under the developer cache, keeping the binary, profile and all browser data in their isolated versioned directories. No /tmp, default/shared session, CDP attachment or product integration is used. Chrome for Testing158.0.8127.36 has installed under the isolated tool HOME; actual live UI checks still wait for N0 owner-access handoff.

  4. oxa-agent commented on Nov 18, 2026

    @oxa-agent
    Contributor

    Third isolated setup gap: after shortening the agent-browser daemon socket directory, Chrome158.0.8127.36 itself exited before DevToolsActivePort with “Socket path too long” for its SingletonSocket under the versioned TMPDIR. The tool correctly reported browserLaunched:false; no existing browser was reused. Retrying with a separate short0700 developer-cache TMPDIR while retaining the required versioned0700 binary and isolated profile. This uses no /tmp or shared session, and does not weaken browser/TLS policy. Live Lead access has not been attempted yet.

  5. oxa-agent commented on Nov 18, 2026

    @oxa-agent
    Contributor

    Dev-only installation completed on n0rpan: agent-browser v0.43.0 Linux x64 asset741434933, SHA-2568e69c9fb662514c9cf36e4911e94e913742ba066e55102486350e049dd847612, checked against GitHub’s release asset digest before first execution and rechecked before commands. Binary/version directory are0700 under ~/.local/share/oxa-dev-tools/agent-browser/v0.43.0/. Integrity checked against the GitHub release digest; no checksum file or build-provenance attestation exists. Chrome for Testing158.0.8127.36 installed in the isolated tool HOME. With short private0700 cache socket/TMPDIR paths, a fresh headless named session reports launched:true/reused:false, opens about:blank, applies390×844 viewport, reports no console/page errors, and closes only its own session. Explicit custom profile/config and empty ambient environment; no existing browser, CDP attach, profile import, real keys, /tmp or laptop installation. The guide/socket/TMPDIR gaps above remain recorded. This is tool smoke proof; live Lead owner-access and real chat acceptance are separate #72 checks.

  6. n0rpan commented on Nov 19, 2026

    @n0rpan
    ContributorAuthor

    Triage 2026-11-19: this issue is now tracked in #163 (Cluster: Images: generation in oxa and image input, priority P1). It will be fixed there together with its related issues, not one by one. Note: Browser and screen tools, later (P2).

  7. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions