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 if you submit AI-generated code to the kernel; however, if something goes wrong with it, it’s on your head. No pointing the finger at Claude Code this time.

These 5 Gnome extensions instantly improved my Linux workflow - featured

Related


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

A laptop showing the Steam library page for the game Call of Juarez: Gunslinger

As spotted by the folk 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 guidelines for submitting to the Linux kernel, fits within the license Linux uses, and is attributed to the bot correctly.

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 what, exactly, it’s coding, else you’ll likely not be contributing to Linux for much longer.

Claude code

Related


Stop using CLAUDE.md; here’s what actually works for AI-assisted development

Do you really need custom context files for every repository?