> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Open Source Project LLVM Says Yes to AI-Generated Code, But Not Without Conditions
- URL: https://itsfoss.com/news/llvm-ai-policy/
- Published: 2026-01-22T07:30:13.000Z
- Updated: 2026-01-22T07:30:13.000Z
- Description: The new "human in the loop" policy holds contributors accountable for reviewing and understanding all AI-assisted submissions.
- Author: Sourav Rudra
- Tags: News

Following the lead of other open source projects, [LLVM](https://llvm.org/?ref=itsfoss.com) has now implemented their new "*human in the loop*" AI policy that [governs the use of AI tools](https://github.com/llvm/llvm-project/commit/18695b27d565?ref=itsfoss.com) in contributions to the project.

With this in place, **contributors can use whatever AI tools they like** to help with their contributions, but they are fully accountable for what they submit. They also have to mention which tool they used, either in the pull request description, commit message, or wherever authorship is listed.

Additionally, contributors must be able to answer questions about their work during review, and should be confident that what they are submitting is worth a maintainer's time to go over.

LLVM's new AI policy also clarifies that:

> Contributors are expected to be transparent and label contributions that contain substantial amounts of tool-generated content. Our policy on labelling is intended to facilitate reviews, and not to track which parts of LLVM are generated.

For the uninitiated, LLVM is **a collection of compiler and toolchain components** that serves as the foundation for many programming languages and development tools. It is used by major projects like **Clang** (*the C/C++ compiler*), **Rust**, **Swift**, and even in [Linux kernel](https://www.kernel.org/?ref=itsfoss.com) development.

## The Community Was Involved

Just like any open source project worth its salt, the new policy was drafted taking community feedback into account.

One of the earlier calls for this came from a LLVM community member [who pointed out](https://discourse.llvm.org/t/our-ai-policy-vs-code-of-conduct-and-vs-reality/88300?ref=itsfoss.com) that there was a mismatch in LLVM's AI-generated code handling policy, their code of conduct, and what was happening in reality.

This person cited a specific pull request that had attracted [a lot of attention on Hacker News](https://news.ycombinator.com/item?id=45244295&ref=itsfoss.com#:~:text=%7C%20next%20%5B%E2%80%93%5D-,I%27ve%20been%20using%20AI%20to%20contribute%20to%20LLVM%2C%20which%20has%20a%20liberal%20policy.,-The%20code%20is), where a contributor had openly admitted to using AI but not disclosing it in the actual pull request itself.

[Reid Kleckner](https://discourse.llvm.org/u/rnk/summary?ref=itsfoss.com), an LLVM maintainer, took the lead in addressing these concerns. First, he posted [a draft policy](https://discourse.llvm.org/t/rfc-llvm-ai-tool-policy-start-small-no-slop/88476?ref=itsfoss.com) to gather community feedback. His initial proposal borrowed heavily from [Fedora's AI policy](https://itsfoss.com/news/fedora-ai-guidelines/) and included specific limits, like **restricting newcomers to 150 lines of non-test code**.

A few months later, [he was back](https://discourse.llvm.org/t/rfc-llvm-ai-tool-policy-human-in-the-loop/89159?ref=itsfoss.com) after gathering extensive feedback from community meetings and forum discussions. Reid mentioned that **he had moved away from the Fedora-based draft**, with the new version focusing on making the requirements more explicit and actionable. 

Instead of vague clauses like "*owning the contribution*," the updated policy spelled out clearly that contributors must review their work and be prepared to answer questions about it.

The updated AI Tool Use Policy is now live on LLVM's [documentation website](https://llvm.org/docs/AIToolPolicy.html?ref=itsfoss.com), complete with guidelines for handling violations and examples of acceptable AI-assisted contributions.

Via: [Phoronix](https://www.phoronix.com/news/LLVM-Human-In-The-Loop?ref=itsfoss.com)