How I Stopped Losing Work to Context Window Overflow in Claude Code
If you use Claude Code for long coding sessions, you've probably experienced this: you're 40 minutes in, deep in a complex refactor, and the model starts forgetting things. It repeats itself. It lo...

Source: DEV Community
If you use Claude Code for long coding sessions, you've probably experienced this: you're 40 minutes in, deep in a complex refactor, and the model starts forgetting things. It repeats itself. It loses track of what files it already edited. Then the session just dies — context window full, conversation over, work lost. I got tired of it and built a proxy to fix it. The Problem LLM coding tools like Claude Code send everything — system prompts, tool definitions, project context, and your entire conversation history — in every API request. As the conversation grows, the payload approaches the model's context limit silently. There's no progress bar. No warning. The tool doesn't tell you "hey, you're at 80%, maybe wrap up." When it finally overflows, you lose the session. Whatever the model was working on, whatever context it had built up — gone. You start a new conversation from scratch. What I Tried First Manual summarization — I'd try to remember to ask the model to write a summary befor