What each harness does when the conversation outgrows the context window: when it compacts, what it keeps, and how you can steer it.
When it happens
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| Automatic compaction, and when | Yes. When a chat's context window gets close to full, Cursor summarizes older parts of the conversation to make room, and this also happens partway through long tool-calling turns. Cursor does not publish the exact trigger percentage or token count. Its servers decide when to compact, and the The |
| Change the trigger or turn it off | Not supported No. There is no setting, flag or environment variable to change when automatic summarization triggers or to turn it off. The only lever is a bigger window: pick a larger-context model variant in |
| Compact by hand | Run |
| See how full the context is | The prompt bar footer shows how full the context window is as a percentage (set |
What it does
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| What replaces the conversation | Partly Cursor's backend writes the summary, not your local CLI. The CLI sends a summarize action and shows |
| What survives | Partly The system prompt, tool definitions, rules, skills, MCP instructions and subagent docs are counted separately from the conversation, so summarization doesn't touch them. Since September 2026 your most recent message is kept word for word after summarization. In CLI 2026.10.12 the session also stores todos, plans and invoked skill blocks outside the summarized turns. Cursor doesn't document exactly how many recent turns or files are kept. |
| Trimming without summarising | Not documented Cursor doesn't describe any separate step that trims old tool outputs without summarizing, and there is no setting to control one. The only documented ways to free context are automatic summarization and |
| The full history afterwards | Yes. Each chat's The |
Shaping it
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| Customise the summary or hook in | Partly You can't change the summary prompt. A |
| When a request overflows anyway | Since v2026.10.08, a session that hits the context limit summarizes and then continues the turn instead of getting stuck. An earlier fix (v2026.09.15) stopped long Claude and GPT turns from re-compacting on every step without freeing any space. |