Skip to content

AI Agentic Development

Decomposing Coding Agent Spend to Sustain Software Development Efficiency at Uber

As automated coding agents handle more pull requests, CI recovery, and maintenance tasks at Uber, unmanaged token consumption threatens software development efficiency. Uber stabilizes costs by decomposing session spend into measurable drivers, trimming context bloat, and routing workloads to Pareto-optimal models.

Optical bench where a mechanical iris trims a wide light beam before a glass prism splits it into calibrated paths through lenses and brass mounts.

Automated coding agents shift software development efficiency from manual typing speed to the unit economics of agent sessions. At Uber, managed agents now initiate work across code review, self-healing CI failures, end-to-end pull requests with visual validation, alert triage, and maintenance tasks.

Rising adoption across engineers and automated pipelines can multiply token bills if teams rely on uniform model defaults and overloaded session contexts. Uber kept total AI spend stable despite rapid usage growth by breaking session costs into separate operational levers and benchmarking models against real internal tasks.

In short

  • Layered agent architecture links higher workflow specialization to tighter control over model routing, context size, and tool invocation.
  • Decomposing total spend into user, session, turn, request, and token drivers prevents usage growth from turning into proportional cost spikes.
  • Cost stability requires ongoing engineering effort to maintain internal benchmarks, CLI-resolved MCP tooling, and session telemetry rather than relying on out-of-the-box defaults.

Decomposing Spend Across Layered Agent Workflows

Uber organizes agentic usage into layers moving from specialized managed agents to general interactive tools. Greater specialization at the upper layers gives platform engineers direct control over model selection, quality gates, and spend per workflow.

Within these workflows, software components handle deterministic execution and visual validation while managed agents perform triage, debugging, and patch generation. Human engineers remain in the loop for pull request reviews and escalations where accountability matters.

To keep those layers accountable, Uber models total spend as a product of active users, sessions per user, turns per session, requests per turn, tokens per request, and price per token. Tracking portfolio totals, per-tool unit economics, and sequential driver decomposition separates model price shifts from changing usage habits. That breakdown leaves no unexplained residual when forecasting short-term and long-term spend.

Trimming Context Bloat and Wasted Tool Calls

Leaving every tool definition and reasoning setting at maximum defaults inflates tokens per request on routine engineering tasks. Uber counters this bloat by enforcing bounded context caps and moderate default reasoning effort across managed workloads.

Tool integration creates another hidden multiplier when sessions preload external schemas into every prompt. Uber replaces preloaded definitions with tool search and CLI-resolved MCP calls, batches tool invocations in code mode, and routes SaaS MCPs through a central gateway.

Graph-grounded context and continuous skill optimization reduce the number of requests needed per turn. Matching prompt-cache lifetimes to how long engineers actually pause between turns prevents repeated cache misses without forcing unnatural workflows.

For interactive sessions, live cost counters in the status line, spend tiers, and a session analysis dashboard automatically flag categories of wasted spend. Making unit costs visible inside developer tooling fixes wasteful habits faster than top-down quotas.

Benchmarking Models on Real Engineering Work

Token unit prices come from vendors, yet platform teams still decide which model handles each task. Uber runs a structured selection loop across managed layers to find the most Pareto-efficient configuration. Each choice balances task completion cost, output quality, and model reliability.

Public coding leaderboards rarely reflect internal repository complexity or review noise. For its uReview pull request agent, Uber built an evaluation suite from real pull requests containing known bugs graded across difficulty levels.

Each candidate configuration is scored on bug-detection precision, recall, and F1 alongside cost per review, latency, timeouts, and comment noise. Plotting those runs on a Pareto frontier showed that switching models improved F1 while sharply cutting review cost per pull request.

Treating a single flagship model as the universal default erodes software development efficiency across heterogeneous workflows. Separate defaults for initial sessions and subagents let teams route narrow subtasks to cheaper models while reserving heavier models for complex reasoning.

Exact cost reductions remain tied to an organization's own codebase structure, session pause patterns, and managed workflows rather than vendor pricing tiers alone. Where engineering teams lack real-task evaluation sets like uReview's bug benchmarks, aggressive model routing risks trading away review precision for cheaper tokens.

Sources

Similar posts

PROJECT INQUIRY

Automate a business process?

Tell us which process currently takes too much time or manual effort. Together we examine what an executable workflow for it looks like, and reply personally.

Your information is treated confidentially in accordance with our Privacy Policy.