Only the best are using them...

· Source: Matthew Berman · Field: Technology & Digital — Software Development & Engineering, Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Expert, long

Summary

A new AI coding paradigm, "loop engineering," is gaining traction, championed by figures like Peter Steinberger (OpenAI) and Boris Cherny (Anthropic). This approach shifts from direct prompting of coding agents to designing autonomous loops that define an end goal and continuously iterate until it's met. A loop requires a trigger (e.g., PR opening, schedule, human initiation) and a verifiable goal, which can be deterministic (passing tests) or non-deterministic (LLM evaluation). Practical examples include automating PR reviews in Cursor, where an agent fixes issues and ensures tests pass. While basic loops are straightforward, complex implementations for amorphous goals are challenging and can lead to high token costs, as exemplified by Steinberger's \$1.3 million monthly usage. Despite current expense and setup difficulty, particularly for those without "infinite token budgets," loop engineering is presented as the future of software development, enabling agents to autonomously build and iterate.

Key takeaway

For AI Engineers exploring advanced development paradigms, understand that shifting to loop engineering can significantly enhance agent autonomy and output. While current token costs are high and setup can be complex, focusing on deterministic, verifiable goals initially will mitigate expense and improve reliability. Begin experimenting with basic loop structures for tasks like automated code review to prepare for this future shift in software factory design.

Key insights

AI coding loops automate development by defining a verifiable end goal, allowing agents to self-iterate until completion.

Principles

Method

Design a loop by specifying a trigger (action, schedule, human) and a verifiable end goal. The agent then iterates autonomously until the goal is met.

In practice

Topics

Best for: AI Engineer, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Matthew Berman.