cd /news/ai-tools/stop-paying-for-old-chat-history-a-f… · home › topics › ai-tools › article
[ARTICLE · art-149866] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

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.

by read1 min views2 publishedOct 12, 2026

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 I'd love feedback on what breaks or what's missing.

── more in #ai-tools 4 stories · sorted by recency
── more on @codecook 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/stop-paying-for-old-…] indexed:0 read:1min 2026-10-12 · —