← browser-use/browser-use
CodeVetter · Repo Unpack · Data flow

browser-use/browser-use

Scanned commit d8110c5ff8 dated 2026-09-15 — last upstream commit. Generated by codevetter codevetter 1.12.0 on 2026-09-22. Deep analysis by cli:grok via the grok CLI on 2026-09-22 (340s).

A task string enters Agent.__init__, which picks an LLM, builds a system prompt, a MessageManager, a FileSystem, and a BrowserSession. Each step pulls a BrowserStateSummary (DOM text, selector map, screenshot) from the browser, redacts secrets, and sends the message list to the LLM. The model returns an AgentOutput whose action list is validated by Pydantic and executed one by one; ActionResult objects are written back into history and into the next prompt. Side effects leave the process through CDP commands, local files under the agent temp dir, optional conversation and GIF dumps, PostHog, and authenticated POSTs to the Browser Use events API.