logoalt Hacker News

onion2ktoday at 9:26 AM3 repliesview on HN

I use AI agents to build UI features daily. The thing that kept annoying me: the agent writes code but never sees what it actually looks like in the browser. It can’t tell if the layout is broken or if the console is throwing errors.

I give agent either a simple browser or Playwright access to proper browsers to do this. It works quite well, to the point where I can ask Claude to debug GLSL shaders running in WebGL with it.


Replies

iosephtoday at 11:27 AM

Likewise, and often the playwright skill will verify using DOM API instead of wasting tokens on screenshots

show 1 reply
TZubiritoday at 12:39 PM

+1

All the power to you if you build a product out of this, I don't wanna be that guy that says that dropbox is dead because you can just setup ftp. But with Codex/Claude Code, I was able to achieve this very result just from prompting.

wg0today at 10:42 AM

Do you use Chrome DevTools MCP or how does it work?

show 1 reply