How to run many browser agents side by side without them waiting on each other
Give each agent its own named session. In Browser Layer every --session has its own tabs and its own command queue inside one shared browser, so agents do not wait on each other, and stopping one session closes only its tabs.
Name a session per agent
Pass --session <name> to each command, or set BROWSER_LAYER_SESSION in the agent’s environment.
browser-layer --session research tab example.com browser-layer --session checkout tab example.org/cart
Why they do not wait on each other
Each session has its own command queue. A slow command in one session does not hold up a command in another.
Cleaning up
stop in a named session closes only that session’s tabs. close --all closes every session’s tabs in one call. A session that has been idle for 15 minutes loses its tabs when another session runs.
Many pages inside one agent
An agent can also open several pages in one call: tab <url…>, or each '<read>' <url…> to run one read on every page.
Questions
Do sessions share logins?
They share the one browser and its profile, but each session has its own tabs.
How do I close everything?
Run browser-layer close --all.