explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsdictionaryagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • What Ng Added to the Conversation
  • TL;DR — Three Loops at a Glance
  • 1. Agentic Coding Loop (Inner — Minutes)
  • 2. Developer Feedback Loop (Middle — Hours)
  • 3. External Feedback Loop (Outer — Days to Weeks)
  • How This Maps to Loop Engineering Discourse
  • What People Argued About on Launch Day
  • Practical Checklist for a 0-to-1 Build
  • Related on explainx.ai
← Back to blog

explainx / blog

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.

Jun 30, 2026·7 min read·Yash Thakker
Loop EngineeringAndrew NgAI AgentsProduct DevelopmentClaude Code
go deep
Andrew Ng's Three Loops for Building 0-to-1 Products with AI Agents

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.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


TL;DR — Three Loops at a Glance

table · 4 cols
LoopWho drives itTypical cadenceJob
Agentic codingAI agent (+ spec/evals)Every few minutesWrite code, test, iterate until spec met
Developer feedbackHuman developerTens of minutes → hoursSteer features, UI, flows; refine spec
External feedbackUsers, testers, marketHours → weeksValidate 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

table · 3 cols
TopicCherny / Steinberger framingNg's three-loop framing
Primary focusAutonomous verify-and-retry inside the harnessProduct building from 0→1
Time scale emphasizedMinutes per iterationMinutes and hours and weeks
Human roleDefine checks, budgets, specsSteer vision + spec; not only QA
EvalsTests, linters, benchmarksExplicit eval datasets when failures repeat
PM functionImplicit (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

  1. Write a spec the agent can verify — not only a vibe in chat.
  2. Run the agentic loop with tests or browser checks; cap iterations and spend (guardrails).
  3. Review on hours cadence — product calls Ng's developer feedback loop; update spec when you change your mind.
  4. Add evals if the same failure mode repeats — treat them as living spec appendices.
  5. Close the external loop early — even five friends using an alpha beats infinite inner-loop polish.
  6. 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.

Spotted something out of date? Let us know.
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Aug 14, 2026

A Real Claude Code Loop Orchestrator: Heartbeats, Tickets, and Silent Bugs

u/croovies posted a working Claude Code loop orchestrator ("Lloyd," built on scape.work) that checks email, scans app logs for silent bugs, and manages 600+ tickets in a SQLite table every heartbeat. explainx.ai breaks down the pattern — heartbeat vs cron, read-only investigation agents, and a ticket-memory schema you can replicate with plain Claude Code.

Aug 12, 2026

Top 5 Loop Engineering Courses in 2026

Looking for a course on loop engineering — the practice of designing autonomous agent loops instead of typing every prompt? We ranked the top 5, starting with explainx.ai's own course and live workshop, with curricula, prices, and honest fit.

Jul 7, 2026

Claude Code Loops Official Guide: Turn-Based, /goal, /loop, and /schedule (July 2026)

On July 7, 2026, @ClaudeDevs published the definitive Claude Code loops guide by @delba_oliveira — how the team categorizes loops by trigger, stop criteria, and primitive. explainx.ai maps each type to real commands, skills, and the loop-engineering corpus you already have on-site.