Ask HN: How to deal with agents constantly messing up padding/alignment in UIs?

3 points by ex-aws-dude ↗ HN
Whenever I use claude or copilot for a UI task I have to spent a lot of time getting the alignment and padding of elements correct

The initial pass of the agent usually works but everything is slightly off and things are out of alignment a lot.

Telling the agent to fix it takes like 5-10 tries sometimes as it tries different CSS changes

It seems the real problem is the agent cannot actually verify the result of how the UI renders

It’s like an open loop rather than closed loop

3 comments

[ 2.1 ms ] story [ 20.5 ms ] thread
Try playwright? Works for me
I go further, how do you work in UI/frontend tasks? As a backend I know how to control agents in backend code, but in FE I am almost lost. Any hint isn’t appreciated