Read the diff before you click accept.

By (@gracetech) ·

The accept button is the most dangerous button in vibe coding, because it is the easiest one to click without thinking. I clicked it blind once on a big change — the model said it had "cleaned up the auth code", and I took its word for it. What the diff actually showed, which I only discovered later, was that it had deleted the check that stopped logged-out users from reaching the dashboard, and renamed a function the settings page still called by its old name. Two bugs, both in code I never asked it to touch, both shipped because I clicked accept on a diff I hadn't read.

The model will always describe its change in the rosiest possible terms. "Cleaned up", "simplified", "improved" — those are its words, not the truth. The diff is the truth. It shows exactly which lines changed, which were added, which were deleted. A five-line change that the model describes as a refactor might include a deleted validation, a changed API URL, a renamed variable. You only see that in the diff.

My rule now: I read every changed line before I accept anything. If the diff touches a file I didn't ask about, I ask why. If it deletes something, I ask what replaces it. If the diff is bigger than the job I asked for, I make the model explain the extra lines — most of the time, the extra lines are the bug.

It takes a minute to read a diff. It takes an evening to find a bug that a diff would have shown you in ten seconds. The model writes the code; you are the one who ships it. Read it first.

2 likes · 1 view

Explore more on Prompted