Auto-summarization triggers too late — model quality degrades long before the context limit ("context rot")

Feature request for product/service

Chat

Describe the request

Background

This is spun out of Calling /summarize while work is being done stops it, instead of queueing it, where @deanrie asked me to track this separately since it’s a different issue from the queue bug.

The problem

Right now auto-summarization only kicks in when a chat hits the context limit. But research consistently shows that model quality degrades long before the window is full:

  • Chroma’s technical report Context Rot (Hong, Troynikov & Huber, July 2025) tested 18 frontier models (GPT-4.1, Claude 4, Gemini 2.5, Qwen3) and found every single one degrades as input length grows — non-uniformly, and well before the advertised limit.
  • Lost in the Middle (Liu et al., TACL 2024) shows a U-shaped attention curve: information in the middle of a long context is systematically underweighted.
  • Same Task, More Tokens (Levy et al., 2024) found reasoning accuracy falling from 0.92 to 0.68 just by growing the input, with task difficulty held constant.
  • Context Length Alone Hurts LLM Performance Despite Perfect Retrieval (EMNLP 2025 Findings) shows performance drops of 13.9–85% as input grows, even when the model retrieves all relevant information perfectly.

So with the current design, the agent spends the last stretch of every long task in its worst-performing regime, and only then summarizes. Summarizing at 100% works as a memory tool, but not as a quality tool.

Proposal

  1. Earlier trigger. Auto-summarize at a configurable threshold (e.g. default ~70% of the model’s effective window) instead of at the hard limit.
  2. Summarize at turn boundaries. When the threshold is crossed mid-task, schedule the summary for the end of the current turn instead of interrupting. No lost work, and summaries are highest quality at a natural checkpoint anyway.
  3. Manual checkpoints that don’t kill the run. Let /summarize queue like any other message, so we can proactively checkpoint before quality decays. (The interrupt itself is tracked as a bug in the thread linked above — the point here is that manual early summarization is currently the only workaround for the late auto-summary, and it’s broken.)

Expected behavior

Long-running agent sessions keep consistent output quality because context is compacted before the model enters the degraded zone — not after. This applies to both the desktop Agents window and the CLI.

Operating System (if it applies)

MacOS

Thanks for moving this into a separate thread and backing it up with solid research. That’s a really strong write-up.

One factual note about current behavior: auto-summarization doesn’t wait for the context to hit 100%. Background compaction starts before the hard limit, around 90% of the window being used. So there’s already some protection from working right at the edge, it’s just that the threshold is fixed right now and set server-side, not user-configurable.

What we don’t have today, and what you’re basically asking for, is:

  • a configurable and generally earlier trigger threshold
  • a mode where the summary is applied only at a turn boundary, not in the middle of a task

On manual checkpoints: /summarize is the way to trigger compaction manually at any time before quality starts to drop. The fact that it interrupts work instead of being queued is tracked separately in your thread 163978 Calling `/summarize` while work is being done stops it, instead of queueing it so I’ll keep that part there to avoid mixing two requests.

I’ve logged the feature request: earlier and configurable threshold plus applying at turn boundaries, for the Agents window and the CLI. If there’s an update, I’ll post it here.

Keeping the thread alive @deanrie
Are there updates on this?

Thanks for coming back and for not dropping the topic. Also, big thanks for the thorough research, it’s genuinely strong.

Honest update: two key parts of your request, user configurable behavior and a generally earlier trigger threshold, plus a mode where the summary is applied strictly at the turn boundary, are not on the roadmap right now. I don’t want to sell you a timeline we don’t have.

What’s important to clarify about current behavior: auto summarization doesn’t wait for 100% of the window. Background compaction starts before the hard limit, roughly when context is about 90% full, so there’s already some protection from working right at the edge. The threshold is fixed and set server side, not by the user. The team is still iterating on summarization quality and timing, but we’re not moving it as a configurable option at the moment.

The manual checkpoint is still /summarize. That’s the way to proactively compact before quality starts to drop. The separate issue where it interrupts work instead of queuing is tracked in your thread 163978, and we’re keeping it there.

If you hit a specific quality drop in long sessions on the current version, please open a separate thread with the Request ID and an example. That’s something we can dig into concretely.

I’ve been a cursor user for almost 2 years and have seen “features” come and go.

Been through that model pricing rug pull where there was lack of transparency on billing and it took pitch forks to see where we’re at. Fun times…

I’ve also been there when the auto summarize feature was there or auto-compact and it generally worked somewhat ok until it just disappeared outright. People complained on the forums and employees would thank users for the bug report and would monitor closely.

You’d think this would be resolved or they’d genuinely work on a solution that didn’t result in users blowing through all of their credits (after all , they’re in the business of making $)..

So best response is - type /summarize every now and then or start as new chat since the whole chat gets sent as context and unless caching is turned on on the other side, you’re paying for the history each pass.

So best I can recommend is binding “/summarize + enter” to your keyboard since they can’t provide an option that let’s us set auto compact when context hits certain % of model context window , or # of prompts DIRECTLY next to the model selection… (It’s literally that easy…) Almost as easy as clicking on the usage % button and entering $100 on the monthly spend limit.

Hey @summarize_removed, thanks for the workaround tips.

One correction so nobody reads this wrong: automatic summarization has not gone anywhere. It still runs in every long Agent chat once the context gets close to the model’s limit, and it is running at full scale today. The thing that went away last year was the old “summarize and start a new chat” button, which was replaced by /summarize and @Past Chats.

@Colin I agree that this is what is - but it is inferior to being able to set it yourself - we are using Cursor to build quality and this limits it - Plenty of studies on that. So yes this is the current not SOTA solution we have.