# Can a contractor use Cursor or Copilot on your code?

> What leaves when an outside developer uses an AI editor on your code, where it goes, what Privacy Mode changes, and how to keep part of the code out of reach.

Source: https://occlude.dev/blog/contractors-using-cursor-or-copilot/ · 28 November 2026 · By Aman Sharma


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.

![The path a file takes. Files the contractor can read reach their editor on the laptop. The assistant reads from the editor and sends requests to its vendor, which may pass them to model providers. Files the contractor cannot read never reach the editor, so they cannot be sent](https://occlude.dev/figures/assistant-reach.webp)

*What the assistant can send is bounded by what the contractor can read. The vendor's settings decide what it keeps.*

## 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](https://occlude.dev/blog/ai-coding-agent-ignore-settings-compared/) goes through each tool.

## The order that works

1. Decide what the contractor needs to read for the task. Everything else should not be readable by them at all, by any tool.
2. Give access in a way that enforces step one, not a setting in their editor.
3. 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](https://occlude.dev/blog/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](https://occlude.dev/docs/cursor/) and [VS Code](https://occlude.dev/docs/vscode/) have the setup, and [Where your code goes](https://occlude.dev/docs/data-flow/) sets out every route.

## Sources

Each page last read on 28 November 2026.

- [Cursor: network troubleshooting](https://cursor.com/help/troubleshooting/network), [data use](https://cursor.com/data-use), [privacy](https://cursor.com/help/security-and-privacy/privacy) and [ignore files](https://cursor.com/docs/reference/ignore-file).
- [Cursor forum: Concerns about Privacy Mode and Data Storage](https://forum.cursor.com/t/concerns-about-privacy-mode-and-data-storage/5418).
- [GitHub: Copilot Chat, responsible use](https://docs.github.com/en/copilot/responsible-use/chat) and [content exclusion](https://docs.github.com/en/copilot/concepts/context/content-exclusion).
