Agentic AI
Bug0 Combines Cached Replays and AI Agents to Speed Up Web Testing
A new QA agent from Linearbytes uses cached browser actions and LLM verification to automate regression testing faster and with fewer flaky tests.
InfoQ
Linearbytes has unveiled Bug0 QA Agent, a source-available Playwright library that harnesses AI to conduct regression tests on web applications. The system bridges the gap between slow, AI-driven testing and brittle, implementation-dependent test suites by learning actions once and replaying them efficiently, while using multiple vision models to verify results.
How Bug0 Combines Speed with Flexibility#
The tool operates in two phases. First, an intelligent agent explores the page's accessibility tree and visual layout to understand how to perform a requested action in plain English. Once that action succeeds, Bug0 stores it as a Playwright command in a Redis cache. On subsequent test runs, the framework skips the expensive language model call and replays the cached action directly—a significant performance gain for large regression suites.
If the underlying UI shifts (buttons move, form fields reorganize), the cached step will fail. Rather than abandoning the test, Bug0 detects the breakage, clears the affected cache entry, and reruns the agent inference to learn the new approach. This self-healing prevents the cascading test rewrites that plague traditional frameworks when developers update CSS classes or element IDs.
Assertions are handled differently: they run fresh on every execution through multiple vision models (Claude and Gemini vote independently, with a tiebreaker model if needed). This consensus-based approach helps catch transient UI issues—like toast notifications or banner errors that appear and vanish quickly.
Bridging the Gap Between Approaches#
Traditional automated testing locks in on implementation details (CSS selectors, data attributes), making tests fragile when the UI evolves. Conversely, fully agent-driven testing incurs steep latency costs: each step may add several seconds and inflates API token usage, while the non-deterministic nature of LLM decisions introduces flakiness of its own.
Bug0's hybrid model addresses both problems. Developers write test steps as declarative English instructions within standard Playwright specs, and the agent learns concrete browser actions during the first run. The caching layer eliminates latency on reruns, while the agent's visual grounding and multi-model verification resistance natural UI changes far better than brittle selector-based tests.

