Does your AI agent have a way to see its own mistakes, or are you the only feedback loop?

by•

I noticed something about how I work with AI agents that I’m not proud of. The agent writes code, and then I run the app, see the error, copy it, paste it back into the chat, and wait. Repeat 15 times. I’m basically a human clipboard between the agent and the terminal...

Last weekend I wasted almost two hours on a bug where the page just rendered blank. I kept describing it to the agent (“it’s blank, nothing shows”) and it kept guessing at fixes. Then I finally opened the browser console, and there was a red error in plain sight that told the whole story. The agent never saw it because I never gave it. It was solving a problem it couldn’t observe, and I was doing the observing badly...

I think this is a really underrated part of vibe coding. People spend ages tuning prompts, but the agent being able to run the app, read its own error output and check the result changes the quality way more than clever wording. When it can see the failure, it fixes the real thing. When it can’t, it guesses, and a confident guess looks exactly like a fix until you run it...

What I set up after that:

  • Made sure the agent can run the dev server, tests and linter itself and read the output

  • Added a single command (npm run check) that runs typecheck, lint and tests together, so “done” has a clear definition

  • Pasted browser console errors and failing network requests instead of describing symptoms in words

  • Told it in my rules file to run the check command before saying a task is finished

  • Started asking “how would you verify this works?” before it writes anything

Still figuring out UI stuff, since “looks right” is harder for an agent to check than a failing test...

Do you let your agent run and verify its own work, or are you still the middleman copying errors back and forth..? Has an agent ever told you “fixed!” when it clearly wasn’t..? And how do you handle verification for visual things..?

18 views

Add a comment

Replies

Best

On your visual question, what works for my mobile app is letting the agent see the screen the way I would. My project rules say verify your own work rather than hand over something unproven: analyze after a change that might not compile, and run the feature after it lands. For UI that means the agent installs a debug build on the Android emulator, drives it with taps, takes a screenshot before each tap rather than tapping blind, and reads the device log alongside. The app's own log is written for exactly this: every branch that silently gives up writes a plain sentence, so a blank screen has a chance to explain itself. A screenshot is the UI equivalent of your check command.