Loop engineering
Also known as: loop-driven development, autonomous coding loop, iterative agent loop
Loop engineering is what happens when you stop treating a coding agent as a one-shot code generator and start treating it as a process that runs until something is done. The cycle typically goes: read a spec or story, generate code, run tests, review output, fix failures, and repeat. The loop exits when the agent's own criteria are met, or when it hits a configured limit and surfaces the result for human review.
The pattern emerged from practical experience with long-horizon coding tasks. Single-turn prompts work for small tasks, but anything with more than a few moving parts tends to drift or break partway through. Loop engineering adds structure to the iteration: each cycle is bounded, each output is checked, and the loop does not proceed until the check passes. This is closely related to the reflection pattern and plan-and-execute pattern, but loop engineering emphasizes the outer control structure as a first-class design concern, not just the individual agent steps.
Tools like LoopForge operationalize this directly: a PRD (Product Requirements Document, a spec of what to build) seeds the loop, the agent works story by story, and each cycle produces artifacts that are logged. The term 'loop engineering' surfaced in Alibaba's Qwen team documentation in mid-2026 and was picked up in builder communities as a name for this whole approach. It is distinct from the agentic loop concept, which describes the internal reasoning cycle of a single agent step, while loop engineering refers to the outer delivery cycle across many steps.