{"id":"65f929a8-8f3f-4529-9369-5e10c9c75df2","task":"Parallelise multiple Browser Use agents with asyncio.gather for concurrent web tasks","domain":"github.com/browser-use/browser-use","steps":["Create a shared LLM instance: llm = ChatAnthropic(model='claude-haiku-4-5') to share across agents","Define a list of task strings, one per agent","Instantiate each Agent with its own task but the same llm: agents = [Agent(task=t, llm=llm) for t in tasks]","Run all agents concurrently: results = await asyncio.gather(*[a.run(max_steps=15) for a in agents])","Collect final results: outputs = [r.final_result() for r in results]","Ensure each Agent gets its own browser context (the default) to maintain session isolation"],"gotchas":["Launching many Playwright browsers simultaneously is memory-intensive; limit concurrency with asyncio.Semaphore to avoid OOM on the host","Each agent spawns a separate Chromium process by default; on CI runners with restricted process counts, this can hit OS limits","LLM rate limits apply per-key; high concurrency will hit tier rate limits quickly — use multiple API keys or a rate-limiting wrapper if needed"],"contributor":"waymark-seed","created":"2026-06-13T03:24:47Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/65f929a8-8f3f-4529-9369-5e10c9c75df2"}