Cursor Context Limit: What Fills the Window and How to Fix It (2026)
Cursor summarizes a chat when the context window is nearly full, and answer quality usually drops before that point. This guide lists what uses the window and the order of fixes that works.
By Oyekale Olawale | Updated November 13, 2026 | 12 min read
Quick Answer
Update Cursor, begin a new chat for each task, and keep always-on rules short. Let the agent search the project itself instead of attaching whole folders. Check the context gauge in the chat header, and run /summarize before the window fills.
- Update to the latest Cursor build, because summarization fixes ship often.
- Start one chat per task and attach only the files that task needs.
- Move project rules from
.cursorrulesto.cursor/rules/*.mdcorAGENTS.md. - Turn off MCP servers and skills that the current task does not use.
- Use a larger-window model option only for work that needs it.
Read the fix order first
The reset routine below takes about two minutes per task.
Go to the reset routineWhat Happens When a Cursor Chat Reaches the Limit
Every model that Cursor calls has a fixed context window. The window holds the whole request: your messages, the replies, file contents, tool results, and the instructions that Cursor adds. Once the total approaches the limit, something has to give.
Current builds handle this with automatic summarization. Cursor’s changelog for version 1.6 states that long conversations are summarized when the context window limit is reached, and that the /summarize command does the same on demand. Release notes from October 2026 describe further fixes: chats that reach the limit now compact and continue, and the latest user request is kept word for word after a summary.
Summarization keeps the chat alive, but it compresses detail. Users on the Cursor forum have reported that a summary can lose exact constraints, which shows up as the agent repeating a mistake you already corrected. A Cursor field engineer, quoted in the Learn Cursor guide, places the first visible drop in quality at roughly 50 to 60 percent of the window, depending on the model. The practical limit is therefore lower than the number on the model page.
Context windows listed on Cursor model pages (thousand tokens)
Claude Sonnet 5.5, standard window: 200k
Claude Opus 5.5, standard window: 300k
Both models, largest window: 1,000k (1M)
Bar length is proportional to tokens. Source: Cursor documentation pages for each model, checked November 2026.
The ratio of 200,000 tokens to roughly 15,000 lines comes from Cursor’s own model documentation. It gives a quick estimate: a 400-line file costs about 5,300 tokens each time it enters the chat.
How I Checked the Claims in This Guide
This guide rests on documentation and staff statements. I read the Cursor documentation for rules, search, models and the ignore file, the release notes up to version 3.27 (October 22, 2026), and Cursor’s own best-practices post from January 9, 2026. I also read replies from Cursor staff on the community forum, and I label them as staff statements where they appear.
I did not run controlled token counts for this article. The numbers above are vendor figures or simple arithmetic on them, and Cursor changes its builds often. If a menu name differs on your machine, check the release notes for your version.
What Uses the Context Window
Most people count only the files they attached. The window holds more than that, and several items load before the first message.
| Context item | When it loads | How to control it |
|---|---|---|
| Always-apply rules | Full text at the start of every chat | Keep each rule short and scope it to file patterns |
| Agent-decided rules | Description first, full text when the agent finds it relevant | Write a precise one-line description |
| Skills and MCP tool definitions | At the start of a chat, even in an empty folder | Disable the ones the task does not use |
| Attached files and folders | When you attach them | Attach the files the task names, nothing broader |
| Search and file-read results | Each time the agent searches or opens a file | Name the symbol or error string; ask for a subagent search |
| Chat history and model output | Grows with every turn | Start a new chat; run /summarize |
The rule behavior in the first two rows is described by Cursor staff on the community forum. The skills and MCP row comes from a staff reply to a user whose new chats showed 100 percent context use: global skills, rules and MCP tool definitions all load when a chat opens, and many of them can fill the window from the start.
The built-in gauge shows how full a chat is. Staff replies describe it as a percentage shown when you hover over the chat title in the Agents Window layout, with a tray that lists token counts for categories such as rules, skills and MCP. Staff have also acknowledged that the gauge can show incorrect values early in a conversation, so treat it as an estimate.
Fix 1: Start a New Chat for Each Task
Cursor’s best-practices post gives clear criteria. Begin a new conversation when you move to a different task, when the agent seems confused or repeats the same mistakes, or when you have finished one logical unit of work. Continue the conversation when you are iterating on the same feature or when the agent needs context from earlier in the discussion.
The rule has exceptions. Some forum users argue that restarting too early costs more than it saves, because rebuilding the background for backend or database work takes many tokens. Their point is reasonable. A new chat helps when the old one carries stale detail, and it hurts when the old one holds context that took effort to assemble.
When a restart does make sense, use @Past Chats to reference the earlier conversation. Cursor states that the agent reads from the history selectively and pulls in only what it needs, which is cheaper than pasting the old transcript.
Fix 2: Replace .cursorrules With Scoped Rules
The single .cursorrules file in the project root is the legacy format. Cursor’s documentation says it is still supported but deprecated, and recommends Project Rules instead. Project Rules are files with the .mdc extension inside .cursor/rules/, and each file has a type that controls when it loads.
- Always: the full text enters every chat.
- Auto attached: the rule loads when a file that matches its glob pattern is referenced.
- Agent requested: the agent reads the description and decides whether to load the rule.
- Manual: the rule loads only when you mention it with
@ruleName.
Cursor recommends keeping each rule under 500 lines and splitting large rules into smaller ones that can be combined. A plain Markdown file named AGENTS.md is the simpler option. Nested AGENTS.md files now apply when the agent edits a file in that subdirectory, according to the October 22, 2026 release notes, so a monorepo package can carry its own instructions.
Plain .md files placed inside .cursor/rules/ are not read as rules. The .mdc extension is required because the loader reads the description, globs and alwaysApply fields from the file header.
Cursor is one of several ways to code with AI
Aider manages context from the command line. The comparison covers cost, setup and daily use.
Compare Aider and CursorFix 3: Let the Agent Search Instead of Attaching Folders
Cursor’s search design changed during 2026, and many older guides still describe the previous one. A staff reply on the community forum from July 28, 2026 states that the team is phasing out semantic indexing in favor of Instant Grep, and that Cursor no longer builds a semantic index of your code or stores embeddings on servers. A reply from September 7 adds that the agent now searches files directly through Instant Grep and normal file reading.
Cursor’s search documentation describes Instant Grep as a local search engine that supports full regular expressions. The agent uses grep automatically when a prompt names a specific symbol or string. A setting called Index Repositories for Instant Grep remains under Indexing & Docs, and the index is stored inside the repository.
This affects how you write prompts. A prompt that contains an exact function name or error message gives the agent a search term it can use at once. A prompt that describes behavior without any name forces extra search turns, and each turn adds results to the window. A forum participant who discussed the change listed concept searches without a name as the one case where the older embeddings helped.
Cursor’s best-practices post also states that you do not need to tag every file by hand. Attach a file yourself when you know it is central to the task, and leave the rest to the agent.
Hand broad searches to a subagent
Cursor’s search page says the agent can start an Explore subagent that runs in its own context window with a faster model. The subagent runs many searches in parallel and returns only the relevant findings, so the raw file contents never enter your main chat. The agent chooses this on its own for broad searches, and you can ask for it directly with a prompt such as “use a subagent to find all the places we validate user input.”
Hide files the agent should not read
A .cursorignore file in the project root blocks matching files from the agent, from Tab, from inline edit and from @ mention references. Generated output, large data exports and secrets are the usual entries. One limit applies: Cursor’s ignore-file page says the terminal and MCP server tools used by the agent cannot be blocked by this file.
Fix 4: A Reset Routine for Long Tasks
Automatic summarization runs when the window is full, which is late. A manual reset at a natural break gives you control over what survives. Cursor’s plan feature supports this: a plan can be saved to the workspace under .cursor/plans/, which keeps the decisions in a file that a later chat can read.
Context reset routine
The /summarize command appears in the slash menu as soon as a chat has a message, according to the October 20, 2026 release notes. The /compact command triggers the same action. Both are useful when a chat holds a long debugging history that you still need but no longer need in full.
Step six exists because of how summaries behave. Cursor’s release notes list several fixes in this area, including a fix so that summaries no longer drop facts from early in the conversation. Those fixes reduce the problem and do not remove it, so a short restatement of the three or four constraints that matter costs very little.
Fix 5: Choose the Model and Window on Purpose
Cursor’s model pages list two windows for the Claude models. Claude Sonnet 5.5 has a 200k standard window and a 1M maximum. Claude Opus 5.5 states that its prompts bill at the base rate above 300k tokens, and its context goes up to 1M. Cursor also states that Sonnet 5.5 has no separate long-context multiplier, although the extra tokens still count toward cost.
On older request-based plans, the larger windows are reached through Max Mode. Cursor’s Max Mode page says it extends the window for models that support more than 200k tokens, runs slower and costs more, and bills at the provider’s API price plus a 20 percent margin. Staff have also said on the forum that Max Mode does not make a model smarter. Use it when a task needs a wide view, such as comparing many modules at once, and use the standard window for everything else.
Model choice affects behavior as well as size. Readers who want a view of how the Claude family performs on code can read the Claude Fable 5 review. OpenAI models are covered in is ChatGPT good for coding, and the Grok 4 vs GPT-5 benchmark comparison shows how two other vendors measure up. Open-weight models are also moving to longer windows, and the Gemma 4 vs Gemma 3 breakdown covers one example.
Which Fix Saves the Most Context
| Fix | What it removes from the window | Effort | Risk |
|---|---|---|---|
| New chat per task | Old history and stale tool results | Low | Loses background that took effort to build |
Scoped .mdc rules | Always-on text that the task does not need | Medium | A rule with the wrong glob never loads |
| Disable unused MCP servers and skills | Tool definitions loaded at chat start | Low | The agent lacks a tool you need later |
| Name symbols in prompts | Extra search turns and unrelated file reads | Low | None beyond typing |
| Subagent search | Raw search output in the main chat | Low | A summary can omit a detail |
/summarize | Older turns, replaced by a summary | Low | Exact wording of constraints can change |
| Larger-window model option | Nothing; it raises the limit | Low | Higher cost; quality can still fall before the limit |
The table lists effort and risk from the documented behavior of each feature, and it does not report measured token savings. The first four rows cost nothing and take the least time, which is the reason they come first in the quick answer.
Large Codebases and Monorepos
Search now runs against the files on disk, so the number of files no longer limits what can be found. A staff reply states that there is no file-count ceiling on what grep can search, since the old limit belonged to the semantic index. The constraint moves to the window: a large repository produces more matches, and each match costs tokens.
Three habits keep a large repository manageable. Open Cursor at the package folder you are changing when the repository allows it. Put package-specific instructions in a nested AGENTS.md or in a .cursor/rules folder inside that package. Add generated output and bulky data to .cursorignore, with the terminal and MCP limit from the earlier section in mind.
✓ What works well
- Model pages list windows from 200k up to 1M tokens.
- Chats that reach the limit now compact and continue.
- Rules can be scoped by file pattern or by description.
- Instant Grep runs locally and has no file-count ceiling.
- Explore subagents search in a separate window.
✗ Where it is weaker
- Summaries can lose exact constraints.
- The context gauge has moved between layouts and can be wrong early in a chat.
- Skills and MCP definitions use space before the first message.
- Larger windows cost more per request.
.cursorignoredoes not block terminal or MCP access.
Compare other AI tools for developers
Context handling differs between tools, and the roundup lists ten of them.
See ten AI developer toolsWhen a Different Tool Makes Sense
A command-line tool such as Aider gives you direct control over which files are in the chat, and the Aider vs Cursor comparison describes that trade-off. A wider list of editors and assistants is in the roundup of popular AI tools for developers.
Some readers want a finished app without managing an editor session at all. A hosted builder is one route, and the Newly.app review shows what one of them costs and delivers. These tools make different trade-offs on control, so the context question changes shape rather than disappearing.
FAQ
What is the context limit in Cursor?
It depends on the model. Cursor’s pages list a 200k standard window and a 1M maximum for Claude Sonnet 5.5, and a 300k standard point with a 1M maximum for Claude Opus 5.5. Check the model page for the model you selected, since the numbers change as models are updated.
Why does Cursor forget what I told it earlier?
Either the chat grew long enough that quality dropped, or an automatic summary replaced the older turns and lost some wording. Start a new chat for a new task, and restate the constraints that matter in the first message.
How do I see how full the context window is?
Hover over the chat title in the Agents Window to see a percentage, which Cursor staff describe as a gauge with a tray of token counts by category. Staff have said it can be inaccurate early in a conversation, so use it as an estimate.
Does /summarize delete my chat?
No. The command compacts older turns into a summary so the same chat can continue. Cursor states that your latest request is kept word for word after a summary. The detail of earlier turns is compressed, so save any important decision to a file first.
Should I still use a .cursorrules file?
The file still works, but Cursor calls it legacy and recommends Project Rules in .cursor/rules/ or an AGENTS.md file. Scoped rules load only when needed, which saves space in every chat.
Does Cursor upload my code to build a search index?
Cursor’s search page says Instant Grep builds and queries its index on your machine, and that Cursor does not upload file paths or code to build it or store embeddings of your codebase for search. The same page notes that when the agent opens a match, that file content can still be included in the model request.
Is Max Mode worth using?
Use it when a task needs more context than the standard window holds. Cursor says it is slower and more expensive, and a staff reply states that it does not make a model smarter. For ordinary edits the standard window is enough.
Conclusion
The Cursor context limit is a budget with several consumers, and rules, tool definitions and chat history use it before your files do. A larger window delays the problem. It does not remove it.
The fix order in this guide runs from cheap to costly. Update Cursor, start a new chat for each task, write scoped rules, disable tools you do not need, name symbols in prompts, and save decisions to a file before you compact. Choose a larger-window model option last.
Cursor will keep changing, and parts of this guide may need a check against the release notes for your build. The principle holds across versions: give the agent the smallest set of context that still lets it finish the task.
Read more AI coding guides
New reviews and fix guides are added to the blog every week.
Browse the blog