@xiaogaifun: Andrew Ng explains Loop Engineering in just a few words. Andrew Ng is remarkably sharp. In his Newsletter a couple of days ago, he clearly laid out the essence of this new term—Loop Engineering—in just a few sentences. Just finished reading his article, so here’s my take on it. …

X AI KOLs Timeline News

Summary

Andrew Ng interprets the concept of Loop Engineering, where AI autonomously completes development tasks through a cycle of writing code, testing, and fixing. He expands this to developer feedback loops and real-world feedback loops, emphasizing the critical role of humans in providing contextual information.

Andrew Ng explains Loop Engineering in just a few words. Andrew Ng is remarkably sharp. In his Newsletter a couple of days ago, he clearly laid out the essence of this new term—Loop Engineering—in just a few sentences. Just finished reading his article, so here’s my take on it. 1. In a nutshell, Loop Engineering is about enabling AI to work like an engineer: coding, checking, reworking, and iterating until the requirements are met. A typical programmer’s workflow goes like this: write code, run the program, find bugs, fix the code, test again, and repeat until everything works. Now more and more AI coding agents can handle this entire process on their own. Give the agent a product requirements document (Spec) and a set of evaluation criteria (Eval), and it enters a loop: write code → run tests → find issues → fix code → test again. If tests fail, it keeps fixing. If the feature doesn’t meet the spec, it keeps fixing. No human intervention is needed throughout the process. 2. The term Loop Engineering sounds intimidating, but the core idea is actually quite simple. Previously, when we gave AI a requirement, we mostly described what we wanted it to do. Now we also need to tell it in advance what success looks like, what counts as “done,” and how to automatically determine if it’s done. That’s what Spec and Eval are for. With these standards in place, the agent can write code, test it, and fix bugs on its own, creating a true closed loop. 3. Andrew Ng argues that if we zoom out to the entire software development process, what people have been talking about as Loop Engineering is only a small part. So he drew the following diagram, breaking down software development into three nested loops. Beyond the Coding Loop, there is a second loop called the Developer Feedback Loop. In simple terms, this is the process where developers continuously adjust the product. The agent implements the requirements, while the developer refines the requirements. After we actually see a feature implemented, we often realize that what we initially envisioned isn’t exactly what we really wanted. So the developer goes back to revise the requirements and hands them back to the agent to continue development. This loop is typically much slower than the Coding Loop—it might happen every few tens of minutes or even hours. But it determines what the product ends up looking like. Essentially, this part is about the Builder deciding what to build and what shape the product takes. For example, whether a button goes on the left or right—the agent can implement it, but we have to make the judgment ourselves. 4. There’s also a common misconception about this loop: many people think that once the developer has a clear product vision in mind, everything else can be left to the agent. That’s completely wrong. Initially, we write a rough Spec and hand it to the agent to implement. After the first version is built and we actually use it, we often discover: “Oh, this isn’t really what I wanted.” Haha, I go through this experience all the time. So we go back and revise the Spec—adding details we hadn’t thought through or clearly expressed—and then ask the agent to continue development. If we find that the agent keeps making the same mistakes—like always getting stuck on a certain user flow or mishandling a particular type of input—then we need to add a corresponding Eval. This locks down those tricky scenarios as test cases that must pass every time. In other words, the second loop is about continuously calibrating your own understanding and gradually embedding that understanding into the system. 5. I remember attending an event last year where a topic came up: if AI’s taste keeps improving, will we eventually just say what we want and it builds the whole product, with almost no human involvement? Andrew Ng said he doesn’t really like the term “taste.” In his view, the real advantage humans have over AI is not taste, but more context. For example, we know who the users are, what their real usage scenarios look like, and what’s actually bothering them. Much of this information is not in the model’s context. As long as humans possess information that AI doesn’t, we have to stay in the loop to keep feeding that critical context into the system. That’s why the Developer Feedback Loop is hard to fully automate. 6. The outermost loop is about gathering real-world feedback. The inner two loops address implementation-level issues. At this level, the focus is on whether the product direction is actually correct and what features we should build next. By collecting user feedback, analyzing data, studying competitor products, etc., we constantly adjust our product judgment. Questions like: Is this feature really necessary? Is the user’s true pain point actually this? Should the product use a different interaction model? Or maybe we chose the wrong direction from the start? Real-world feedback continuously influences the developer’s judgment. The developer then updates the Spec with new insights and hands it back to the agent for development. That’s how the three loops are related. 7. Very insightful. Anyone confused about Loop Engineering should read this article. I’ve put the article link in the comments. Finally, one last note (maybe redundant): I feel these new terms are just fancy new labels. The reason they go viral is that they precisely hit the changes happening in the AI industry right now. In my opinion, Loop Engineering is recursive self-improvement. Keep Building.
Original Article
View Cached Full Text

Cached at: 07/01/26, 04:10 PM

Andrew Ng put Loop Engineering in a nutshell in just a few words.

Andrew Ng is truly impressive. In his recent newsletter, he used just a few sentences to clearly explain the essence of the new term “Loop Engineering.” After reading his article, let me share my understanding.

  1. In a nutshell, Loop Engineering discusses how to make AI work like an engineer — coding, verifying, and reworking until the requirements are met.

A standard coding workflow for a programmer is: write code, run the program, find bugs, modify the code, and test again until it works.

Now, more and more AI coding agents can complete this process on their own.

Give it a product requirements document (Spec) and a set of evaluation criteria (Eval), and the agent will enter a loop: write code → run tests → find issues → modify code → test again.

If the test fails, it continues to fix. If the feature doesn’t meet the requirements, it continues to fix. No human intervention is needed throughout the process.

  1. The term “Loop Engineering” sounds intimidating, but the core idea is actually quite simple.

In the past, when we gave requirements to AI, we mostly described what we wanted to do. Now, we also need to tell it in advance what counts as success, what counts as completion, and how to automatically determine whether it’s done.

That’s the purpose of Spec and Eval. With these standards, the agent can write code, test itself, and fix bugs on its own, forming a true closed loop.

  1. Andrew Ng believes that when viewed within the entire software development process, the Loop Engineering that everyone has been discussing recently is only a small part.

That’s why he specifically drew the diagram below, breaking down software development into three nested loops.

Outside the Coding Loop, there is a second loop called the Developer Feedback Loop.

Simply put, it’s the process where developers continuously adjust the product. The agent implements the requirements, and the developer corrects the requirements.

When we actually see a feature built, we often realize that what we initially thought we wanted isn’t what we truly want.

So the developer revises the requirements and hands them back to the agent for further development. This loop is typically much slower than the Coding Loop, happening every few tens of minutes or even hours.

But it determines what the product will look like. Essentially, this part is about the builder deciding what to build and how the product should look.

For example, whether a button should be placed on the left or right — the agent can help implement it, but the judgment is still ours.

  1. There’s also a misconception about this loop: many people think that as long as the developer has a clear product vision in mind, everything else can be left to the agent. That’s not true at all.

Initially, we write a rough Spec and hand it to the agent to implement.

After the first version is built and we actually use it, we often discover: “Ah, this is not what I really wanted.” Haha, I experience this all the time.

So we go back and revise the Spec, adding details we hadn’t thought through or articulated clearly, and then let the agent continue development.

If we find that the agent keeps making the same mistakes — for example, a certain user flow always fails, or a certain type of input is never handled well — we need to supplement with an Eval, establishing those error-prone scenarios as mandatory tests for every future development run.

In other words, the second loop is about continuously calibrating our own understanding and gradually embedding that understanding into the system.

  1. I remember an event last year where we discussed a topic: if AI’s taste keeps improving, will we eventually just need to say an idea, and it will build the entire product with almost no human involvement?

Andrew Ng said he doesn’t really like the word “taste.” He thinks the real advantage humans have over AI is not taste, but more context.

For example, we know who the users are, what their real usage scenarios are, and what problems they are actually frustrated by. Much of this information is not in the model’s context.

As long as humans have information that AI doesn’t know, someone must participate in the loop and continuously inject that critical information into the system. Therefore, the Developer Feedback Loop is hard to fully automate.

  1. The outermost loop, in plain terms, is about gathering feedback from the real world. The first two loops address implementation issues.

At this level, the focus is on whether the product direction is correct and what features we should build next.

By collecting user feedback, analyzing data, or studying competitor products, we continuously refine our product judgment.

For example, is this feature really necessary? Is the user’s real pain point this? Should the product use a different interaction method? Or did we even choose the wrong direction from the start?

Real-world feedback constantly influences the developer’s judgment. The developer then updates the Spec with new understanding and hands it back to the agent for further development. That’s the relationship between the three loops.

  1. Very insightful. Anyone confused about Loop Engineering should read this article. I’ll put the article link in the comments.

Finally, just to add one more point — I feel that these new terms are really just a different way of saying things. The reason they become popular is that they precisely capture the changes happening in the AI industry right now.

If you ask me, Loop Engineering is just recursive self-improvement. Keep Building.

Similar Articles

@freeman1266: https://x.com/freeman1266/status/2064702757773496552

X AI KOLs Timeline

This article introduces the concept of Loop Engineering, which involves designing automated systems that allow AI agents to work in autonomous loops, including elements such as automated tasks, work trees, skills, plugins, and sub-agents, thereby replacing manual prompting and improving development efficiency.

@Lonely__MH: Prompts Are Dead, Loop Engineering Has Arrived! Recently, the concept of Loop Engineering in AI programming has sparked widespread discussion in the tech community. In a recent interview, Boris Cherny, head of Claude Code, shared what's happening inside the team…

X AI KOLs Timeline

Claude Code head Boris Cherny proposes that AI programming is shifting from prompt engineering to Loop Engineering. In the future, developers' core task will be designing automated loops rather than writing prompts—a trend that could level the development playing field.

@Cander_zhu: In the past two days, @AnatoliKopadze posted two blockbuster contents, and I read both carefully: 1. His ultra-detailed long article "Loops explained: Claude, GPT, Mira and what actually works" (currently over 8...

X AI KOLs Timeline

This article discusses the application of Loop Engineering in AI agent workflows, focusing on Anatoli Kopadze's detailed explanation of loops and Peter Steinberger's talk at AI Engineer Europe, emphasizing the importance of automated verification loops and acceptance criteria.

@AomyYing: Complete Guide to Loop Engineering: Normal people ask AI one sentence ("Help me write an article"). Experts design a loop that lets AI automatically execute → check → correct → until the result is satisfactory. Core formula (5-step Loop): 1. Define the goal 2. Break down steps 3. …

X AI KOLs Timeline

This tutorial introduces the Loop Engineering method, which designs a cycle of automatic execution, checking, and correction, allowing AI to iterate until the result is satisfactory, upgrading a single query into process engineering.