WhoBuilt

AI Agents for Performance: Ship Faster, Pay Less

Jul 28, 2026· 34 min· 4.1K views·Watch on YouTube

Speaker

Rajat Shah, a staff software engineer in Netflix’s AI Platform organization, presents at AI Engineer World’s Fair 2026 on using AI agents to find and fix performance problems in production systems.

Why performance work falls behind

Coding agents make it easier to produce code quickly, but they may miss internal platform and codebase conventions, and compute costs can rise with inefficient code. Shah describes the usual performance review as a manual process: trigger a production profile, inspect it in a visualizer, trace hot paths into the codebase, and prepare a fix. That effort is slow enough that teams often do it only when a service is already struggling.

Use profiles to find candidate fixes

Shah’s team tested whether coding agents could analyze profiling data across languages, since profiles contain structured call stacks and CPU measurements. The agent recognized a quadratic implementation consuming 8.8% of CPU during the profiling period, then found the production code and prepared a code review in under five minutes. In another case, searching across repositories found the same repeatedly created counter object in seven services, with estimated CPU savings of 0.5% to 4.6%.

Build a shared catalog of patterns

To give agents reusable knowledge, Shah recommends maintaining a central catalog of performance patterns and anti-patterns in a Git repository, starting with Markdown files. Entries can include symbols, confirmed services, confidence, and both problematic and preferred implementations. The catalog can grow from production findings, public optimization resources, and internal playbooks, giving agents a shared reference across teams and languages.

Verify fixes before asking for review

Agents should propose code reviews for human approval rather than push optimizations directly to production, since changes can break business logic or miss context. Shah recommends running unit and integration tests, then using a canary that compares old and new code under the same traffic. CPU and latency improvements are useful signals, while higher error rates should stop the proposal.

Move performance checks earlier

Shah suggests starting with reactive analysis of production profiles, then using the catalog in code review and eventually during code authoring to prevent known anti-patterns. He frames a fixed workflow of profiling, analysis, canary checks, and a proposed fix as a practical automation step; more autonomous agents require stronger evaluation and security controls. Reliable tests, observability, and canary automation remain essential foundations.

Takeaways

  • Start by feeding production profiles to an agent to identify candidate hot paths and fixes.
  • Keep reusable performance patterns in a central, human-readable Git catalog.
  • Require tests, canary evidence, and human review before merging performance changes.
  • Use production findings to build knowledge, then bring that knowledge into code review and authoring.
  • Improve the profiling and deployment workflow before adding more agent autonomy.

Mentioned in this talk

Search inside this talk

What was claimed 8

  • works at
    Staff Software Engineer, AI Platform (Model Inference Platform)
    “I am a staff software engineer at Netflix”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    coding agents: Analyze profiling data to identify inefficient code patterns and propose fixes
    “it can identify bad patterns running in your codebase”
    YouTube
    Unverified1 source· Talk
  • metric
    coding agents: Found a production code issue consuming 8.8% of CPU time during the profiling period
    “this was consuming 8.8% of the CPU time”
    YouTube
    Unverified1 source· Talk
  • metric
    coding agents: Completed the workflow and sent a code review in less than five minutes
    “in less than five minutes”
    YouTube
    Unverified1 source· Talk
  • metric
    coding agents: Cross-repository fixes for the repeated pattern could save between 0.5% and 4.6% of CPU cycles
    “could save between 0.5% and 4.6% of CPU cycles”
    YouTube
    Unverified1 source· Talk
  • feature
    pattern catalog: Provides fleet-wide reusable memory for coding agents
    “a stateful catalog and a stateless LLM can become fleet-wide memory”
    YouTube
    Unverified1 source· Talk
  • feature
    canary deployments: Compare CPU usage, latency, and errors for old and proposed code under the same traffic
    “send the same traffic to both over a period of, say, 10 minutes, and compare their CPU usage”
    YouTube
    Unverified1 source· Talk
  • feature
    proactive performance optimization: lets coding agents consult known patterns while reviewing or authoring code
    lets coding agents consult known patterns while reviewing or authoring code
    “the reviewer agent can look up that catalog”
    YouTube
    Unverified1 source· Talk

Related talks