Torvalds: AI is fine for competent devs, but spare us the 'drive-by' patches
Kernel maintainers stop asking who used AI, as long as the code is good
Linus Torvalds, the creator of Linux, has made it clear that he's not opposed to AI-generated code, as long as it's of high quality. In a recent discussion, Torvalds mentioned that kernel maintainers will no longer ask if a patch was generated by AI or not, as long as the code is competent and well-tested. This stance is significant, given the Linux kernel's reputation for being one of the most robust and widely-used open-source projects.
The context here is that AI-generated code has become increasingly prevalent, with some developers using tools like GitHub's Copilot to assist with coding tasks. While some have expressed concerns about the role of AI in software development, Torvalds' comments suggest that the Linux community is willing to adopt a pragmatic approach. By focusing on code quality rather than its origin, the kernel maintainers can ensure that the codebase remains stable and reliable.
What's next to watch is how this approach plays out in practice. Will AI-generated patches become a significant contributor to the Linux kernel, or will human developers continue to dominate? As the software development landscape continues to evolve, one thing is clear: the lines between human and machine-generated code will become increasingly blurred. The Linux community's approach to AI-generated code could serve as a model for other open-source projects, and it will be interesting to see how other communities respond to the challenges and opportunities presented by AI-assisted development.
Originally reported by theregister.com. CodeNews adds analysis for ai & agent economy readers.