AI Learning Hub › Learn AI › Self-Paced Courses › Cursor: Plan, Build, Debug, and Review › Models, Context, and What Cursor Reads
Module 3 ยท Beginner to intermediate
Models, Context, and What Cursor Reads
Which model answers, and which files it can see. The picker, the plan that gates it, and the ignore file that narrows what the agent reads.
By the end
- Open the model picker and choose a model deliberately
- Say what separates Cursor’s own models from the others, and why your plan decides which you see
- Write a
.cursorignoreand understand what it covers
Two things shape every answer the agent gives you: the model doing the work, and the files it can see. Both are yours to set, and this module covers each briefly before the building starts.
The model picker
The model in use is shown beside the mode chip at the bottom of the message box. Clicking it opens a searchable list.
What stays steady is the shape of the list, and it is worth reading for that rather than for the names.
Auto
A routing choice rather than a model. Cursor picks one for each request. The model that served a given turn is hidden by default, so Auto trades visibility for convenience.
Cursor Models
Cursor’s own, covered by whatever usage your plan includes. These are the ones available on the free plan.
Other Models
Models from OpenAI, Anthropic, Google and others. Cursor’s documentation states these need a Premium plan or higher; free and paid-entry plans include the first-party models only.
Each entry carries a second word — High, Medium, High Fast — describing how much effort it puts into a reply. The side panel in the screenshot shows those as adjustable settings on some plans.
Choosing one on purpose
Rather than memorizing which model suits which job, which would be out of date by the time you read it, four questions survive any lineup:
- Is it available to me? A grayed-out or absent model is usually a plan or a regional restriction rather than a fault.
- Does this task need careful reasoning, or speed? Renaming a heading and restructuring a filter are different kinds of work.
- What will it spend? Usage is finite on every plan, and a larger model spends it faster.
- Does it need to hold much of the project at once? For a four-file project, no. For a large codebase, this starts to matter.
Exercise. Open the picker, read what your account offers, and pick a Cursor model deliberately rather than accepting the default. Note which one you chose; you will use it for the rest of the course, and keeping it constant makes the later modules easier to compare.
How the agent finds code
You have already seen Ask quote line numbers from a file you never mentioned. It found them by searching the project, the way you would with a find-in-files command, only faster.
Cursor’s documentation is specific about where that search runs:
Instant Grep builds and queries its index on your machine. Cursor does not upload file paths or code to build a search index, and it does not store embeddings of your codebase for search.
And about what follows from a match:
When Agent opens a match, that file content can still be included in the model request.
Both halves matter. Searching happens locally. The file the search leads to travels, because answering your question requires a model to read it. Module 9 returns to where that request goes.
Narrowing what the agent reads
A .cursorignore file in the project root lists things Cursor’s AI features should leave alone. It uses the same pattern syntax as .gitignore, which Cursor also honors automatically.
Exercise. The practice project contains private-notes.txt, a few lines of fictional working notes. Create a file called .cursorignore in the project folder with one line in it:
private-notes.txtStart a new chat, switch to Ask, and try:
Prompt to try
What is in private-notes.txt?
The agent’s own file tools are blocked from reading it.
What the ignore file covers
Cursor documents the boundary precisely, and it is narrower than the name suggests:
The terminal and MCP server tools used by Agent cannot block access to code governed by
.cursorignore.
So a terminal command the agent runs can still read an ignored file, because the shell knows nothing about Cursor’s ignore list. The same documentation adds that even where the rule does apply, “complete protection isn’t guaranteed due to LLM unpredictability.”
Treat .cursorignore as a way to keep noise and sensitive material out of the agent’s ordinary reading, and keep real credentials out of the project altogether. A file that would cause harm if it were read should not be sitting in a folder you are pointing an agent at.
Cursor also ignores a long default list without being asked, including .env files, lock files and the contents of .git.
Delete the .cursorignore before moving on, or leave it — it makes no difference to the modules that follow.
Before the next module
- You have chosen a model deliberately and know which one it is
- You can say why your picker might not match the screenshot
- You have written a
.cursorignoreand seen it take effect