CommunityNews

CommunityNews

Guidance for AI tools and developers using AI assistance when contributing to the Linux kernel

.. SPDX-License-Identifier: GPL-2.0

.. _coding_assistants:

AI Coding Assistants
++++++++++++++++++++

This document provides guidance for AI tools and developers using AI
assistance when contributing to the Linux kernel.

AI tools helping with Linux kernel development should follow the standard
kernel development process:

  • Documentation/process/development-process.rst
  • Documentation/process/coding-style.rst
  • Documentation/process/submitting-patches.rst

Licensing and Legal Requirements

All contributions must comply with the kernel’s licensing requirements:

  • All code must be compatible with GPL-2.0-only
  • Use appropriate SPDX license identifiers
  • See Documentation/process/license-rules.rst for details

Signed-off-by and Developer Certificate of Origin

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

Attribution

When AI tools contribute to kernel development, proper attribution
helps track the evolving role of AI in the development process.
Contributions should include an Assisted-by tag in the following format::

Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]

Where:

  • AGENT_NAME is the name of the AI tool or framework
  • MODEL_VERSION is the specific model version used
  • [TOOL1] [TOOL2] are optional specialized analysis tools used
    (e.g., coccinelle, sparse, smatch, clang-tidy)

Basic development tools (git, gcc, make, editors) should not be listed.

Example::

Assisted-by: Claude:claude-3-opus coccinelle sparse

Read in full here: linux/Documentation/process/coding-assistants.rst at master · torvalds/linux · GitHub

Where Next?

Popular Linux topics Top

New
First poster: bot
Why we’re migrating (many of) our servers from Linux to FreeBSD. We started a complex, continuous and not always linear operation, that ...
New
First poster: bot
I’ve used NixOS as the only OS on my laptop for around three years at this point. Installing it has felt sort of like a curse: on the one...
New
First poster: bot
Wacom Leads the Way with Pens and Tablets for Linux. Wacom devices are being adopted in many Linux enterprise environments beyond the cr...
New
First poster: bot
A journey into the Linux scheduler. Two years ago more or less I started my journey in Linux. I was scared at first and I didn’t know wh...
New
New
CommunityNews
At Akademy 2025, the KDE Project released an alpha version of KDE Linux, a distribution built b […]
New
CommunityNews
From time to time, our systems engineers write up a case study detailing a notable moment on the infrastructure front lines. This month’s...
New
CommunityNews
Interactive Linux kernel source code browser with guided learning paths.
New
CommunityNews
.. SPDX-License-Identifier: GPL-2.0 .. _coding_assistants: AI Coding Assistants ++++++++++++++++++++ This document provides guidance ...
New

Other popular topics Top

PragmaticBookshelf
Machine learning can be intimidating, with its reliance on math and algorithms that most programmers don't encounter in their regular wor...
New
PragmaticBookshelf
Learn from the award-winning programming series that inspired the Elixir language, and go on a step-by-step journey through the most impo...
New
DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
PragmaticBookshelf
Programming Ruby is the most complete book on Ruby, covering both the language itself and the standard library as well as commonly used t...
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New