NEWS

6 min read

Netflix redesigns the SDLC so engineers and AI agents can work together in production

Netflix redesigns the SDLC so engineers and AI agents can work together in production
Image: Redação iMasters
News
Reading
6 min
In short

At QCon San Francisco 2026, Netflix showed how it rewrote documentation, code review and the CI pipeline so agents like Claude Code and Cursor could work side by side with engineers on the Commerce team.

The fictional email that exposed the problem

Mark Khuzam, a senior software engineer at Netflix, opened his talk at QCon San Francisco 2026 with a fictional email: the company had given Claude Code to every engineer and was asking how much faster the team was shipping. The question landed out of the blue on Netflix's Commerce team, responsible for much of the server-driven interface that assembles screens for iOS, Android, web and TV from a single composition service behind the API gateway, an approach the company had already discussed at previous editions of QCon.

The clash between promise and reality showed up quickly, according to Khuzam.

Agents promised speed. But we spent 20 years building for humans.

Mark Khuzam, senior software engineer at Netflix

From migrating one test to an NPS of -3

The team's first attempt was asking an agent to migrate tests, and the result took four tries to work. The initial request, "migrate this file," had to gain instructions, then the correct APIs to use, then how to mock data, until the agent could repeat the right pattern.

Two structural failures explained the rework. The documentation existed, but was hard to find: the agent's context window ran out before it could locate the right page. And when found, the documentation was inconsistent, because the tests themselves weren't written the same way across the codebase.

The practical result was a Net Promoter Score of -3 among developers using the internal testing framework. Going from a single isolated test to an entire feature, from data to route to test, meant teaching the agent how the team builds software, something no documentation written for humans covered on its own.

Context engineering: 45 ADRs written for people and for agents

Khuzam described the fix as "context engineering": putting what engineers know inside what agents can see. In practice, the team wrote 45 Architecture Decision Records (ADRs), each one deliberately drafted "for people and for agents."

Each record follows a fixed structure: the context behind the decision, the decision itself, a recommended pattern, an anti-pattern to avoid, and AI-specific usage notes, explaining what an agent should (or shouldn't) do when facing that situation. The ADRs link related documentation and code, and are now published inside nearly every repository the team owns.

AGENTS.md as the agents' robots.txt

With 45 ADRs and more than 300 other documents to organize, the team turned to a search-engine analogy. An AGENTS.md file, the project-instructions file that code agents read before anything else, began playing the role robots.txt plays for crawlers: telling the agent where to look and what to prioritize before it burns through context navigating the repository on its own.

Deterministic pipeline, agent-driven review

The second half of the talk dealt with what happens after an agent writes code. The CI pipeline remains deterministic: builds, tests, screenshot comparisons, merge queues and canary releases keep running exactly as before, with no agent decision in the middle.

What changed was how agents fit into each phase. A review agent pre-analyzes every pull request against the ADRs and documentation, flags anti-patterns and assesses what depends on that change.

The first version of this review agent was noisy: it once left 23 comments on a single PR, opening with generic praise before any useful point. In the current version, it only posts verified blockers, each with evidence, a suggested fix and the ADR rule that was broken. When the engineer agrees, adding the revise label is enough for an agent to read the review and push the fix to the same PR; nothing is merged automatically, and the engineer remains the owner of the code.

Cross-team context: why domain-based GraphRAG won

Work that crosses services raised a harder problem. A product engineer building a single feature might touch the payment API, billing, the gateway and every client, which raises the question of who owns that context and how it keeps pace with work across teams.

Khuzam listed approaches the team tested and discarded:

  • Loading every repository at once didn't fit in the context window;
  • Git submodules proved fragile for this use case;
  • A Git MCP server "sees a file, not the system";
  • Shared documentation copies went stale too quickly.

The team concluded it needed context that was precise, portable across different agents, clearly owned by domain, and always up to date. The solution was a domain-based GraphRAG, which extracts structure from the code itself and meaning from the documents and ADRs. Each graph is pinned to specific commits and served by a single Model Context Protocol (MCP) tool, queried the same way by Claude Code, Cursor, Codex, a Slack bot and the review agent in CI itself. Every answer cites a specific file and line, which gives traceability to any suggestion the agent makes.

The numbers after the retrofit

According to Khuzam, the team's main service had zero Sev 1 incidents in 2026, while pull request volume grew 32% year over year. Developer NPS, which had started at -3, rose to +25 over three quarters.

Before the session, Khuzam had already framed the bet in a LinkedIn post:

Agents can write code, but what gives us the confidence to ship Tier 0 services to 300M+ members without everything falling apart?

Mark Khuzam, senior software engineer at Netflix

What changes for those building software in Brazil

Netflix's case isn't a ready-made shortcut, it's a reminder that putting code agents into production costs engineering work that has nothing to do with the agent itself. For a team that already runs Claude Code, Cursor or Codex day to day, the practical lesson is to flip the order: before measuring delivery speed, it's worth measuring whether the project's documentation is structured in a way an agent can navigate on its own.

Two patterns from this account can be copied without rebuilding an entire GraphRAG. The first is writing ADRs with an explicit "AI usage" section, separating the expected pattern from the anti-pattern, even on small teams. The second is keeping an AGENTS.md at the repository root as a single entry point, instead of relying on the agent to guess where each document lives.

The most important point might be the simplest one: no automation there replaces human judgment when it comes to merging code. Khuzam summed it up this way as he closed the talk:

None of this is new. It's good engineering, built for a new reader.

Mark Khuzam, senior software engineer at Netflix

It remains an open question, for now, whether this model scales to teams outside the well-defined domain structure Netflix already had before agents arrived, and the company hasn't yet said whether it will release parts of this stack (such as the domain-based GraphRAG architecture) outside its own walls.

Translated from the Brazilian Portuguese original · Read the original