Nanobrowser Source Code: The Multi-Agent Scraping Loop — How Executor Drives Planner + Navigator
The Executor's core is a for loop: Planner runs every N steps to guide direction, Navigator executes one operation per step. Planner says done → stop. Navigator says done → Planner validates. Consecutive failures hit the limit → abandon.