Project · AI testing · past project · Started Apr 2026
QA agent
Give it a URL and a goal in plain English — “register a new user and check you land on a signed-in dashboard” — and it drives a real browser like a manual tester: reads the page, fills forms, notices what's broken, and files a bug with exact repro steps and a screenshot. Built after leaving Hims as something a company could buy instead of hiring an SDET, then rewritten once when the first design hit its limits.
The problem
Scripted suites only catch the bugs someone thought to write a test for
And they break whenever the UI moves. A good manual tester covers that gap: the button that does nothing, the “undefined” in a price label, the form that submits without feedback. The QA agent puts that judgement in a loop that runs unattended, with costs a company can predict.
How it tests
The model decides; the tools keep it honest
- 1
Two ways to see a page
look returns every interactive element with coordinates plus same-origin console and network errors — text only, cheap. screenshot adds the image, and it's told to use it on a first visit, when checking visual quality, when confused, and before filing a bug.
- 2
Selectors execute, they never decide
It chooses what to click from what it sees and prefers click_at(x, y), which holds up on custom controls that aren't real buttons. A standing rule in the repo: never write 'if the URL contains X, click Y'.
- 3
Asks a human when stuck
On a CAPTCHA, or two valid paths with no way to tell which was meant, it calls ask_operator. The question appears in the dashboard and the run waits for an answer.
- 4
Explore once, start smart
An Explorer crawls larger apps, has Haiku classify every page state, and stores pages and transitions as a graph in Postgres. The graph compiles to site knowledge for later runs.
Bug reports
False positives decide whether anyone trusts a QA tool
Steps quote what it actually typed
v1 paraphrased its repro steps and invented values that didn't match its own input. With tool use it quotes its own calls, so the steps are real.
Only the app's own errors count
v1 filed analytics, feature-flag and cookie-banner failures as bugs. v2 filters them out before the model ever sees them.
A written definition of a bug
Definite bugs (visible errors, broken images, undefined/NaN in the UI, same-origin 5xx, silent submits, endless spinners), likely bugs, and explicit not-bugs. That list is the first defence against false positives — one bogus report teaches a team to ignore the tool.
Cost
Predictable spend, designed in from the start
Model per turn
Haiku by default; Sonnet on the first three turns, after any screenshot, after two tool errors in a row, and every 15th turn.
Cheap perception first
look by default; a 1280×720 screenshot costs roughly 1.2k input tokens, so it's spent only when it buys something.
Caching and a window
Prompt caching on the system prompt and tool definitions, and a 20-message window with a one-line summary of what it dropped.
What I learned
The real gap is investigative QA, not navigation
It could finish a flow and report what was obviously broken. A senior tester also notices when nothing happened: no request, no spinner, no error. The next thing to build was an action-outcome observer that diffs page state before and after each action, then a structured way to investigate — specced, not built, when I stopped.
Stack