Foundations
Andrew Ng's three loops
Machine loops sit inside human loops, and the human loops set the pace.
In his June 2026 letter in The Batch (issue 359), Andrew Ng described building new products with AI agents as three nested loops running at different speeds. It is one of the most useful framings of the year, because it puts the machine loop in its proper place: inside human loops.
- Agentic coding loop
- Runs in minutes. The agent works from a product spec and, optionally, evals, then builds, tests and fixes on its own.
- Developer feedback loop
- Runs in hours. A person looks at what the agent built, adjusts the spec, changes direction and re-runs.
- External feedback loop
- Runs in days. Real users, customers or the market react, and the product direction changes.
Ng's example was a typing-practice app for his daughter. Per secondary summaries, the agent ran for about an hour unattended, using a browser to check the UI itself. secondary reporting
Why this matters for loop design
- Faster inner loops make the outer loops the bottleneck. If the agent can produce a working version in twenty minutes, the limit is how fast a person can look at it and say what's wrong. A summary of Ng's framing puts it as "faster agents demand slower human feedback". This connects directly to the review bottleneck.
- Evals are how you move work from the middle loop to the inner one. Anything you can encode as an automated check, the agent can iterate on without you. Anything you can't stays in the developer loop. This is the same insight as writing goals that can be checked.
- Not everything belongs in the inner loop. The external loop, real-world feedback, can't be simulated away. Loops shine when there's a reliable signal close at hand and struggle when the true signal is days away.
Related framings
- The Three Loops of Agentic Coding: A Diagnostic Vocabulary applies the model to diagnose where a team's process is stuck.
- The Agentic Loop: Three Loops in a Trench Coat (HN discussion) argues "the agent loop" is really three loops pretending to be one.
- ADTmag: Loop engineering emerges as developers put AI coding agents on repeat has press coverage tying Ng's letter to the wider movement.
- Pure AI: The loop is the engine inside every agentic AI system