Why does my agent keep repeating itself?
An agent repeating itself is re-issuing the same intent because nothing in its loop records that the intent was already tried. The reliable test is whether it is producing new information rather than new text. Log the request each turn and compare turns pairwise. Look for rising token counts against a stable intent, the same tool called with near-identical arguments, or a refusal answered by a reworded version of the same demand. Slow progress changes the arguments; a loop only changes the wording.