Andrew Ng's Three Loops for Building 0-to-1 Products with AI Agents
Andrew Ng maps three loops for AI-native product building โ agentic coding (minutes), developer feedback (hours), and external feedback (days). From The Batch June 30, 2026. How they differ from Boris Cherny''s loop engineering.
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.
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.
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.
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.