1. Review what it writes as it writes it
2. Give it a smaller, more focused, scope to make changes
Or, keep vibing but then don't get mad about it.
Sadly, at my current company, this doesn't seem to be acceptable practice.
In our latest evaluation, one of the criteria was whether you trust AI, with "trust" being defined as letting the AI write all the code, without reviewing it. And of course, not trusting AI meaning that you were behind the curve.