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
- Summarizes older turns and bulky tool output so you stop paying for them again
- Keeps your plan intact across summaries
- Shows token and cost estimates per turn, with daily, weekly, or monthly spend caps
- Checkpoints every turn: review diffs, revert, or rewind
- BYOK: Gemini, OpenAI, Claude, Azure OpenAI, or Bedrock, with no markup
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.

Top comments (0)