AI Trends

Uber Sets Claude Code Session Compaction Threshold at 400K Tokens to Control AI Costs

Rohan PaulUpdated Nov 20 09:57

AI summary

After exhausting its AI budget, Uber began compacting Claude Code sessions once they reach 400K tokens, even when using million-token models. Its weekly agent request volume grew 9.4x from February to August, and weekly active users of AI coding tools increased 7x, while overall AI spending has remained largely flat since April. The cost per 1,000 requests has fallen nearly 34% from its peak, and the cost per session is down 52% from its June peak. Uber also accesses MCP servers through a command-line tool connected to a central MCP gateway, avoiding the 50K to 70K tokens required to preload descriptions of more than 100 tools before the first prompt.

Why read this

AI score 73

By controlling context costs through session compaction and a centralized MCP gateway, Uber offers transferable engineering practices for deploying coding agents at scale.

Topics

Tags

Body

Uber compacts engineers’ Claude Code sessions at 400K tokens, even on million-token models, after exhausting its AI budget.

Weekly agent requests at Uber grew 9.4x from February to August and weekly active users of its AI coding tools grew 7x, yet overall AI spending has stayed roughly flat since April.

With the model held constant, cost per 1,000 requests fell almost 34% from its peak and cost per session fell 52% from its June peak, but Uber gives no savings figure for any single default.

Uber still runs MCP servers, but agents reach them through command-line tools tied to a central MCP gateway, because preloading descriptions for 100-plus tools costs 50K to 70K tokens before the first prompt.

Source

Rohan Paul