Loop Engineering Explained: The Buzzphrase That's Replacing Prompt Engineering in 2026
Boris Cherny and Peter Steinberger sparked a viral shift from prompt engineering to loop engineering. Andrew Ng gave it a formal framework. Here's what it actually means and why every AI builder is talking about it.
Three weeks ago, "loop engineering" was a term most developers had never heard. Today it's trending across X with thousands of posts, it's a module title in GenAI bootcamp curricula, and Andrew Ng devoted an entire newsletter letter to formalizing it. If you build with AI agents and haven't encountered this phrase yet, you're about to.
Where the Term Came From
The phrase was popularized in June 2026 after two specific quotes went viral:
- Boris Cherny, creator of Claude Code at Anthropic, said at a developer conference: "I don't prompt Claude anymore. I have loops running that prompt Claude and figure out what to do. My job is to write loops."
- Peter Steinberger, creator of the open-source AI agent OpenClaw, echoed the same shift: "Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead."
The framing was then synthesized and popularized more broadly (with contributions credited variously to Addy Osmani of Google Chrome and others amplifying it), and it spread across a blog post, a Substack essay, and a GitHub reference repository that quickly became something of a community standard.
What Loop Engineering Actually Means
If prompt engineering was about crafting the perfect sentence to send a model, and context engineering was about carefully managing the information surrounding that sentence, loop engineering is about designing the operating rhythm of an entire agentic system — the repeated cycle of plan, act, observe, evaluate, repair, and improve that runs with minimal or no human intervention.
Every well-designed agent loop generally has the same core components:
- A trigger — what starts the loop. This could be a schedule (check for open issues every morning), an event (a PR opens, a test fails, a deploy completes), or a direct human instruction.
- An action phase — the agent writes code, calls tools, or takes real-world actions.
- A verification phase — the agent tests its own output, sometimes opening a browser to visually check what it built before reporting back.
- A repair/iterate phase — if verification fails, the loop runs again, refining the output until it meets the specification or a stopping condition is reached.
Andrew Ng's Three-Loop Framework
On June 30, 2026, Andrew Ng published a widely-shared letter mapping loop engineering onto three nested loops running at different timescales, based on his own experience building zero-to-one AI products:
- The agentic coding loop (minutes). Given a product spec and optionally a set of evals, an agent writes code, tests its own work, and iterates until the code is bug-free and meets spec — often working productively for an hour with no human intervention, including opening a browser multiple times to check its own output.
- The developer feedback loop (tens of minutes to hours). A human reviews the agent's output and provides direction back into the system.
- The external feedback loop (days to weeks). Real users, alpha testers, or A/B test data feed back into what gets built next.
Ng illustrated the concept with a concrete example: over a single weekend, he built a typing-practice app for his daughter, with a coding agent working autonomously for roughly an hour, checking its own work in a browser multiple times before reporting back.
Why This Matters More Than a Typical Buzzword
The signal that separates loop engineering from a passing hashtag trend is who is using it seriously. This isn't marketing language from a single vendor — it's converging language from the creator of one of the most popular coding-agent tools (Claude Code), the creator of a major open-source agent (OpenClaw), and the person who taught a huge share of the industry machine learning fundamentals (Andrew Ng), all independently arriving at the same frame within weeks of each other. When builders and educators converge like that, the underlying shift is usually real, even if the label itself fades.
There's also a practical, structural reason it's catching on now: by mid-2026, coding agents became capable enough to run multi-step tasks autonomously for hours at a stretch. The bottleneck shifted from model capability to orchestration design — meaning the leverage point moved from crafting individual prompts to designing the control systems that orchestrate an agent's behavior over time.
The Pushback
Not everyone is fully on board. Critics have pointed out that the loop-engineering workflow, as demonstrated by high-profile practitioners, often assumes access to premium-tier AI subscriptions costing hundreds of dollars a month — a meaningful barrier for solo developers and smaller teams. There's also a broader critique that the framing remains fairly abstract, and that more concrete guidance on which specific problems loop engineering solves would help developers apply it without reinventing the wheel themselves.
How to Actually Apply Loop Engineering Today
- Start with automations and cron-style triggers. The most common real-world use cases reported by developers are event-driven triggers (an error is logged, a ticket is created) and scheduled cron jobs that kick off agent work on a cadence.
- Design for a maker/checker split. Separate the agent that produces work from the agent (or process) that verifies it — this mirrors the "sub-agent" pattern showing up in early loop-engineering toolkits.
- Give the loop durable memory. A loop that resets its understanding every run is far less useful than one with a persistent state or memory layer outside any single conversation.
Frequently Asked Questions
What is loop engineering? Loop engineering is the practice of designing systems that repeatedly prompt, run, and verify AI agents — plan, act, observe, evaluate, repair, improve — rather than a human manually crafting and sending individual prompts.
Who coined the term loop engineering? It was popularized in June 2026 after Boris Cherny (creator of Claude Code at Anthropic) and Peter Steinberger (creator of OpenClaw) both described moving away from manual prompting toward designing agent loops; Andrew Ng later gave the concept a formal three-loop framework.
Is loop engineering replacing prompt engineering? Not entirely — most practitioners describe prompt engineering as "table stakes" that loop engineering builds on top of, rather than a full replacement. You still need good prompts inside a well-designed loop.
Do I need an expensive AI subscription to do loop engineering? Critics have noted that many of the highest-profile examples rely on premium-tier subscriptions costing roughly $200/month, though the underlying principles (triggers, verification, iteration) can be applied at smaller scale with cheaper models too.
Sources referenced: Andrew Ng on X, June 30 2026; The Pragmatic Engineer — "What is loop engineering?"; explainx.ai — "What Is Loop Engineering?"; AI Builder Club — Loop Engineering Guide 2026; Aishwarya Srinivasan Substack.