TL;DR — June 30, 2026: Andrew Ng published The Batch letter on X framing three loops for 0-to-1 product building with coding agents — after loop engineering went viral from Boris Cherny (Claude Code) and Peter Steinberger (OpenClaw). The loops run on different clocks: minutes (agent writes/tests code), hours (developer steers product), days+ (users and market). Ng built a typing practice app for his daughter over a weekend as the worked example.
What Ng Added to the Conversation
Developer Twitter already had a name for the inner loop: loop engineering — design cycles where an agent acts, verifies, and retries until a check passes. Ng does not redefine that mechanic. He zooms out and asks: what loops surround the coding agent when you are deciding what software to build, not only how to ship a ticket?
His answer is three nested loops, each with a different owner and time horizon.
TL;DR — Three Loops at a Glance
| Loop | Who drives it | Typical cadence | Job |
|---|---|---|---|
| Agentic coding | AI agent (+ spec/evals) | Every few minutes | Write code, test, iterate until spec met |
| Developer feedback | Human developer | Tens of minutes → hours | Steer features, UI, flows; refine spec |
| External feedback | Users, testers, market | Hours → weeks | Validate vision; inform next spec |
1. Agentic Coding Loop (Inner — Minutes)
This is the loop Boris Cherny and Peter Steinberger popularized under the loop engineering label.
Inputs: Product specification; optionally evals (a dataset measuring performance against that spec).
Behavior: The agent writes code, tests its work, and keeps iterating until the code is bug-free and meets the specification — without the developer sitting in every turn.
Ng dates the idea of closing the loop to roughly end of 2025, and calls it a game changer for productive long runs without human intervention.
Concrete example from the letter: Over a weekend Ng built a typing practice app for his daughter. The coding agent worked for about an hour on its own — including opening a web browser multiple times to inspect what it had built before reporting back.
Cadence: The engineering loop executes quickly. Ng hears from developers that agents may build and test a new version every few minutes. That matches Claude Code /loop and /goal patterns: verification gates, not better one-shot prompts.
This layer is where harness engineering lives — triggers, retries, token budgets, and eval hooks.
2. Developer Feedback Loop (Middle — Hours)
Last year, Ng writes, many developers (himself included) acted as manual QA for coding agents — finding bugs by hand, then asking the agent to fix them. As agents test their own code more reliably, that QA time drops. Developers shift upstack to product decisions:
- Which features matter
- Where the UI needs work
- User flows (e.g. how a parent logs in to steer a child's learning)
Cadence: Tens of minutes to hours — how often a developer reviews the product and gives steering feedback.
Typing app examples: Ng changed his mind on visual design, cat costumes unlockable as his daughter progressed (she loves cats), and the grown-up login flow for supervising the child's practice.
Spec work is still human-heavy: A clear vision does not automatically become a good agent spec. After seeing an implementation, developers update or clarify the spec. If the agent repeatedly hits the same problems, Ng recommends building evals — the bridge between product intent and the inner coding loop.
Context advantage vs taste: AI-native teams increasingly use AI to summarize usage data, customer feedback, and competitive analysis. Ng still sees humans with a context advantage — they know users and environment better than the model — and prefers that framing over vague "taste." While the human knows something the AI does not, human-in-the-loop stays necessary to inject that knowledge.
3. External Feedback Loop (Outer — Days to Weeks)
The slowest loop: friends, alpha testers, production with A/B tests, and similar tactics. Ng notes these rarely finish in less than hours; sometimes days or weeks.
Flow: External data → developer vision → detailed product spec → agentic coding loop.
With coding agents accelerating implementation, Ng observes more engineers playing a partial product management role. The difficulty, he says, is shaping product vision and balancing building (vision → spec → code) with getting user feedback to evolve vision — you need both.
Enterprise readers (Salesforce on X) noted the outer loop in regulated environments also includes policy, governance, audit, and accountability — not only consumer A/B tests.
How This Maps to Loop Engineering Discourse
| Topic | Cherny / Steinberger framing | Ng's three-loop framing |
|---|---|---|
| Primary focus | Autonomous verify-and-retry inside the harness | Product building from 0→1 |
| Time scale emphasized | Minutes per iteration | Minutes and hours and weeks |
| Human role | Define checks, budgets, specs | Steer vision + spec; not only QA |
| Evals | Tests, linters, benchmarks | Explicit eval datasets when failures repeat |
| PM function | Implicit (ship faster) | Explicit — engineers as partial PMs |
Ng's letter is complementary, not competing. Use loop engineering for the inner loop; use three loops when explaining why your team still needs product review and user research even if the agent runs unsupervised for an hour.
Wil Chung and others on X connected long-running loops to older cybernetics and control theory — maintaining desired stasis, not just spinning. Ng's nested clocks are one product-facing instance of that idea.
What People Argued About on Launch Day
Ng's thread drew 235K+ views within hours. Recurring reactions:
- "Same newsletter as email" — Batch subscribers had seen the letter a day earlier; the X post repackaged it for the loop-engineering moment.
- Cost — Critics noted $200/mo frontier subscriptions when arguing the methodology only works for well-funded developers.
- SDLC rename? — Skeptics asked if this reinvents the software development lifecycle with new vocabulary.
- Stateful loops — Builders pointed to tools making long agent runs recoverable across tests, failures, and handoffs (e.g. Loom-style state on GitHub).
- Enterprise — Governance and audit as part of the external loop, not an afterthought.
None of that invalidates the framing; it clarifies where the loops break without budget, evals, or user access.
Practical Checklist for a 0-to-1 Build
- Write a spec the agent can verify — not only a vibe in chat.
- Run the agentic loop with tests or browser checks; cap iterations and spend (guardrails).
- Review on hours cadence — product calls Ng's developer feedback loop; update spec when you change your mind.
- Add evals if the same failure mode repeats — treat them as living spec appendices.
- Close the external loop early — even five friends using an alpha beats infinite inner-loop polish.
- Inject context the model lacks — user constraints, compliance, brand — in the middle loop; do not expect the inner loop to infer them.
For advanced inner-loop patterns (memory, self-correction), see Fable 5 loop design and the context → prompt → loop stack.
Related on explainx.ai
- Andrew Ng's AI Engineering Skills Map (Aug 2026) — Ng's follow-up framework naming the four skills behind running these loops well
- What Is Loop Engineering? — definition and five loop components
- Loop Engineering Goes Mainstream (June 2026) — Boris Cherny, Steinberger, backlash
- Loop Engineering: Coding Agent Loops Guide —
/loop, guardrails, cron - Human-in-the-Loop: When to Let the Agent Run — Ng's context advantage in practice
- Anthropic Engineer: Stop Prompting, Build Loops
- Top 10 AI Agent Loops for Coding
- Loop patterns on explainx.ai
- Graphs vs. Loops: The Agentic AI Orchestration Debate — Ng's new knowledge-graph course reignites the argument
Sources
- Andrew Ng on X — The Batch letter — June 30, 2026
- The Batch — DeepLearning.AI newsletter
Andrew Ng's three-loop framing is from The Batch, published June 30, 2026. Tooling, pricing, and agent capabilities change quickly — verify Claude Code, OpenClaw, and subscription tiers before production workflows.
