Andrew Ng outlines four practical steps for building agents from loops to graphs
theomitsa · x · 2026-07-24
A repost of Andrew Ng’s PDF lays out four agentic workflow steps for moving from simple loops to graph-like systems.
- Reflection: let the agent write, have a second prompt critique it, then rewrite — a self-review loop can outperform a smarter model with no feedback.
- Tool use: add search, code execution, and APIs; otherwise the agent is mostly hallucinating.
- Planning: ask the agent to break the task into JSON steps before execution and replan when a step fails.
- Multi-agent: split roles across a team — one writes code, one reviews, one tests.
The post frames these as practical wiring patterns for building better agents today, starting with a critique step and then adding more structure as tasks get harder.
More from coding & agent
- OpenAI brings ChatGPT Voice to desktop with control for multiple agents in Codex — jxnlco · 2026-07-24
- User says $400 of Codex credits vanished in 4 hours with four xhigh agents — jxnlco · 2026-07-24
- Why evals may be the missing piece for agents that actually work in business — eptwts · 2026-07-24
- OpenAI brings ChatGPT Voice to desktop with voice control for multiple agents — nicoalbanese10 · 2026-07-24
- Ling-3.0-flash launches with 124B parameters, 5.1B active, and 256K context — BanghuaZ · 2026-07-24
- Charliemarsh says he barely uses /goal anymore after 5.6 — charliermarsh · 2026-07-24