This guide from the Lushbinary agency theorizes loop engineering: the shift from manually prompting a coding agent to designing the systems that prompt it automatically. For two years, extracting value from an agent followed a simple pattern (prompt, context, review, next instruction) where the developer retained control at every turn. Starting June 2026, the leverage shifts: the developer stops being the primary prompter and becomes the designer of an outer loop that discovers work, distributes it, validates results, documents, and decides what comes next. The term, popularized by Addy Osmani (Google), draws on Peter Steinberger ("design loops that prompt your agents") and Boris Cherny (Claude Code/Anthropic: writing loops rather than prompting).
Loop engineering is the third layer of a stack (prompt → context → loop), each encompassing the previous one; complexity does not decrease, the leverage shifts toward design. Geoffrey Huntley's Ralph technique (early 2026) is its pre-terminology validation: a while loop, the same prompt, fresh context on every iteration, durable state on disk (PLAN.md, STATUS.md). Loop engineering productizes it.
A functioning loop requires five building blocks + memory: (1) scheduled automations (Codex Automations; Claude Code /loop, hooks, /goal); (2) git worktrees for parallel agents without collisions; (3) skills capturing project knowledge (SKILL.md); (4) plugins/connectors via MCP (portable across tools); (5) sub-agents separating the "maker" from the "checker"; (6) memory outside the context window (markdown, boards). Claude Code and OpenAI Codex now embed these building blocks under different names but identical structures.
The /goal primitive (Claude Code v2.1.139, May 11, 2026, Opus 4.8 by default; Codex CLI 0.128.0) sustains work until a condition verified by a separate model is met. Hence the imperative: write stop conditions as contracts (end state, proof, constraints, turn/budget cap). The maker-checker split (adversarial verifier) is the most powerful change. A 5-level maturity scale (Manual → Triage → Draft → Verified PR → Auto-merge) guides cautious adoption, with the human staying in the loop as long as the evidence doesn't support stepping back.
Three risks worsen with sophistication: verification remains human ("done" is a claim, not proof), understanding debt accelerates, and cognitive surrender looms. Conclusion: design loops "like someone who intends to remain an engineer."