How do you break the loop when an agent repeats the exact same broken fix?

You point out a bug, the agent replies with You're absolutely right! and then outputs almost the exact same broken code with a slightly different variable name

Usually when this happens twice in a row I know the current context is polluted and it's faster to just revert and write the 10 lines myself

Do you have a specific prompt trick that snaps the model out of that loop or do you just cut your losses and take over manually?

10 views

Add a comment

Replies

Best

fresh session with a two line note, what it already tried and what should happen instead