How do you prevent your agents from getting stuck in an infinite review loop?
I've used a simple review loop before: after the main agent makes some changes, a reviewer with new context is called, and the results are fed back to the main agent, repeating this cycle.
However, AI tends to always find problems when you ask them to find one, every additional review round wastes a lot of time. I've also tried skipping the cycle and just doing one round of review, but that feels like I'm just kidding myself.
How do you strike a balance between accuracy and efficiency?