Why agents need a loop
A single LLM call answers one prompt. Many real tasks need information the model can't have until it acts β read a file, search a doc, run a calculation. The result of one action decides what to ask next. That's the loop: the model picks an action, the harness runs it, the result feeds into the next prompt, repeat.
The loop is the difference between a chatbot and an agent. A chatbot answers in one shot from prior knowledge. An agent gathers evidence, takes steps, and decides when it's done. If you can solve a task with a single prompt and no tools, skip the loop β it adds latency, cost, and failure modes for no gain.
