Skip to content

Agent browser you can watch and take over: persistent profiles, native PiP viewer, requested takeover #338

Closed

Description

@ElbertePlinio

Problem

An agent that needs a logged-in web dashboard has two poor options today. It can drive the user's own browser, which steals focus and interrupts the user's work. Or it can use a lab browser session, whose profile is deleted at teardown, so every login is lost.

Human takeover also has gaps. pickforge-lab watch --control needs an external VNC client, which many hosts lack. The picture-in-picture viewer from #207 can only watch. The agent learns about a takeover only when its next input fails with a busy error.

Goal

An agent-owned browser that the user can watch in a small pinned window and take over in one click, without touching the user's own browser. Logins survive between sessions. The agent can ask for help, wait, and continue with a fresh screenshot.

Owner decisions (2026-10-27)

  1. A native Rust viewer, pickforge-viewer, reads the lab's X display directly. It needs no VNC server and no Chromium window. During takeover it sends the human's input to the lab display itself. The noVNC viewer stays as a watch-only fallback for npm-only installs. This replaces the plan for a second writable x11vnc in watch: picture-in-picture live view with bundled noVNC and separate take-control #207.
  2. The agent asks for control with a new MCP tool, request_takeover. The viewer grows, shows the agent's message, and sends a desktop notification. The tool waits until the human returns control, then returns a fresh screenshot. When the human takes control on their own, agent input fails with busy, and a new takeover_wait tool waits for the return.
  3. MCP may open the viewer only when the user sets viewer.mode: "auto". Without it, MCP still never opens a host window.
  4. Browser sessions accept a named persistent profile, such as --profile ops. It lives in ~/.pickforge/lab/profiles/<name>, mode 0700, and survives teardown. One live session can use a profile at a time. There are commands to list and delete profiles. There is no site allowlist.
  5. The expanded viewer has a slim bar with "Return control" and "Fullscreen". Closing the window also returns control. Every key, including Esc, goes to the session while the human holds control. There is no return hotkey.
  6. An agent request never takes keyboard focus. The window grows and a desktop notification appears.
  7. While a human holds control, desktop_screenshot and desktop_wait also fail closed with busy, like input and the DevTools relay. The agent gets a fresh screenshot when control returns.
  8. The viewer ships as a separate binary in the Linux release asset, and the installer installs it. The release config change waits for owner approval at merge.

Plan

Refs #207, #21, #17.

Activity

  1. added
    enhancement
    on Oct 28, 2026
  2. ElbertePlinio commented on Oct 28, 2026

    @ElbertePlinio
    MemberAuthor

    #339, #340 and #341 shipped in #344, #349 and #372. The agent guide continues in #373.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions