Discussion about this post

User's avatar
Jens's avatar

As always, pragmatic, realistic, and actionable article. Thank you Addy!

Loops are IMO not worth the hype, just as long-horizon agents. They’re often advertised as the hammer that makes everything a nail. In my experience, most work I do is 80% research, understanding, exploration, only the last 20% are the parts that could potentially profit from loops.

First, I need to explore, understand the constraints, form my goal, then the agent can do the easy part. Whether it’s turn-based or looping is not a huge difference for most tasks, for some it is, that’s where loops shine.

Loops today are basically what telling GPT 3.5 „continue“ was yesterday. It‘s the continuation to fulfilling an instruction (initial prompt or initial goal).

Agents can not „keep going until this UI design is good“ because the goal is vague. However, just as I was reading that, I had the idea of an LLM judge board with, say 10 judges, of a few different models (e.g., Claude Opus, GLM 5.2, Kimi K3, DeepSeek V4, …) all score 1-10, the goal could be to score 8+. I‘d be interested in testing whether that yields results that are worth the token overhead.

Marcus Chang's avatar

Thanks for writing this up. Running five to ten in parallel is the part that scales worst, stopping conditions are per loop but your attention is not.

I turned these concepts into a runnable tutorial using Python, now with 500+ GitHub stars: https://github.com/hardness1020/awesome-agent-architecture/tree/main/sections/21-loop-engineering

5 more comments...

No posts

Ready for more?