Detect AI generated code in Merge Requests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Context

As Ai code generator tools become prevalent, accepting Merge Requests containing AI generated code can be harmful to some contexts.

Detecting this and displaying to the reviewer so they can make an educated decision on whether that's in line with their criteria can be very useful to have.

Proposal

  • Mark pieces of code contributed in Diffs that have a high likelihood of being AI Generated.
  • I think a first iteration for this could be as simple as a CI Template that customers could choose to include that could just provide output in a job as some kind of probability score that the code in the merge request was generated by AI. There's already tools and ways to detect this on text... I think the question would be could we apply this to code. We could probably check with the broader AI teams on this.
Edited by 🤖 GitLab Bot 🤖