1.. SPDX-License-Identifier: GPL-2.0 2 3.. _coding_assistants: 4 5AI Coding Assistants 6++++++++++++++++++++ 7 8This document provides guidance for AI tools and developers using AI 9assistance when contributing to the Linux kernel. 10 11AI tools helping with Linux kernel development should follow the standard 12kernel development process: 13 14* Documentation/process/development-process.rst 15* Documentation/process/coding-style.rst 16* Documentation/process/submitting-patches.rst 17 18Licensing and Legal Requirements 19================================ 20 21All contributions must comply with the kernel's licensing requirements: 22 23* All code must be compatible with GPL-2.0-only 24* Use appropriate SPDX license identifiers 25* See Documentation/process/license-rules.rst for details 26 27Signed-off-by and Developer Certificate of Origin 28================================================= 29 30AI agents MUST NOT add Signed-off-by tags. Only humans can legally 31certify the Developer Certificate of Origin (DCO). The human submitter 32is responsible for: 33 34* Reviewing all AI-generated code 35* Ensuring compliance with licensing requirements 36* Adding their own Signed-off-by tag to certify the DCO 37* Taking full responsibility for the contribution 38 39Attribution 40=========== 41 42When AI tools contribute to kernel development, proper attribution 43helps track the evolving role of AI in the development process. 44Contributions should include an Assisted-by tag in the following format:: 45 46 Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2] 47 48Where: 49 50* ``AGENT_NAME`` is the name of the AI tool or framework 51* ``MODEL_VERSION`` is the specific model version used 52* ``[TOOL1] [TOOL2]`` are optional specialized analysis tools used 53 (e.g., coccinelle, sparse, smatch, clang-tidy) 54 55Basic development tools (git, gcc, make, editors) should not be listed. 56 57Example:: 58 59 Assisted-by: Claude:claude-3-opus coccinelle sparse 60