Proxy tool keeps AI coding context beyond 20 turns
Reported by Dev.to LLM: Built a proxy, so my AI coding sessions stop forgetting everything after 20 turns. Analysis and context written by TickrWire.
A developer built a proxy that preserves the conversation history for Claude and GPT coding assistants, preventing loss after roughly 20 exchanges.

- AI coding assistants lose context after ~20 turns due to token limits.
- A proxy can cache and replay conversation history to extend usable context.
- The tool is open‑source and easy to add to existing development pipelines.
AI coding assistants such as Claude and GPT have a limited context window, causing them to forget earlier parts of a conversation after about 20 turns. The author created a lightweight proxy that intercepts API calls, stores the full dialogue, and re‑injects prior context on each request, effectively bypassing the built‑in limit.
The proxy works by caching prompts and responses locally, then concatenating the relevant history before forwarding the request to the model. This approach lets developers continue complex coding sessions without repeatedly restating earlier code or explanations.
The solution is open‑source and can be integrated into existing development workflows with minimal configuration. It demonstrates a practical workaround for token‑limit constraints that many developers face when using large language models for code generation.
Helps maintain continuity in long AI‑assisted coding sessions.
Reduces time spent re‑entering code context, improving developer productivity.
Enables smoother interaction with AI code helpers.
- proxy
- A server that sits between a client and an API, modifying or caching requests and responses.
- context window
- The maximum amount of text (tokens) a language model can consider at once.
- token limit
- The cap on the number of tokens a model can process in a single request.
ProgrammingThe Bun rewrite proves 'never rewrite from scratch' was always a cope
ProgrammingMy QUIC transport had never once been executed. Here's what happened when I ran it.
Expanded curriculum includes AI~focused learning - James Madison University
Charleston looks to AI to ease traffic on two of the city’s busiest corridors - live5news.com
From AI to Real Estate: UVA Darden Adds New Courses for 2026–27 - Darden Report Online
AI ToolsMeta AI’s new Mac app wants you to talk to your apps
Meta released a new Mac application that lets users control apps and dictate text using voice commands powered by its Muse Spark AI model.
New White House strategy clarifies military tech priorities: undersea, outer space and AI - Breaking Defense
The White House released a new strategy prioritizing military investments in artificial intelligence, space systems and undersea technologies to counter emerging threats.
AI in an iron grip: How dictatorships use artificial intelligence to strengthen their rule - theins.press
A new report examines how authoritarian governments deploy AI for surveillance, censorship, and propaganda to reinforce their power.
Stripe, OpenRouter finally strike a deal - Banking Dive
Stripe and OpenRouter have partnered to integrate Stripe's payment processing with OpenRouter's AI model aggregation platform.
How one Philadelphia school is using AI to strengthen student learning, not replace teachers - CBS News
A Philadelphia school is integrating AI tools to support teachers and improve student outcomes, focusing on collaboration rather than replacement.
Exclusive-How a Texas student blew the whistle on a rogue AI hacking attempt - The Mighty 790 KFGO
A Texas student uncovered an AI-powered hacking attempt targeting local systems, prompting a swift law enforcement response.