Skip to content

Support direct agent-browser control of Orca browser tabs in addition to Orca CLI browser commands #5610

Description

@AmethystLiang

Summary

Orca browser tabs can currently be automated through the Orca CLI browser command surface (orca snapshot, orca click, orca fill, orca exec --command ...). Add a way for users/agents to control the same Orca browser tabs directly with agent-browser as an additional path, not a replacement for the Orca CLI.

Motivation

Agents that already have the agent-browser skill installed expect to use commands such as agent-browser snapshot, agent-browser click @e1, and agent-browser --provider <name> .... Today, those commands do not know how to discover Orca browser tabs unless routed through orca commands.

This would let agents use the familiar agent-browser workflow against Orca's embedded browser while preserving the existing orca CLI workflow.

Proposed shape

Implement an Orca-owned agent-browser provider plugin or equivalent provider entry point. agent-browser already supports browser.provider plugins that return a CDP URL. Orca already has an internal CDP proxy for browser tabs via the existing AgentBrowserBridge/CdpWsProxy path.

A possible flow:

  1. User/Orca configures an orca agent-browser provider, for example AGENT_BROWSER_PROVIDER=orca plus an AGENT_BROWSER_PLUGINS/agent-browser.json entry.
  2. agent-browser --provider orca snapshot invokes an Orca provider command.
  3. The Orca provider command talks to the running Orca daemon/runtime, resolves the active worktree/browser page, ensures a CDP proxy exists, and returns browser.cdpUrl.
  4. agent-browser connects to that CDP endpoint and runs its normal snapshot/interact workflow.

Requirements / acceptance criteria

  • Existing Orca CLI browser commands continue to work unchanged.
  • The new path is clearly documented as an additional direct agent-browser integration.
  • Users can run direct agent-browser commands against an Orca browser tab after setup, ideally with agent-browser --provider orca ... or plain agent-browser ... when Orca configures the default provider.
  • Targeting should handle the active Orca worktree/browser tab and ideally support explicit browser page/worktree selection.
  • The integration should consider SSH/remote runtime cases; a remote agent may not be able to reach a desktop-local 127.0.0.1 CDP proxy without forwarding or daemon brokering.
  • The provider/attach lifecycle should avoid racing with existing Orca CLI browser commands and should clean up stale sessions/proxies.

Notes

This likely does not require changes in agent-browser core. The cleanest first implementation may be in Orca: add a provider command that implements agent-browser.plugin.v1 with browser.provider capability and returns the CDP URL for an Orca browser tab. A follow-up agent-browser docs/skill update could advertise the Orca provider once the Orca side exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

browserenhancementsize/l

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions