
Developer Privacy — March 26, 2026
GitHub Will Train AI on Your Code
Starting April 24. The Fine Print Is Worse.
Starting April 24, GitHub will use Copilot interaction data from Free, Pro, and Pro+ users to train AI models unless those users opt out. The private repo loophole, the enterprise pay-for-privacy moat, and the full data taxonomy reveal more than the opt-out instructions.
Sources: GitHub Copilot data policy update; Microsoft privacy terms; GitHub blog announcement; April 2026.
GitHub announced on March 25, 2026 that starting April 24, interaction data from GitHub Copilot Free, Pro, and Pro+ users may be used to train AI models unless the user opts out. The change covers inputs, outputs, accepted code snippets, surrounding code context, comments, file names, repository structure, navigation patterns, and feedback signals. Users must manually opt out by visiting github.com/settings/copilot and disabling the training toggle. Copilot Business and Enterprise users are contractually exempt from this program entirely, a different treatment from the individual tiers. The 30-day notice window expires on April 24.
The headline is about training data. The real story is about what “private repository” now means on GitHub, who pays for actual privacy, and what behavioral data at scale tells Microsoft about how software gets written.
Exactly What GitHub Will Collect
GitHub Chief Product Officer Mario Rodriguez published the full data taxonomy in the policy update. The interaction data includes code snippets shown to Copilot for context (the code surrounding your cursor position when Copilot activates), the suggestions Copilot generates, which suggestions you accept or modify, your prompts in Copilot Chat, and your thumbs-up or thumbs-down feedback ratings. File names, repository structure metadata, and navigation patterns across your codebase are also captured.
This is not just your code. It is your coding behavior. Acceptance patterns reveal which kinds of suggestions developers trust. Rejection patterns reveal where AI-generated code fails to match human intent. Navigation patterns show how developers move through codebases when solving specific types of problems. That behavioral dataset is arguably more valuable to Microsoft than the raw code, because it trains models to predict not just what code looks like but how developers actually work.
The Private Repository Loophole
GitHub’s FAQ draws a careful distinction: “We do not use private repository content at rest to train AI models.” The phrase “at rest” is doing significant work in that sentence. Private repository code stored on GitHub’s servers is not scanned for training. But when you open a private repository and use Copilot, the code that Copilot sees during your active session, the context window around your cursor, the completions it generates from your proprietary code, all of that is interaction data. And interaction data is what the new policy covers.
Put differently: your private repo’s stored content is excluded from training, but your active use of Copilot inside that private repo is not automatically excluded, since that use generates interaction data. GitHub is not misrepresenting the policy when it says private repos at rest are excluded. It is being precise in a way that most developers will not parse on first reading. The distinction between “code at rest” and “code during an active Copilot session” is the detail worth understanding. Developers who assumed private repositories were fully excluded from training data should re-read the policy carefully.
The Enterprise Pay-for-Privacy Model
Copilot Business ($19/user/month) and Copilot Enterprise ($39/user/month) are contractually exempt from the training data program. Their interaction data is never used to train models under the published policy. This creates a two-tier system where being excluded from training is a paid-tier feature rather than a default for everyone. Individual developers on the Free, Pro ($10/month), and Pro+ ($39/month) tiers are opted in to training by default; Business and Enterprise developers are contractually excluded.
The business logic is straightforward. Enterprise contracts generate predictable revenue and include negotiated terms. Individual developer accounts generate less revenue per user, so the training-data provision monetizes them a second way alongside subscription fees. Rodriguez justified the change by citing “established industry practices,” pointing to Anthropic, JetBrains, and Microsoft as companies with similar opt-out policies. That framing describes the industry norm; whether that norm is the right one is a separate, values-based question this piece is not resolving on GitHub’s behalf.
What the Community Reaction Reveals
The GitHub Community discussion thread for the policy change showed 59 thumbs-down reactions and 3 positive reactions as of March 27. Developer frustration centers on three points. First, the opt-out default. This is where legal analysis, not settled doctrine, comes in: GDPR is often read as requiring opt-in consent for data processing beyond what is strictly necessary for service delivery, and GitHub is relying on “legitimate interest” as its stated legal basis for EEA users. Whether that basis holds up is a live legal question rather than a decided one; “legitimate interest” is generally considered a less robust basis than explicit consent, and it is the kind of basis that data protection authorities have challenged in other cases, but no ruling on this specific GitHub policy exists as of this writing. Readers should treat this paragraph as this publication’s legal analysis of the policy, not as a report of any regulatory finding against GitHub.
Second, the scope creep. GitHub’s original Copilot launch explicitly positioned the product as not using individual interaction data for training. The April 24 change reverses that commitment. Users who signed up for Copilot under the old terms now face a changed data-handling policy. GitHub’s stated response: users who previously opted out retain their preference. Users who never made an active choice are opted in under the new default.
Third, the affiliate sharing clause. The updated privacy statement confirms that interaction data “may be shared with GitHub affiliates, which are companies in our corporate family including Microsoft.” Microsoft operates Azure OpenAI Service, Bing Chat (Copilot), and multiple AI products that compete with standalone developer tools. The statement says data will not be shared with “third-party AI model providers,” but Microsoft itself is the largest AI model provider in GitHub’s corporate family, so that carve-out does not cover Microsoft’s own use.
How to Opt Out (and What Opting Out Does Not Cover)
Navigate to github.com/settings/copilot/features. Under the Privacy heading, disable “Allow GitHub to use my data for AI model training.” The toggle takes effect immediately. Interaction data collected before you opt out may already be in the training pipeline. GitHub does not specify a deletion timeline for previously collected interaction data, only that collection stops going forward.
Opting out of training does not opt you out of all data collection. GitHub still collects interaction data for “service operation and improvement,” which is a separate category from model training. The distinction between data used to run the service and data used to train models is real but narrow. Service operation data includes the same inputs and outputs. The difference is what happens downstream.
What This Means for Competitors
Cursor markets a “Privacy Mode” that offers zero data retention when enabled. Cursor‘s stated policy is that it does not train on user data in privacy mode. That positioning becomes significantly more valuable after April 24. JetBrains’ AI assistant similarly allows users to run local models with no data leaving the machine. The GitHub policy change hands competitors a differentiation lever they did not have to build. They just have to point at it.
For OpenAI, the dynamics are more complex. OpenAI provides some of the models that power Copilot, but GitHub’s updated terms specifically state that interaction data will not be shared with third-party AI model providers. If that firewall holds as described, OpenAI does not benefit directly from Copilot training data. Microsoft’s internal models do. Whether those Microsoft models eventually compete more directly with OpenAI’s own products is a strategic tension neither company has resolved publicly.
The Bottom Line
GitHub is not doing anything unusual by current AI industry norms. Several major AI platforms use interaction data to train models, offer opt-out rather than opt-in, and exempt enterprise customers who pay more. The April 24 change is notable because of GitHub’s position as the default code hosting platform for most of the world’s developers. When GitHub changes its data policy, the blast radius is measured in tens of millions of developer accounts, many of whom will never read the announcement, never find the settings page, and never know their coding patterns may be training the next version of the tool they use every day.
Sources: GitHub official blog announcement, March 25, 2026; GitHub Community FAQ Discussion #188488; The Register analysis; GitHub Privacy Statement update; GDPR Article 6(1)(f) legitimate interest provisions. Updated 2026-08-18: labeled the GDPR/legitimate-interest discussion explicitly as this publication’s legal analysis rather than settled legal fact, and tightened language throughout to keep the Free/Pro/Pro+ opt-out policy clearly distinct from the Business/Enterprise contractual exclusion.