r/aipromptprogramming • u/Glittering-Glass6135 • Oct 07 '26
How do you verify that an AI coding agent actually finished the job?
I've been thinking about this a lot while building with AI coding tools.
The part that feels weird to me is that the agent is usually both the one doing the work and the one deciding whether the work is done.
It can say "implemented", run a few tests, see green output, and move on. But that doesn't necessarily mean the thing actually works the way you intended, especially with edge cases, permissions, external integrations, or behavior that isn't covered by tests.
I've started experimenting with a separate verification layer for this. The idea is to take what the app is supposed to do, turn those assumptions into concrete checks, and verify the actual behavior instead of just asking the coding agent if everything looks good.
Curious how other people handle this. Do you mostly trust the agent's tests, use another model to review the work, manually test everything, or have a verification workflow of your own?
•
u/endofthread-bot Oct 07 '26
Implement a secondary agent that acts as a test engineer to write and execute integration tests based on your requirements. This creates an objective verification layer that operates independently of the code generation process.
Writing prompts that actually work is easier when you can compare notes with people who have tested them across real tasks. Trade techniques, get feedback on your approach, and see what is working for others in our Discord.
Self-promotion is now allowed on Sundays with the appropriate flair, for all regular contributing members. Contribute during the week, and promote on Sunday.
3
u/BuildingArmor Oct 07 '26
Are people not even looking at what they're getting an AI to build for them now?
Or is this just a poorly veilled ad for something you want to sell, and you're going down the infomercial route where you need to pretend people are complete morons?
2
u/RealSharpNinja Oct 07 '26
Hostile Validation with competing agents
1
u/m1st3r_c Oct 07 '26
Claude does this itself on Ultracode - it'll spin up agents to run adversarial tests on the code and give you a report
1
u/damanamathos Oct 07 '26
Depends on the job. For something simple, I'll just trust it. For more complex things, I get another agent to review it. There's a few ways to do this:
They all tend to work pretty well.
There's also tests, of course, and setting up dev environments where you can see it and try it out (if the code change impacts a UI).
1
u/sreekanth850 Oct 07 '26
Real test. We use AI for backend. once a feature is done, we use full end to end test wih real database and dummy data. this is additional to unit test and integration tests.
1
u/xmlhttplmfao Oct 07 '26
test it to see if it does what you want it to
1
u/johns10davenport Oct 07 '26
Integration test, qa, uat
1
u/Kareja1 Oct 07 '26
QA. You do QA. Open the thing and test it. Make sure it does what you wanted. If you find an error, paste it back with a screenshot, preferably with F12 open if applicable. Be a chaos agent, add a credit card number to the phone number field, write in Arabic, put a hedgehog emoji in the boxes, hit escape and backspace at the same time, TRY to break it.
Everything you do successfully break, ask your agent nicely to add that as a unit test as well. Move onto the next thing.
Sure, it's slower but your shit works when you're done.
1
u/Stunning-Addition779 Oct 11 '26
check out Vericore : verification layer for coding agents.
https://github.com/sonii-shivansh/Vericore