Zed, the GPU-accelerated Rust-based code editor, just shipped v1.7 with a feature that anyone who has watched an AI agent session grind to a halt will appreciate: automatic context compaction. The native agent now monitors how full the model's context window is and, when it hits a threshold, automatically summarizes the conversation history to free up space, all without interrupting your session.

The wall every agentic session hits

Context windows are the hard ceiling on how much an AI model can "remember" at once. Every file read, every tool call, every back-and-forth message eats into that budget. Context windows fill up fast, and watching the token count climb while the AI starts hallucinating about old function names is a familiar pain. Until now, the only real option in Zed was to manually start a new thread and try to carry over the relevant context yourself, which breaks flow and loses accumulated reasoning.

Users had been requesting automatic context compression, similar to Claude Code and Gemini CLI, to enable continuous conversations within a single thread without hitting context limits. Zed has now delivered exactly that.

How compaction actually works

This week's release includes automatic agent context compaction that you can also trigger manually with the new /compact command. When the conversation approaches the threshold, the agent asks the model to produce a dense summary of everything that has happened so far, then replaces the full history with that summary. The thread continues seamlessly from that point, with the model carrying forward the key decisions, file states, and reasoning without starting from scratch.

Alpha Signal

Don't miss what's next in AI

Join 300,000+ engineers and researchers who get the signal, not the noise.

  • Full access to in-depth AI research breakdowns
  • Be the first to know what's trending before it hits mainstream
  • Daily curated papers, repos, and industry moves