AI
Netflix Rebuilds Development Workflow to Ship Code Safely with AI Agents
Netflix's Commerce team retrofitted its software development process to let AI coding agents and human engineers collaborate without sacrificing safety or quality, primarily by standardizing documentation and review practices.
InfoQ
At QCon San Francisco 2026, Netflix senior software engineer Mark Khuzam revealed how his team enabled AI coding agents to work safely alongside developers on production systems serving hundreds of millions of users—not by overhauling the system itself, but by making it legible to machines.
The Commerce team's journey began optimistically. Teams equipped with Claude Code expected shipping velocity to soar. Instead, they hit a wall: the infrastructure Netflix spent two decades building was designed for human engineers, not artificial ones.
The Documentation Gap#
When the team tried its first experiment—having an agent migrate tests—it needed four iterations to work. The initial instruction "migrate this file" wasn't enough. The team had to progressively add API guidance, mocking patterns, and more context. Yet even then, the agent's limited context window couldn't locate relevant documentation, and the existing guides weren't consistent across the codebase.
The team's internal framework scored a dismal -3 on the Net Promoter Score. The problem extended beyond migration: moving an agent through a full feature—from screen composition to data layer to routing to testing—required teaching it how the entire team builds.
Structuring Knowledge for Machines and Humans#
The solution was what Khuzam called context engineering: translating what engineers hold implicitly into what agents can actually read. The team wrote 45 architecture decision records (ADRs), each deliberately designed for both human reviewers and AI systems. Each record included context, the decision itself, a pattern and anti-pattern example, plus specific notes on what agents should do.
To make these records and over 300 other documents discoverable, the team adopted a technique borrowed from web search engines: an AGENTS.md project instructions file that acts as a sitemap agents read first—similar to robots.txt for search crawlers.
AI-Powered Review and Continuous Integration#
The second phase tackled what happens after an agent writes code. The CI pipeline remained deterministic—builds, tests, screenshot diffing, merge queues, and canaries all function as before. What changed was how agents integrate at each stage.

