4 Sources
[1]
The new rules for AI-assisted code in the Linux kernel: What every dev needs to know
If you try to mess around with Linux code using AI, bad things will happen. After months of heated debate, Linus Torvalds and the Linux kernel maintainers have officially codified the project's first formal policy on AI-assisted code contributions. This new policy reflects Torvald's pragmatic
[2]
Linux lays down the law on AI-generated code, yes to Copilot, no to AI slop, and humans take the fall for mistakes -- after months of fierce debate, Torvalds and maintainers come to an agreement
The open-source community's long-simmering identity crisis over artificial intelligence just got a much-needed dose of pragmatism. This week, the Linux kernel project finally established a formal, project-wide policy explicitly allowing AI-assisted code contributions provided that developers follow
[3]
The Linux kernel now allows AI-written code, but you're on the hook for it
* Linux allows AI-generated kernel code, but the community will treat it as your own contribution. * AI tools can't add signed-off-by tags; you must certify DCO, license, and review all code. * If your AI code breaks the kernel, the blame stops with you; review the code carefully or face the
[4]
Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the contribution'
* Linux positions AI as an assistance tool, not as a developer replacement * Human contributors are still fully responsible for their submissions * Transparency tagging will reveal where AI is used Linux has confirmed the use of generative AI to support coding is acceptable, but has established
Share
Copy Link
After months of heated debate, Linus Torvalds and Linux kernel maintainers have codified the project's first formal policy on AI-assisted code contributions. The new guidelines introduce an Assisted-by tag for transparency while treating AI as just another development tool. Developers using AI must take full responsibility for the contribution, including any bugs or security flaws.
The Linux kernel project has officially codified its first formal policy on AI-assisted code contributions, ending months of fierce debate within the open-source community
1
. Linus Torvalds and kernel maintainers have established clear guidelines that position AI as a development tool rather than a replacement for human developers, balancing modern AI capabilities with the kernel's rigorous quality standards2
.
Source: XDA-Developers
The new policy introduces the Assisted-by tag as a transparency mechanism, requiring developers to disclose when AI tools like Microsoft Copilot contribute to their code
4
. This tag serves dual purposes: enabling kernel maintainers to apply extra scrutiny to AI-assisted patches while avoiding stigmatization of the practice itself1
.
Source: ZDNet
The policy makes developer accountability its cornerstone. AI agents cannot add the legally binding "Signed-off-by" tag—only humans can certify the Developer Certificate of Origin
3
. The human submitter must review all AI-generated code, ensure licensing compliance, and take full responsibility for the contribution, including any resulting bugs or security flaws2
.Code must be compatible with GPL-2.0-only licensing and include proper SPDX identifiers
4
. This approach legally anchors every line of AI-generated code onto the shoulders of the person submitting it, eliminating any possibility of blaming the AI for mistakes3
.The Assisted-by tag emerged from controversy when Nvidia engineer and prominent kernel developer Sasha Levin submitted a patch to Linux 6.15 entirely generated by AI, including the changelog and tests, without disclosing this to reviewers
1
. While Levin reviewed and tested the code, the lack of transparency provoked massive community backlash2
. The code included a performance regression despite being reviewed, and Torvalds admitted the patch wasn't properly scrutinized partly because it wasn't labeled as AI-generated2
.At the 2025 North America Open Source Summit, Levin himself began advocating for formal AI transparency rules, proposing the first draft in July 2025
1
. Initial discussions on the Linux Kernel Mailing List debated whether to use Generated-by or Co-developed-by tags before settling on Assisted-by to accurately reflect AI's role as a tool1
.
Source: Tom's Hardware
Linus Torvalds took a characteristically blunt stance during the debate, stating he didn't want kernel documentation to take either the "sky is falling" or "it's going to revolutionize software engineering" position
1
. His pragmatism shaped the policy's philosophical backbone: AI is just another tool, and bad actors submitting garbage code won't read documentation anyway2
.Kernel maintainers aren't relying on AI-detection software to catch undisclosed AI-generated code. Instead, they're using deep technical expertise, pattern recognition, and traditional code review
1
. As Torvalds noted in 2023, "You have to have a certain amount of good taste to judge other people's code"1
. He pointed out there's "zero point in talking about AI slop" because people creating it won't document their patches as such1
.Related Stories
The policy arrives as the open-source community struggles with an identity crisis over artificial intelligence
2
. Major projects have taken wildly different approaches: Linux distributions like Gentoo and NetBSD moved to outright ban AI-generated submissions, with NetBSD maintainers describing Large Language Model outputs as legally "tainted" due to murky copyright issues surrounding training data2
.The open-source world has been drowning in what the community calls "AI slop." The creator of cURL closed bug bounties after being flooded with hallucinated code, whiteboard tool tldraw began auto-closing external pull requests, and projects like Node.js and OCaml faced massive AI-generated patches exceeding 10,000 lines
2
.The decision reflects a shift in AI capabilities. Greg Kroah-Hartman, maintainer of the Linux stable kernel, recently noted that "something happened a month ago, and the world switched" with AI tools now producing genuine, valuable security reports rather than hallucinated nonsense
1
. Most AI use in kernel development is assistive—code completion, refactoring suggestions, test generation—rather than full code generation1
.The choice of Assisted-by over Generated-by was deliberate, influenced by three factors: accuracy in describing assistive rather than generative use, consistency with existing metadata tags like Reviewed-by and Tested-by, and avoiding implications that AI-assisted code is suspicious or second-class
1
.As one of the most influential open-source projects, Linux's approach could establish industry standards for AI-assisted code contributions
4
. The policy strips emotion from the debate by acknowledging reality: developers will use AI tools to code faster, and attempting to ban specific software is impractical2
. The enforcement strategy doesn't depend on catching every violation but on making consequences severe enough to discourage dishonesty1
.Summarized by
Navi
16 Jul 2026•Technology

12 Jan 2026•Technology

22 Aug 2026•Technology

1
Science and Research

2
Policy and Regulation

3
Technology