Live data from Hacker News

Portal by Spotify cut my Claude Code token usage by 90%

engineering.atspotify.com

31–40 of 169 posts

Re: Portal by Spotify cut my Claude Code token usage by 90%

#31

Here is another technique to save tokens: allow the model to read a skeleton of the source code before reading the code, to give it an index into the code so it can read targeted chunks. There is a tool that uses ripgrep and treesitter that does this [1], adapted from the maki coding agent. [1]: https://github.com/ninjaxtools/treesitter-index

Yep, there's also prewalk.

Re: Portal by Spotify cut my Claude Code token usage by 90%

#32

STOP hijacking my scroll. I don't know why chrome even allow such behavior? And, I can't believe this is from official spotify.... What a joke.

Smooth as butter with Firefox on Android. As for why scrolljacking is "allowed", web devs will always find new ways to do annoying things and work around browser constraints.

Re: Portal by Spotify cut my Claude Code token usage by 90%

#35

It doesn't work well in practice. Try it yourself, use a big model like Opus or Sol to implement everything by first making a plan using plan mode. Then try distributing the task to a cheaper models like Luna Max or Gemini Flash 3.8. During planning, the big model already reads the relevant files in context, while giving a smaller model a slice of work itself requires the big model to reason about the task distributi…

When I've tried it using API-rate billing I've saved on $$ on the tasks where I split planning+execution into Sol+Terra or Terra+Luna even. I wasn't paying attention to the token count, I was paying attention to the spend.

Re: Portal by Spotify cut my Claude Code token usage by 90%

#36
post #21

Dang, not even Spotify care enough to not write AI slop articles. We’re fucked.

I could only read one sentence, then skipped to another paragraph. Sure enough the scroll bar revealed a suspiciously long article. No human would ever write this much bland bullshit.

Next sentence was also an AI juxtaposition. Done.

Re: Portal by Spotify cut my Claude Code token usage by 90%

#39

Isn't this a somewhat standard multi-model setup? there's nothing ground breaking here, just delegate claude to plan -> smaller model for implementation.

Very standard in all coding harnesses/models I've worked with, with the bonus that everything listed in the "What doesn't work in Portal by Spotify" section still works. I've been watching Opus spin off work to Fable and Sonnet as appropriate all day.

Can you name some harnesses?

Re: Portal by Spotify cut my Claude Code token usage by 90%

#40
post #21

Dang, not even Spotify care enough to not write AI slop articles. We’re fucked.

Yeah, stopped reading after the first paragraph. It's really so disrespectful to your audience.

It‘s someone from R&D probably not so official
Post reply on HN