Doom loops happen because the agent keeps mutating its most recent attempt instead of re-examining the premise. Forcing a written summary of state plus three distinct approaches breaks the pattern — and “do not write code until I pick” stops the sixth variation of the same broken idea.

In practice, one of two things happens: the summary reveals the misunderstanding (often yours, sometimes the agent’s) and the fix becomes obvious, or the three options make the trade-offs legible enough to choose well. Either way you exit the loop cheaper.