Uber’s Approach to Running a Software Factory
Software Engineering DailyAI Summary
→ WHAT IT COVERS Uber VP and Distinguished Engineer Uday Kiran Mehta Sethi describes how Uber built a model-agnostic software factory where agents handle 70% of all PRs across thousands of engineers at 12 global sites, using foundational building blocks including an MCP gateway, skills repository, context graph, and a Go-based wrapper called AIFX that standardizes tooling and tracks spend. → KEY INSIGHTS - **Software Factory Architecture:** Uber's factory runs on four model-agnostic foundations: a single model gateway routing all frontier and open-weight models, an MCP gateway exposing internal APIs as tools via one-click UI config, a centralized skills repository in Git with core and domain-specific folders, and remote dev pod sandboxes. Engineers install everything via one command: `brew install aifx`, which auto-configures all harnesses and keeps settings synchronized centrally. - **Agent PR Coverage at Scale:** At least 70% of all Uber PRs now involve agents, either through interactive harnesses like ClaudeCode, OpenCode, or Codex, or through a background coding agent that handled 17% of all PRs last month autonomously. The background agent deploys changes to staging environments, captures API responses and web screenshots before and after, and submits visual proof alongside the PR to enable automated feature validation. - **Cost Control via Spend Tiers and Context Limits:** Uber caps interactive context windows at 400k tokens based on telemetry showing that cache misses above that threshold cost $7–8 per occurrence. Engineers share a monthly spend tier across all harnesses, visible in a real-time status line showing month-to-date spend per session and per harness. Managed agent spend tiers are kept separate and set slightly higher to incentivize shifting work from interactive to background agents. - **AI Code Review with 70% Addressal Rate:** Uber's internal AI code reviewer now generates roughly 40% of all PR comments, tracked against a 70% addressal rate — meaning 70% of AI comments result in a code change in the next iteration. This metric prevents low-signal noise from accumulating. The system pairs with self-healing CI that detects failures, proposes fixes via Slack, and applies them automatically or on engineer approval, prioritizing the highest-frequency failing jobs first. - **Context Graph as Agent Memory:** Uber built a Neo4j-style graph database mapping all internal metadata — services, owners, Kafka topics, mobile screens, analytics events, data tables — into a queryable graph with billions of nodes. Agents use Cypher queries against this schema to ground responses before searching code, reducing wasted turns. A second derived layer encodes design doc patterns, incident post-mortems, and auto-generated function documentation as additional nodes, improving both accuracy and token efficiency. - **Centralized Campaign System for Migrations:** Rather than filing tickets across 200 teams for library upgrades, Uber runs centralized agent campaigns where a platform team writes one spec, the system discovers all impacted modules, generates PRs with tests and proofs, and tracks approval status on a dashboard. Longer-running campaigns like dead code cleanup or noisy log removal run weekly on opted-in services, automatically rebasing PRs and resolving CI failures without engineer intervention. → NOTABLE MOMENT Uber's agent request volume grew more than 10–15x between February and recent months, yet total AI spend has remained flat since April. Uday attributes this to continuous cost optimization across interactive, managed, and user-facing agent buckets, treating them as one shared envelope where efficiency gains in one area fund growth in another. 💼 SPONSORS [{"name": "Origin", "url": "https://originhq.com/sed"}, {"name": "GuardSquare", "url": "https://guardsquare.com"}, {"name": "Deepgram", "url": "https://deepgram.com/context-is-everything"}] 🏷️ Agentic AI, Software Factory, Developer Tooling, LLM Cost Optimization, Enterprise AI Adoption, Code Review Automation