AI Learning Hub › Learn AI › Self-Paced Courses › Cursor: Plan, Build, Debug, and Review › Where Your Code Goes
Module 9 ยท Beginner to intermediate
Where Your Code Goes
What Privacy Mode covers, where model requests travel, what an ignore file reaches, and how a cloud agent differs from the one on your machine.
By the end
- Say what Privacy Mode covers and where model requests travel
- Match each control to what it actually protects
- Describe how a cloud agent differs from the one on your machine
Everything so far has happened on your own machine, in a project with nothing sensitive in it. This module is about what leaves, and what to check before the project is a real one.
Where your code goes
Cursor runs models through its own service. When you send a request, the prompt and the parts of the project needed to answer it go to a model provider — Cursor names OpenAI, Anthropic and Google among them, alongside its own models.
Searching is the exception, and Cursor is specific about it: the search index is built and queried on your machine, with no file paths or code uploaded to build it, and no stored embeddings of your codebase. Finding the file is local. Reading it to answer your question is not.
Privacy Mode
Privacy Mode governs how Cursor and its model providers may treat your code: with it on, your code is not used for training. Cursor states this plainly, and states equally plainly on the same page that prompts and code context are sent to model providers when you use AI features.
Both facts hold together. Privacy Mode is a commitment about how your code is handled once it arrives, and AI requests still involve remote processing as part of normal operation.
Cursor also documents limits on its zero-retention arrangements: they do not apply when you supply your own provider API key, and some models require retention with their provider and are turned off by default.
The toggle is in Cursor’s settings under General. For teams it can be switched on for everyone by an administrator.
Activity: what does this control protect?
Five controls, five jobs. Decide what each one actually covers before opening the answers.
Privacy Mode
.cursorignore
Checkpoint
Run Mode
Auto-Review
Check your answers
Privacy Mode governs training and retention of your code by Cursor and its providers. Requests still travel to those providers for processing.
.cursorignore controls which files the agent’s own file tools and context features read. Terminal commands and connected MCP servers reach files by a different route, so they are not bound by it.
A checkpoint restores your files to a point in an agent session. It is local, it sits outside Git, and it records nothing about why anything changed.
Run Mode governs tool calls such as shell commands. The agent’s own code edits are written to disk as it works, which is why review happens afterward.
Auto-Review puts a classifier in front of riskier calls. Cursor’s documentation heads the relevant section “Auto-review is not a security boundary” and notes that the classifier can both allow and block the wrong things.
Each of those is useful. None of them is a reason to put something into a project that should not be there.
The agent on your machine, and the one that is not
Everything in this course has used the local agent: it works on the folder you opened, under the settings you inspected in Module 5, on your computer.
Cursor also runs agents in the cloud, on their own machines, with a copy of a repository and its dependencies. Those follow a different model — Cursor’s documentation states that cloud agents do not use Run Modes, because the agent is working in its own environment rather than yours, so it never stops to ask you about an action.
| Local agent | Cloud agent |
|---|---|
| Works on the folder you opened | Works on a copy in a remote environment |
| Run Modes and protections apply | Approvals do not apply |
| Your machine runs the work | Continues without your machine |
| Nothing is copied anywhere to start | Repository, dependencies and secrets live in that environment |
Each has its place, and they draw their boundaries differently rather than one being safer. The cloud agent cannot reach your laptop, and it also cannot be stopped by the settings on it.
This course stays local throughout. Cloud agents need a paid plan and a source-control connection set up by an account administrator, and Cursor’s scheduled and event-triggered agents are a further step again.
The account you end up with
Cursor is currently sold as part of a combined subscription covering Cursor along with other products from the same company, and new customers sign up through it. Creating a Cursor account today means creating one inside that arrangement. Plan management happens on that subscription’s billing pages rather than Cursor’s own.
That is worth knowing before you sign up, particularly with a Stanford address.
Before you point it at real work
Stanford provides several AI services under institutional agreements. Cursor is not among them, which changes what you should check before using it for school work.
Before You Use Cursor for SLS Work sets out what to check and links to the current Stanford and SLS sources. Read it before the practice project becomes a real one.
Before the capstone
- You can explain Privacy Mode without claiming code stays on your machine
- You can say what
.cursorignorecovers and what reaches past it - You know why this course never asked you to run a cloud agent