Three Key Loops for Building Great Software
Open the sourceAndrew Ng describes three nested loops he uses for building 0-to-1 software products with AI: an agentic coding loop, a developer feedback loop, and an external feedback loop. He argues that as coding agents test their own work, developers shift toward higher-level product decisions. He also argues that humans remain essential because of their context advantage over AI.
- In the agentic coding loop, an AI agent writes code from a spec (and optionally evals), tests it, and iterates for long periods without human intervention. - In the developer feedback loop, the developer reviews the product every tens of minutes to hours and steers the agent, updating or clarifying the spec. - Coding agents now test their own code, so developers spend much less time acting as QA and more time on product decisions. - He frames the human contribution as a 'context advantage' rather than 'taste', and says this is why human-in-the-loop is still needed. - The external feedback loop (friends, alpha testers, A/B tests) is slow, taking hours to weeks, and it informs the developer's vision. - Engineers increasingly take on partial product management roles and must balance building with gathering user feedback.
Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.
Supports these rules
Use AI to support thinking, not replace it
ConfirmedLet customer feedback sharpen judgment
ConfirmedReplace one-shot generation with iterative workflows
ConfirmedUse evaluations and targeted error analysis
Quotes from this video
“we can have an AI agent write code, test its work, and keep iterating until the code is bug-free and meets its specification.”
“If you find that the system repeatedly runs into certain problems, building a set of evals for the agent becomes useful.”
“So long as the human knows something the AI does not, human-in-the-loop is needed to to inject that knowledge into the system.”
“I prefer to think of it as humans having a context advantage,”
“striking a balance between building (bridging the gap between vision and spec) and getting user feedback to evolve the vision. It is important to do both!”
“this function has decreased significantly. This allows us to make higher-level product decisions, such as what key features to offer, where the UI needs improvement, and so”