The model writing your tests is not a second opinion, it's the same opinion twice
Most vibe coding advice says to have the agent write the tests alongside the code. I think that's the most expensive habit in the whole loop.
The code and the test come out of the same reading of what you asked for. If that reading is wrong, both are wrong in the same direction and the suite goes green, which is worse than having no suite at all, because now you've got a receipt.
We hit a version of this on Arteza with a balance that went stale. The check was green the entire time, and not because the check was working. Nothing had ever handed it a wrong balance to catch, so green meant untested, not passing.
What I do now is write the assertion myself first. Badly if necessary, three lines is fine. The model implements against it and tidies it up after. The statement of what correct means has to come from outside the thing being graded, and the agent can't be both.
If you vibe code anything that touches money or state, what's your actual habit? Hand written assertions first, or generated tests you promise yourself you'll read properly?
p/chickytutor
p/runevr
p/pagecloud
p/google-cloud-platform
p/producthunt
p/kodlo
p/expert-chase-deleted-1107920
p/findergit
p/talanoa-2
p/fable-fiesta
p/screencursor
p/touchdeck
p/reso
p/statefold-2
p/murror
p/teaserkit
p/contentin
p/lancetta
p/inquir
p/many-displays
Replies
A coding agent fixed a broken parser test by changing the assertion from checking the exact payload to just checking that an object was returned. The suite stayed green for days before anyone noticed the parser was dropping nested fields.
Agree, and there's a second version of this: tests that can't see the thing at all. My API's pytest suite runs on SQLite, which has no Postgres triggers or row-level security. Green every time, and it never touched the parts most likely to leak data. Those I check by hand with psql against a real Postgres, as anon and as a logged-in user. A green suite only tells you about what it could run.
hand written assertions, and only for the handful of paths where being wrong costs someone money or trust. we build voice agents at Dial, and the rule that's held up is: anything where the agent's output becomes someone else's next action without a human in between gets a human-written check first. everything else, I let the generated suite ride because a false negative there just means a slightly worse reply next turn, not a wrong invoice or a dropped call. the expensive mistake is applying the same rigor everywhere, that's how people burn a week hand writing assertions for a button color
Mid-task the agent lost context, recreated an existing helper under a new name two files over, and wrote unit tests against the duplicate. The suite was completely green, but production code never touched either of them.
100%. What's worked for me is writing the tests from the captured intent before the code exists (a TDD stop hook), and having a different model or a human review the spec, not the code. A green suite only proves the agent agrees with itself.