Logic Foundry

Build with understanding.

Bug0 QA Agent combines AI exploration with cached Playwright replay

In a November 19, 2026 report, Linearbytes’ Bug0 QA Agent was described as a Playwright library for browser regression testing. Its approach separates AI-guided exploration from routine replay: developers write test steps in plain English, and the agent maps them to browser actions that can be reused on later runs.

Developers place runSteps in a standard Playwright test, supplying a userFlow, a list of steps and assertions. The reported example adds a T-shirt to a shopping cart by selecting its color and size, then checks that the cart shows the product.

On the first run, the agent inspects the accessibility tree and screenshots to carry out the steps. After a single-action step succeeds, Bug0 compiles the interaction into a browser action and caches it in an in-memory Redis store. Subsequent runs replay that action through Playwright without another round of LLM inference. Complex, multi-action instructions are not cached and still use the agent on every run.

If a UI change breaks a cached action, Bug0 detects the interruption, clears the action cache and returns to its multimodal agent loop to remap the step. This may reduce the need to rewrite tests when implementation details change, but it does not eliminate the latency or variability of agent-driven execution.

Assertions take a different path: they are not cached. The report says Claude and Gemini independently evaluate each assertion using visual input, with a third model resolving disagreements. It also describes video-model checks for short-lived UI defects, such as a disappearing notification or a briefly displayed error banner. For email-based flows, adapters including mailsink and Mailinator can support natural-language extraction of one-time codes and magic links.

The limits of autonomous testing remain relevant. The report cites an April 2025 study by Chevrot and colleagues in which the best-performing autonomous testing architecture agreed with professional human testers on approximately 60% of test runs. That figure comes from the cited study, not a reported benchmark of Bug0.

Licensing matters for adoption: although the report initially calls Bug0 open source, it later identifies its license as Functional Source License 1.1, Av2 Future License. The report describes that license as source-available rather than open source, with a non-compete restriction during its first two years. Teams evaluating the library should account for that distinction alongside its testing workflow.