Spotify engineer cuts Claude Code token usage by 90% with Portal
Portal by Spotify cut my Claude Code token usage by 90%
A Spotify engineer routed Claude Code's heavy I/O work—reading large files and generating boilerplate—to cheaper models like Gemini 2.5 Flash using Spotify's Portal platform. Two declarative 'modes' were created: one for bulk file reading, one for pattern-matched code writing. A Claude Code plugin called 'shunt' intercepts reads on files over 350 lines and redirects them. The result: 90% token reduction. The post doesn't disclose exact dollar savings but cites a Gartner prediction that AI coding costs will surpass average developer salaries by 2028.
Why it matters: First-person experiment from a Spotify engineer with concrete numbers and a routing strategy, not generic cost-saving advice. Hits all three HKR axes, but it's an engineering practice share rather than a product launch or research breakthrough, so it lands at 78 on the feature...