Engineering Productivity Collides with Token Economics at Scale
When ride-hailing giant Uber exhausted its annual AI allocation in months, infrastructure engineers responded by throttling context windows and reasoning depth across every developer session
Budget Overrun Forces Architecture Rethink
Uber depleted its entire 2026 allocation for artificial intelligence infrastructure within the opening months of the year, CTO Praveen Neppalli Naga disclosed in April. The overrun forced the company's platform organisation to redesign how thousands of engineers interact with large language models during daily coding work.
Agentic request volume climbed 9.4 times between February and August across the ride-hailing company's suite of AI-assisted development tools, according to August disclosures from Uber's engineering division. Yet total AI expenditure held roughly level from April onward. That gap between rising usage and flat spending represents a series of deliberate constraints now embedded in every developer's workflow.
Uday Kiran Medisetty, a distinguished engineer at Uber, explained the company's approach during an infrastructure summit on 28 October. Rather than ask individual developers to optimise token consumption, Uber's AIFX wrapper enforces standardised parameters across all interactive coding sessions. Engineers open their tools and find decisions already made: context boundaries, reasoning intensity, cache durations and tool-loading behaviour all preset by the platform team.
The approach reflects a broader tension emerging across the industry. In an October survey of 156 infrastructure and compute practitioners, 38 per cent reported their organisation had delayed, reduced scope or abandoned a planned AI initiative in the preceding twelve months because costs exceeded projections.
Four Levers the Platform Team Controls
Uber runs cohort-based A/B experiments on its own workforce, varying parameters and measuring input and output metrics across groups of engineers. Four settings now govern every interactive session.
Context compaction triggers at 400,000 tokens. Interactive agents transmit their entire conversation history with each round-trip to the model. Larger contexts multiply the cost of every subsequent request. Medisetty noted that beyond 700,000 or 800,000 tokens, cache misses and per-request input volume become prohibitively expensive. The 400,000-token threshold condenses earlier exchanges into a summary, allowing the session to proceed without reprocessing the full transcript.
Models shipping with million-token windows still hit this ceiling at Uber. The gap between advertised capacity and operational limits illustrates how cost, not capability, dictates real-world configuration.
Reasoning effort defaults to medium, not high. Effort parameters control how many reasoning tokens a model generates before producing an answer. Medisetty reported that recent model releases deliver superior performance at medium effort and exhibit degradation at high, though he did not specify which models or task categories informed that conclusion. The setting trades thoroughness for speed and cost.
Prompt cache expires after one hour for orchestrator agents, five minutes for sub-agents. Cached prompt fragments cost less to reuse than to re-process, but longer cache lifetimes carry higher write costs. Uber's telemetry showed that engineers frequently pause work with the main orchestrator agent for more than five minutes, justifying the longer cache window. Sub-agents complete narrower tasks quickly, so a five-minute window suffices. The platform team tunes these timers by monitoring cache-hit rates.
No tool definitions pre-load into context. Uber operates more than 100 MCP servers, but agents access them through command-line wrappers connected to a central MCP gateway rather than direct integrations. Direct MCP connections can inject tool descriptions into the model's initial context. With Uber's tool inventory, those descriptions alone consume 50,000 to 70,000 tokens before a developer types anything. The command-line approach invokes tools individually as needed, avoiding upfront token expenditure.
Medisetty did not assign a cost reduction figure to any single parameter. Uber's August engineering post aggregated all optimisations together and reported that cost per 1,000 requests fell nearly 34 per cent from peak levels, while cost per session dropped 52 per cent from the June high. The one isolated figure Medisetty offered concerned model selection: benchmarking and choosing the appropriate model for cleanup of stale feature flags cut costs by 90 per cent for that task.
Managed Agents Replace Interactive Sessions
Medisetty described interactive coding sessions as the least efficient mode for running an agent. Uber is shifting workload toward managed agents, where the platform team selects models for specific tasks without requiring behaviour change from engineers.
The company has also reframed its model-independence strategy. Rather than focus on the share of traffic served by open-weight models, Uber now prioritises the share of workload it can move between models. Managed agents support that flexibility more readily than interactive tools, where model changes alter the developer experience. Uber's August post noted that sub-agents default to less expensive models for tasks that do not demand frontier-level reasoning.
Context Volume Versus Context Relevance
Medisetty framed the 400,000-token cap primarily as a cost measure. Two other speakers at the same October summit described how context volume affects agent performance, independent of price.
T-Mobile CIO Jeff Simon recounted an experiment in which his team loaded the company's entire customer support documentation into an agent after gaining access to a large-context-window model. The agent became confused navigating the volume of material. T-Mobile now routes questions to specialised agents and keeps context as narrow as feasible for each.
Anjul Bhambhri, senior vice president of engineering at Adobe, offered a counterpoint. She described a marketer using Adobe's CX Enterprise Coworker agent to refine a holiday campaign. That task may require reviewing which offers ran over the previous three years. In one instance, historical data revealed that free shipping converted loyal customers more effectively than a 20 per cent Black Friday discount. Bhambhri summarised the principle as matching the right context to the right task for the right person.
A Graph That Agents Traverse, Not a Dump They Ingest
Uber resolved the context-relevance question by building a graph that agents navigate rather than absorbing all available information upfront. Medisetty described it as giving agents a mental map of how the company operates.
The context graph catalogues production services, ownership metadata, datasets, historical queries and other internal systems. Agents receive the schema, the structural outline of what the graph contains, and traverse edges to retrieve relevant documents and source code as needed. By late October, the graph held close to 200 million nodes and edges, up from a combined 104 million in August.
Medisetty reported that internal evaluations showed improved results, lower costs and faster completion times, though he provided no aggregate figures. Uber's August post included one example: given identical prompts, the same model correctly identified a data table in 38 seconds when using the graph. Without the graph, the model spent more than 20 minutes and incorrectly concluded the data could not be queried.
Uber assembled the graph-based approach within months. AI holds high priority at chief executive and chief technology officer level, Medisetty said, which simplified securing resources and personnel.
T-Mobile attempted a similar architecture for agents handling live customer calls but abandoned it. The knowledge graph required agents to search a large structure, agents became disoriented, and the search consumed time that a live call does not afford. T-Mobile replaced the graph with a simple cache built on a key-value database that directs agents toward relevant information based on how customers phrase questions. The two use cases differ: Uber's agents navigate internal engineering systems, while T-Mobile's must respond to customers in real time.
Measuring Throughput and Guarding Quality
Uber's success criterion, in Medisetty's words, is to maximise throughput while holding quality guardrails constant.
To assess whether engineers are producing more, Uber tracks the count of design documents, pull requests and deployments. On the quality side, Medisetty monitors incidents per code change, revert frequency, and review and cycle times as agents push more code through the pipeline.
Code review receives dedicated attention. Uber measures whether engineers act on each comment posted by its AI reviewer. The goal is to surface only high-signal comments so developers do not wade through hundreds of low-value suggestions.
Uber also builds trust incrementally. Continuous integration runs automated builds and tests on every code change before merging. When a check fails, Uber's self-healing CI attempts a repair. Initially, the system sent each proposed fix to the engineer via Slack for manual approval. Once a category of CI failure demonstrated a strong acceptance rate, Uber switched it to auto-accept and began patching pull requests directly. The company also moved simpler CI checks earlier in the development workflow because launching a separate automated fix from scratch proved expensive.
Medisetty said Uber has only recently begun observing a genuine trend line in its ultimate measures: features shipped overall and per engineer. He provided no figures for any of these metrics.
Of the 156 respondents to the October infrastructure survey, 26 per cent said their organisation judges AI spending by a measured financial return defensible to the finance team. Another 44 per cent rely on measured operational results, such as time saved or volume handled, but not a financial return. Uber's throughput and code-quality metrics fall into the operational category. Medisetty did not offer a calculation of overall financial return on AI expenditure.
Four Questions for Platform Teams
Uber's four enforced defaults translate into four questions any platform team can ask of its own coding infrastructure. At what token count does automatic compaction activate? What reasoning effort level runs by default? How long does the prompt cache persist for each category of agent? How many tokens of tool schema load before the first developer prompt?
The answers depend on workload characteristics, cost tolerance and model behaviour. Uber's choices reflect a company that exhausted an annual budget in months and chose to govern usage through infrastructure rather than policy. For organisations still building out AI-assisted development tooling, the ride-hailing company's experience offers a preview of the trade-offs that emerge when token economics meet engineering scale.



