Linux kernel just shipped ai code rules. the assisted-by tag is smarter than i expected

Posted by Electrical-Shape-266@reddit | ExperiencedDevs | View on Reddit | 77 comments

Been following the kernel mailing list discussions about AI generated code for months. they finally merged the policy into the docs and honestly its more thoughtful than most corporate AI policies ive seen.

The tldr: ai tools are fine to use, but you sign off on everything. no AI gets a Signed-off-by. theres a new Assisted-by tag that tracks what model and tools you used. and if your ai generated patch breaks something, thats on you, not the model vendor.

What i find interesting is the tag format itself. its not just "used chatgpt". its structured like Assisted-by: Claude:claude-3-opus coccinelle sparse. so you know the model version AND what analysis tools were paired with it. that level of traceability is actually useful for post-incident review.

Greg kroah-hartman said something interesting too. around february this year the quality of ai generated security reports flipped almost overnight. went from obvious slop to legitimate findings. nobody knows exactly why.

Ive been using ai tools for about a year now. verdent for planning refactoring tasks, claude for generation, copilot for autocomplete. the output quality varies wildly depending on context and review effort.

Last month an ai generated migration looked perfect. tests passed, types checked out. deployed to staging and it silently corrupted a json field because the model didnt understand our custom serialization layer. took two days to trace. exactly the kind of thing this policy tries to prevent.

The choice of Assisted-by over Generated-by was deliberate. most real usage is ai helping with parts of the work, not generating entire patches. that framing feels right.

Torvalds said he doesnt want the docs to become an "AI position statement". just treat it as a tool, document what you used, own the result. most places i know have either "no ai allowed" or "do whatever" with nothing in between. the kernel approach is a solid middle ground