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

First poster: davearonson
Managing an External Display on Linux Shouldn’t Be This Hard. I first started using Linux and FreeBSD on laptops in the late 1990s. Back...
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
Solene’% : Operating systems battle: OpenBSD vs NixOS. My feelings about OpenBSD and NixOS, trying to figure out where each is the best
New
First poster: bot
How I manage files from the Linux command line. If you prefer to interact with your system through the terminal, check out my favorite L...
New
First poster: bot
The story behind Google’s in-house desktop Linux. The best-known Google operating system is Chrome OS, but inside Google itself, the com...
New
CommunityNews
Attackers can exploit two newly discovered local privilege escalation (LPE) vulnerabilities to gain root privileges on systems running ma...
New
CommunityNews
A review of Nix/NixOS after using it on all my machines for three years. I’ll cover what works, what doesn’t, and why it’s the first OS t...
New
New
CommunityNews
Lots of the CVE world seems to focus on “security bugs” but I’ve found that it is not all that well known exactly how the Linux kernel s...
New
CommunityNews
This Buildroot-based basic Linux distribution runs natively on the RP2350’s Hazard3 RISC-V cores — albeit not very quickly.
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: asdf install erlang 23.1.2 Configure failed. checking ...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1147 29994 760
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
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
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New
RobertRichards
Hair Salon Games for Girls Fun Girls Hair Saloon game is mainly developed for kids. This game allows users to select virtual avatars to ...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New