browser-harness icon indicating copy to clipboard operation
browser-harness copied to clipboard

Support parallelism (via Subagents)

Open epoyraz opened this issue 6 months ago • 1 comments

Before submitting

  • [x] I searched existing issues and discussions.
  • [x] This is a feature request, not a bug.

Problem

I wanted to scrape the menus of the top 300 Restaurants in Zurich (according to TripAdvisor) and use Claude Code Sub-Agents for this task, because it's easily parallizable. Each Restaurant website is independent from the others. Currently, this is not possible, with browser-harness: Subagent's (in Claude Code) would spawn a new tab and then fighting over tabs. Image

Proposal

I am not sure, but i think browser-harness does only use 1 port for the CDP connection. See: https://github.com/obra/superpowers-chrome/issues/24

Alternatives considered

The current alternative is to do it sequentially, which takes 10x more time.

epoyraz avatar May 18 '26 16:05 epoyraz

PR #616 addresses the tab-clobbering half of this: each named daemon (BU_NAME != default) now creates and owns its own tab on a shared local/CDP browser instead of attaching to the first page. With that, parallel subagents each pass a distinct BU_NAME and get socket + tab isolation. Live-verified with two concurrent named daemons on one headless Chrome.

teknium1 avatar Aug 15 '26 11:08 teknium1