My recommendation rn is that you have AI review its own code at least 3 times before a human review.
Once at the end of the current turn.
Once before you submit the PR.
Once after PR submission.
If you do that much you will weed out a lot of dumb mistakes from the agent.