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: bot
Raspberry Pi is a little useful computer for learning programming and building projects. It comes with Debian Linux based modified operat...
New
First poster: KnowledgeIsPower
Switching the Linux graphics stack from GLX to EGL. Hi there! This is a guest post from Robert Mader, who contributed enormous improveme...
New
First poster: bot
What is this OS about? Phantom is, basically, a virtual machine (VM) working in a huge persistent virtual memory. Part of the VM classes ...
New
First poster: bot
it is correct to refer to GNU/Linux as GNU/Linux. You’ve probably seen the “I’d like to interject for a moment” quotation that is freque...
New
First poster: bot
GitHub - brainrake/nixos-tutorial: one hour, hands-on. one hour, hands-on. Contribute to brainrake/nixos-tutorial development by creatin...
New
New
First poster: bot
An enthusiast turned a Nokia 1680 feature phone into a Linux computer with a working screen and keyboard. The Nokia 1680 classic is a si...
New
First poster: bot
How I use Bash to automate tasks on Linux. Bash has a few handy automation features that make my life easier when working with files on ...
New
CommunityNews
Interactive Linux kernel source code browser with guided learning paths.
New
CommunityNews
Initial kernel and subsystem support for new Snapdragon 8 Elite Gen 5 posted for review. Learn what’s in the patches and how you can star...
New

Other popular topics Top

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
PragmaticBookshelf
Ruby, Io, Prolog, Scala, Erlang, Clojure, Haskell. With Seven Languages in Seven Weeks, by Bruce A. Tate, you’ll go beyond the syntax—and...
New
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
PragmaticBookshelf
Tailwind CSS is an exciting new CSS framework that allows you to design your site by composing simple utility classes to create complex e...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New
New
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
PragmaticBookshelf
Get the comprehensive, insider information you need for Rails 8 with the new edition of this award-winning classic. Sam Ruby @rubys ...
New
PragmaticBookshelf
Use advanced functional programming principles, practical Domain-Driven Design techniques, and production-ready Elixir code to build scal...
New