How AI agents actually work — tools, loops, and where they break
An AI agent sounds like magic and is, underneath, a fairly simple loop: the model decides on an action, the action runs, the model sees the result, and it decides again. Understanding that loop tells you what agents are good at, what they cost, and where they break.