Skip to content

[FEATURE]: Agent-first platform foundation and native browser agent #51609

Closed as not planned

Description

@arifonurmamade1-ops
  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Agent-first platform foundation and a native browser agent for OpenCode.

Delivered as a stacked branch (browser-agent, 8 commits on top of dev):

  1. Agent manager lifecycle — coordinates agent instances for task execution.
  2. Background job fan-out with hierarchical cancellation — tests covering fan-out and cancel propagation through the hierarchy.
  3. Task graph DAG orchestrator — schedules dependent tasks as a DAG.
  4. Task graph background job bridge — bridges graph scheduling onto background jobs.
  5. Native browser tool — 17 actions (open/close, navigation, click/fill/select/upload, screenshot/snapshot/eval, console/network/downloads drains, viewport, wait) returning real evidence (attachments, drained logs) for the mandatory web verification loop: modify → run the app → open the browser → test → collect evidence → fix → repeat. Web tasks must never be reported done just because they compile.
  6. browser subagent — a minimal-permission subagent (browser access only) that works alongside the coding agent.
  7. Node.js driver for Playwright — Playwright does not run under the bun runtime (its launcher and WebSocket client hang; verified), so open writes an embedded driver source to the temp directory and spawns node, speaking a JSON-lines stdio RPC for every action. Playwright stays an optional dependency: a missing package or missing Node.js fails with honest, actionable instructions — never simulated browser results.

Benefits: web work becomes verifiable with real browser evidence instead of build success, and agents get a durable, cancellable scheduling stack underneath.

Activity

  1. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • #48436: Browser tool support for UI verification and console debugging.
    • #48377: Screenshot and browser control tools for the agent.
    • #27541: Built-in browser tool for web interaction.
    • #40782: Native computer and browser automation.
    • #20849: Background-agent fan-out and DAG orchestration.
    • #19999: Parallel sub-agent teams with dependency-based task execution.
  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the detailed proposal! The request is a standalone browser tool (Playwright run in a Node.js child process) plus a browser-only browser subagent, so agents can check web work with real evidence instead of a passing build. It also covers a scheduling layer underneath: an agent manager, background-job fan-out with hierarchical cancellation, and a task-graph DAG.

    Some context for v2, which is where development now happens:

    • v2 already ships @opencode/plugin-browser. It exposes the desktop app's browser to agents through Code Mode (tools.browser.*) and covers most of the actions you list: tabs, navigation, click/fill/select, file upload, snapshot, screenshot, evaluate, wait, and console and network logs. It also includes a built-in browser skill for the verification workflow. It currently needs the desktop app's browser to be attached, so a headless browser for the CLI/TUI would be the new part.
    • Your earlier PR feat: agent-first foundation and native browser agent #51610 targeted v1 and was closed when dev became v2. A v2 version would most likely build on the existing browser plugin. The Playwright tool and the subagent could also be published as an external plugin.

    Related issues and PRs:

    Maintainers will consider this.

  3. neriousy commented on Nov 12, 2026

    @neriousy
    Member

    Thanks for the suggestion. This isn't something we plan to build, so closing to keep the tracker focused.

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

Metadata

Metadata

Assignees

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