Yes, and the question to answer first is where your code goes when they do. With Cursor or Copilot, whatever the assistant reads can be sent to the assistant's vendor and its model providers, under that vendor's terms. So two things decide your exposure: what the contractor's assistant can read, and what its vendor may keep. A contract covers the second. Only how you give access covers the first.


Where the requests go
Cursor runs its AI features on the developer's machine, even when the code is on a remote server. Its network documentation says: "AI requests go from your local machine to Cursor's servers, not from the remote host." Its data-use page adds that this holds with the developer's own API key: "Even if you use your API key, your requests will still go through our backend!" Cursor also says, "When you use AI features, Cursor sends prompts and code context to model providers like OpenAI, Anthropic, and Google."
GitHub Copilot sends what its chat needs as context. GitHub's description: the prompt is "combined with contextual information (for example, the current repository, open files, or chat history), and sent to a large language model."
Neither is unusual. Every AI assistant works by sending code to a model. The question is which code.
What the vendor keeps
| What changes it | What the vendor says | |
|---|---|---|
| Cursor | Privacy Mode | With it on, "Customer Data will not be used for training by Cursor", and Cursor holds zero-data-retention agreements with its providers. It is "on by default for Enterprise teams." With it off, Cursor "may use and store codebase data, prompts, editor actions, code snippets, and other code data" to improve its features and train models |
| GitHub Copilot | The plan and its policies | Set by the organisation on Copilot Business and Enterprise |
For a contractor on their own Cursor account, check which mode they are in. Cursor's forum has a thread from a developer whose client raised exactly this, as a question of their NDA, even with Privacy Mode on. If your company has approved one assistant, require it for contractors too, on an account your company controls.
Keeping part of the code out of reach
Both vendors offer a way to keep files from the assistant, and both say it is not a boundary:
- Cursor's
.cursorignore: "The terminal and MCP server tools used by Agent cannot block access to code governed by.cursorignore." - Copilot's content exclusion: "not a filesystem security boundary", and it does not apply to "repositories located on remote filesystems".
And both settings are on the contractor's machine, next to a clone. If the contractor has the file, their assistant can read it through some route, and the contractor can read it without an assistant at all. What AI coding agents' ignore settings actually block goes through each tool.
The order that works
- Decide what the contractor needs to read for the task. Everything else should not be readable by them at all, by any tool.
- Give access in a way that enforces step one, not a setting in their editor.
- Then let them use the assistant your company approves, with its privacy settings required. It can only send what step one let them read.
Step two is the hard part with Git, because Git grants a whole repository. How to give a contractor access to part of a repository compares the seven ways teams do it.
Where Occlude fits
Occlude does step two. The contractor connects Cursor, VS Code with Copilot, or another editor to a workspace in your cloud over SSH. The files their task needs are on their side; the rest is not there, while the build still reads it. Cursor's agent, Copilot and the terminal all get No such file or directory for the rest, because the files are not on that side to be read. There is no clone on the laptop.
What Occlude does not change is step three: a file the contractor may read can still be sent by their assistant. Cursor and VS Code have the setup, and Where your code goes sets out every route.
Sources
Each page last read on 28 November 2026.
- Cursor: network troubleshooting, data use, privacy and ignore files.
- Cursor forum: Concerns about Privacy Mode and Data Storage.
- GitHub: Copilot Chat, responsible use and content exclusion.
Want to go through this for your codebase?
Or write to contact@occludehq.com
Not ready to talk? Step through a session on a sample repository