Summary
- 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 consequences.
In a world where AI code is entrenched within people's workflows, developers of all walks of life have had to draw a line somewhere. Some places will outright ban AI code, while others will fully embrace it, and each side has its advantages and disadvantages.
Well, it turns out that the world of Linux has finally agreed upon where AI code fits within kernel development. Turns out it's totally fine to submit AI-generated code to the kernel; however, if something goes wrong, it's on your head. No pointing the finger at Claude Code this time.
GNOME is cracking down on AI-generated code after updating its extensions guidelines
The reviewers have had enough.
Linux kernel contributors can use AI-generated code, but with caution
It's essentially treated like it's the contributor's own code
As spotted by the folks over at Hacker News, there's new documentation over on the Linux GitHub project for coding assistants. The document reveals that people can use AI-generated code, as long as it complies with the Linux kernel submission guidelines, fits within the Linux license, and is correctly attributed to the bot.
So, does that mean you can attach your favorite LLM to the kernel, let it code away, and head out for the day? Well, not quite. While AI agents can now submit code to the kernel, the documentation makes it very clear that, if anything does go wrong, you cannot simply get out of trouble by blaming your assistant:
AI agents MUST NOT add Signed-off-by tags. Only humans can legally certify the Developer Certificate of Origin (DCO). The human submitter is responsible for:
- Reviewing all AI-generated code
- Ensuring compliance with licensing requirements
- Adding their own Signed-off-by tag to certify the DCO
- Taking full responsibility for the contribution
That last bullet point is the real bombshell. You are, essentially, submitting the AI's code as if it were your own. If it ends up being a buggy mess and Linus himself gets mad, your head is going on the block. So, feel free to use AI code when contributing to the Linux kernel, but make sure you understand exactly what it's coding, or else you'll likely not be contributing to Linux for much longer.
Stop using CLAUDE.md; here's what actually works for AI-assisted development
Do you really need custom context files for every repository?
