Why do LLM agents loop?
An LLM agent loops when its own last output becomes the strongest signal in its next input. A retry, a re-plan or a restated goal feeds the same frame back into the context, and because nothing raises an error, the loop is billable work that looks like progress from outside the process.
Agentic workloads make this worse than a single chat turn does, because the agent is the thing generating its own next prompt. Nobody is in the loop to notice that the last four steps said the same thing.