Stop paying for old chat history: a free BYOK VS Code AI agent that compresses long sessions A developer released CodeCook, a free, MIT-licensed VS Code extension that compresses long AI coding sessions to cut token costs, reporting a single turn dropping from roughly 800k to about 15k tokens in one long session. The developer notes the figure is a best case rather than an average and says real billed cost testing is next. Long AI coding chats get expensive for a simple reason: every turn resends the whole conversation, so turn 30 costs far more than turn 3. I built CodeCook to fix that. It's a free, MIT-licensed VS Code extension disclosure: I'm the author . What it does In one long session, a single turn went from about 800k to about 15k tokens. That's a best case, not an average, so I'm testing real billed cost next. Try it: https://marketplace.visualstudio.com/items?itemName=makayis.codecook https://marketplace.visualstudio.com/items?itemName=makayis.codecook I'd love feedback on what breaks or what's missing.