Stop paying for old chat history: a free BYOK VS Code AI agent that compresses long sessions

2026-10-13来源 dev.to OpenSourceEnglish
Stop paying for old chat history: a free BYOK VS Code AI agent that compresses long sessions

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).

CodeCook demo

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.

原文:https://www.a8q9.cn/en/article/stop-paying-for-old-chat-history-a-free-byok-vs-code-ai-agent-that-compresses-lo-903cad.html

相关文章