
Architecting a plan-and-execute agent harness for real-time steerable discovery at scale
Netflix's 'AI Discover' transforms content discovery from passive browsing into an interactive experience where members steer themes directly on their TVs. To operate LLMs at Netflix scale, the engineering team built a dedicated intelligence layer behind the TV app. This post details how they decoupled planning from execution, modularized core recommendation systems into verifiable capabilities, and built asynchronous pipelines to balance quality, safety, and performance.
Essential reading for backend architects and AI engineers looking to integrate LLMs into high-throughput production systems. It provides practical lessons on managing latency, enforcing governance, and modularizing legacy microservices for AI orchestration.
Netflix aimed to introduce an interactive, AI-driven discovery experience (AI Discover) on TV devices, facing the challenge of integrating slow, unpredictable LLMs into traditional recommendation engines without compromising latency, reliability, or content safety.
They implemented an intelligence layer functioning as a plan-and-execute agent harness (consisting of a Controller and an Executor) that pre-validates request plans and asynchronously orchestrates LLMs alongside existing catalog recommendation and ranking systems.
The architecture maintains instant UI responsiveness for TV remote navigation while reliably serving personalized, steerable recommendations that strictly comply with catalog availability and maturity ratings.
Trade-off
To eliminate LLM latency spikes and hallucination risks, open-ended text chat was constrained to UI theme selections, and multi-step generative execution required introducing asynchronous state indicators for members during multi-second wait times.
A middleware layer that decides how to combine LLMs with existing recommendation, retrieval, and ranking microservices for every request.
An agent architecture where an LLM drafts an execution plan graph upfront, which code then validates and executes deterministically.
A low-latency persistent memory infrastructure paired with an in-house LLM that maintains up-to-date member taste profiles and preferences.









