Repository navigation
Description
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)
- 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. - 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 newtakeover_waittool waits for the return. - MCP may open the viewer only when the user sets
viewer.mode: "auto". Without it, MCP still never opens a host window. - 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. - 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.
- An agent request never takes keyboard focus. The window grows and a desktop notification appears.
- While a human holds control,
desktop_screenshotanddesktop_waitalso fail closed with busy, like input and the DevTools relay. The agent gets a fresh screenshot when control returns. - 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
- browser: persistent named login profiles #339 Persistent named browser profiles
- watch: native Rust picture-in-picture viewer #340 Native PiP viewer, watch only
- takeover: take control from the native viewer, and agent-requested takeover #341 Take control from the native viewer, and agent-requested takeover
- Docs: one agent guide for logged-in browser work, from login handoff to return, continues in docs: one agent guide for logged-in browser work, from login handoff to return #373
Activity
ElbertePlinio commentedon Oct 28, 2026
#339, #340 and #341 shipped in #344, #349 and #372. The agent guide continues in #373.