Ian Nuttall

Part entrepreneur, part marketer, part software engineer using AI to build stuff on the internet.

Break an AI loop by comparing five refactors

/ 64,972 views / via X

this is the best way to break out of an "ai loop"

when the agent can't fix an issue and you go round in circles, ask it:

- to think of 5 refactors
- evaluate the options
- pick the most reliable option

this just worked first time after fighting gpt-5 and sonnet for 20 minutes!

no, it is still not working. can you fully audit this, thinking of at least 5 possible refactors that could work and be as simple and concise as possible. evaluate the options and then pick the simplest and most reliable option to proceed.

Ian's List

Join 15k+ subscribers