Spotify’s Backstage Portal cut my Claude Code token usage by 90%
- Source
- engineering.atspotify.com
- Author
- Spotify Engineering
- Date
Spotify engineers describe how the company's internal Backstage Portal cut Claude Code token spend by 90% using what it calls AiKA Modes: declarative sub-agents running on cheaper models that handle rote input and output work like reading files, writing boilerplate tests, and updating documentation. By routing that lower-stakes work away from the frontier model, Spotify keeps its most expensive model reserved for the reasoning steps that actually need it, rather than paying frontier prices for mechanical file operations. The pattern mirrors a broader shift toward tiered model routing inside agent harnesses: cheap, fast models for retrieval and formatting, expensive models for judgment calls. For any team running Claude Code or a similar coding agent at scale, the concrete lesson is to profile which parts of an agent's workload are actually rote before assuming every step needs the frontier model, since Spotify's reported savings come specifically from offloading the parts that don't.
Context
Spotify's reported 90% reduction concerns the Anthropic's Claude Code consumes when reading large files. In its engineering account, a plugin redirects bulky reads to a cheaper worker model through Backstage Portal. Claude receives a focused summary, keeping the full files out of its .
The author reports roughly 90% mean bulk-read savings in Java-monorepo tests. Work still runs on the worker model, so that figure cannot be read as a 90% reduction in the total bill. Targeted reads remain available for editing and difficult reasoning: the worker missed a subtle thread-safety bug that Claude found with the relevant context.
- token — The chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.
- context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
articleAI Changed How Spotify Builds. What We Learned (and Fixed) About Quality at Higher Velocity
articleCoding Is No Longer the Constraint: Scaling Developer Experience to Teams and Agents at Spotify
articleIndexing the Data Lake for Online Point Queries
articleEncoding Your Domain Expert: The Context Layer Behind Spotify's Data Assistant
articleCoding Is No Longer the Constraint: Scaling Developer Experience to Teams and Agents at SpotifySpotify Engineering
videoFinOps for AI Agents: Who Spent All the Tokens? — Tisha Chawla & Susheem Koul, MicrosoftAI Engineer
videoGive the Agent a Budget, Not a Token — Sachin Malhotra, AnthropicAI Engineer
Checking sign-in…
Loading comments…