Spotify's Portal Cut Claude Code Token Usage by 90% With a Two-Mode Router

rseroter · x · 2026-09-04

Spotify Engineering's Portal platform cut Claude Code token usage by 90% by routing grunt work to cheap models. The insight: most of what coding agents do is I/O, not reasoning. With AI coding costs projected to exceed average developer salaries by 2028 — and a quarter of engineering leaders already burning $200–$500 per developer monthly on tokens — the fix requires no platform team. Portal's AiKA Modes are declarative agents on ephemeral runtimes (Lambda for agents): define instructions, pick a model like Gemini 2.5 Flash, attach MCP tools, call via CLI or API. The author built a 'bulk-reader' mode to handle multi-file questions cheaply, reserving frontier models for real reasoning.

Original post →

More from coding & agent

coding & agent channel →