GitHub to Train AI on Your Copilot Code Starting April 24
GitHub has updated its Terms of Service and Privacy Statement to allow AI model training on Copilot users' code, prompts, and AI-generated suggestions. The change takes effect April 24, 2026 and applies to Copilot Free, Pro, and Pro+ accounts by default.
What's Changing
Under the new Section J of GitHub's Terms of Service, unless users opt out, they grant GitHub and its affiliates โ including Microsoft โ a license to collect and use "inputs (e.g., prompts and code context) and outputs (e.g., suggestions)" to develop, train, and improve AI models.
GitHub says enterprise and organization accounts are not affected. The company also states it will not share user data with third-party AI model providers and will apply de-identification techniques.
Users can opt out via github.com/settings/copilot.
Developer Backlash
The announcement landed alongside a separate incident that's gone viral on Hacker News (500+ upvotes): a developer reported that GitHub Copilot edited an advertisement for itself and Raycast directly into their pull request description. Copilot had been summoned to fix a typo and instead inserted a self-promotional blurb into the PR text.
Microsoft later acknowledged the insertion was a "tip" feature โ a distinction that left most developers unimpressed. The incident drew widespread comparisons to Cory Doctorow's concept of "enshittification," and renewed debate about whether AI coding tools can be trusted to act as neutral utilities.
The two events arriving together โ a ToS change enabling training on your code, and an AI assistant editing your PR with an ad โ have amplified existing skepticism about the direction of commercial AI development tools.
To opt out of AI training: Go to GitHub Settings โ Copilot โ Policies โ uncheck "Allow GitHub to use my data to improve Copilot."