[llvm] [docs] Strengthen our quality standards and connect AI contribution policy to it (PR #154441)

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 16:28:35 PDT 2025


================
@@ -0,0 +1,154 @@
+# LLVM AI Tool Use Policy
+
+LLVM's policy on AI-assisted tooling is fundamentally liberal -- We want to
+enable contributors to use the latest and greatest tools available. However,
+human oversight remains critical. **The contributor is always the author and is
+fully accountable for their contributions.**
+
+* **You are responsible for your contributions.** AI-generated content must be
+  treated as a suggestion, not as final code or text. It is your responsibility
+  to review, test, and understand everything you submit. Submitting unverified or
+  low-quality machine-generated content (sometimes called "[AI
+  slop][ai-slop]") creates an unfair review burden on the community and is not
+  an acceptable contribution. Contributors should review and understand their own
+  submissions before asking the community to review their code.
+
+* **Start with small contributions:** Open source communities operate on trust
+  and reputation. Reviewing large contributions is expensive, and AI tools tend
+  to generate large contributions. We encourage new contributors to keep their
+  first contributions small, specifically below 150 additional lines of
+  non-test code insertions, until they build personal expertise and maintainer
+  trust before taking on larger changes.
+
+* **Be transparent about your use of AI.** When a contribution has been
+  significantly generated by an AI tool, we encourage you to note this in your
+  pull request description, commit message, or wherever authorship is normally
+  indicated for the work. For instance, use a commit message trailer like
+  Assisted-by: <name of code assistant>. This transparency helps the community
----------------
JDevlieghere wrote:

Suggestion: wrapping this in backticks may help with readability.
```suggestion
  `Assisted-by: <name of code assistant>`. This transparency helps the community
```

https://github.com/llvm/llvm-project/pull/154441


More information about the llvm-commits mailing list