swyx: AI Agents Build Plausible But Wrong UIs — The Fix Is Making Each Bug Fail CI
After having an agent audit Forge, the GitHub clone swyx built with AI coding agents, the top findings were not aesthetic. PR counts capped at 30, every row showed fake zero diff stats, all buttons rendered in the primary color because Tailwind purged dynamically built class names, and fourteen pages had no real error state. The fix was four small PRs plus a fifth that turns each bug class into a check that fails CI.
When swyx had an agent audit Forge — the GitHub + Actions + Vercel clone he built with AI agents on Cloudflare — the findings weren't aesthetic. The UI looked crafted: workshop theme, custom type, a mascot. But it was confidently showing wrong information. PR counts stopped at 30 because the list fetched one page per state and counted the page, while the repo actually had 229 merged PRs. Every PR row displayed "+0 -0 across 0 files" because the list API never returns diff stats, so the UI printed zeros that nobody questioned. Every button was the same orange, because Tailwind v3 purges class names that don't appear literally in source, and forge-button--secondary was built from a template string. Fourteen pages showed nothing but a red "Error: Not found" line when a load failed.
His central observation: agents optimize for plausible, not true. A page can render, pass typecheck, and look correct in a screenshot while showing numbers no one checked against real data. The "+0 -0 across 0 files" line is the perfect example — well formatted, in the right place, wrong on every row. Nobody notices a plausible zero.
The bugs that matter, he argues, live between layers. The orange buttons were correct TSX producing incorrect CSS. The count of 30 was a correct component on top of a pagination assumption. Unit tests at one layer don't catch these, but a browser does. This is the kind of bug agents make and reviewers miss: the code reads correctly, the types are correct, and if there's a test, it checks that the class string is right — and it is. Only the built CSS is wrong.