Conversation
✅ Deploy Preview for redpanda-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughA new configuration file Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/ai-opt-out:
- Line 1: Delete the stray repository file that contains the single line
"opt-out: true" because it is not a recognized GitHub mechanism; remove the file
from the repo (delete the file and commit the change) and include a concise
commit message like "remove invalid ai-opt-out file" to clarify the fix.
| @@ -0,0 +1 @@ | |||
| opt-out: true | |||
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
What is the official GitHub method for opting out of AI training in 2026?
💡 Result:
In 2026, GitHub’s official Copilot policy for individual accounts (Copilot Free/Pro/Pro+) is that your prompts, suggestions, and code snippets are not used for AI model training by default—and this “AI model training” setting can’t be enabled, so there’s nothing you need to do to “opt out.” [1]
If you want the closest related privacy control GitHub exposes (separate from model training), you can turn off prompt/suggestion collection for product improvements:
- GitHub.com → click your profile picture (top-right) → Copilot settings → under prompt/suggestion collection, deselect “Allow GitHub to use my code snippets from the code editor for product improvements.” [1]
GitHub’s terms also note that Copilot data handling depends on settings, and (historically) that Copilot Free data may be used for model training if you allow it in settings—so the GitHub Docs page above is the authoritative place to confirm what controls are currently available. [2]
Sources: [1] GitHub Docs – Manage policies (individual Copilot settings), [2] GitHub Docs – GitHub Terms for Additional Products and Features
🌐 Web query:
GitHub ai-opt-out file format documentation
💡 Result:
GitHub does not document (and does not appear to support) any special repository file named ai-opt-out, .ai_exclude, etc. that changes whether your GitHub repository content can be used for AI training.
What GitHub does officially document instead:
- Copilot training/data controls are settings/policies, not a repo “opt-out file”. For individual Copilot subscribers, GitHub documents policies to enable/disable prompt & suggestion collection (and related processing/sharing) in Copilot settings. [1]
- GitHub’s Copilot positioning around model training is described in Copilot-related policy/docs (and referenced from those settings pages), not via a per-repo opt-out file. [1]
If what you want is a machine-readable opt-out signal for crawlers/dataset builders in general (not GitHub-specific), you’ll need a separate standard/spec, e.g.:
ai.txt(a proposed permissions/interaction file format) specification: [2]- TDM·AI “usage declarations” JSON format (another opt-out/permissions approach): [3]
Sources
[1] GitHub Docs – “Managing Copilot policies as an individual subscriber” (docs.github.com)
[2] AI Visibility – ai.txt specification (ai-visibility.org.uk)
[3] TDM·AI Protocol – JSON format for usage declarations (docs.tdmai.org)
Citations:
- 1: https://docs.github.com/es/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/managing-your-copilot-plan/managing-copilot-policies-as-an-individual-subscriber?utm_source=openai
- 2: https://www.ai-visibility.org.uk/specifications/ai-txt/?utm_source=openai
- 3: https://docs.tdmai.org/technical-specification/json-format-for-usage-declarations?utm_source=openai
Remove this file — it is not an official GitHub mechanism and will not opt out of AI training.
GitHub does not document or support a .github/ai-opt-out file format for opting out of AI training. GitHub's Copilot controls are managed through the UI settings (Copilot settings → prompt/suggestion collection), not repository files. This file will have no effect on AI training policies and may create false confidence that the intended opt-out has been implemented.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/ai-opt-out at line 1, Delete the stray repository file that contains
the single line "opt-out: true" because it is not a recognized GitHub mechanism;
remove the file from the repo (delete the file and commit the change) and
include a concise commit message like "remove invalid ai-opt-out file" to
clarify the fix.
opt out of AI training per GitHub policy