Linus Torvalds uses Claude Code to write Linux kernel patches
- Doom: Reviewers found a race condition in the Claude Code-generated Linux kernel patch series
- Boom: Torvalds confirmed Claude Code wrote eight performance patches targeting the Linux page cache
- Boom: Synthetic tests showed performance gains ranging from 3x to 23x depending on the benchmark
- Neutral: Torvalds previously described AI as "90% marketing" before adopting Claude Code himself
- Boom: Claude Code also generated test programs used to validate the kernel patches
The story in full
Linus Torvalds used Anthropic's Claude Code AI tool to develop and review patches for the Linux kernel, multiple outlets reported between October 13 and 16, 2026. The work targeted the Linux page cache, and reported performance figures from synthetic tests range from a 3x to 23x improvement depending on the source. Torvalds himself confirmed Claude Code wrote the patch series and associated test programs, and reviewers subsequently identified a race condition in the submitted code.
Torvalds had previously been skeptical of AI, with one outlet noting he once called it "90% marketing." The patch series, described as comprising eight performance-related changes, marks his first publicly confirmed use of AI tooling in kernel development. Reviewers finding a race condition after submission is the main point of dispute over the code's readiness.
Analysis
442 wordsBetween October 13 and 16, 2026, Linus Torvalds confirmed he used Anthropic's Claude Code to write an eight-patch series targeting the Linux page cache, along with the test programs used to validate that work. Synthetic benchmarks produced performance figures ranging from 3x to 23x depending on the specific test, with the lower end widely cited and the higher figure appearing in select reports. Torvalds publicly acknowledged the tool's role in generating both the patches and the supporting test code. Reviewers subsequently identified a race condition in the submitted series, raising questions about the code's readiness for merging into the mainline kernel.
The significance of this event sits squarely in who did it and what he had previously said. Torvalds is not a peripheral figure in open-source software; he created Linux and has maintained final authority over its kernel for decades. His earlier characterization of AI as "90% marketing" made his adoption of Claude Code a direct reversal of a publicly held position. The patch series also targets the page cache, a foundational component of kernel memory management, meaning any defect there carries real consequences. The race condition found by reviewers is not a minor cosmetic issue; race conditions in low-level kernel code can produce intermittent data corruption or system instability, which is why the bug's discovery anchors the central dispute over whether the patches are net positive or a cautionary example.
No published reactions from the Pro-AI, Anti-AI, or Middle Ground camps had appeared by the time this story was filed, so what follows reflects what each camp would typically argue. The Pro-AI camp would likely treat Torvalds's adoption as a landmark endorsement, pointing to the performance gains as evidence that AI tooling can contribute meaningfully even to the most demanding software in existence. The Anti-AI camp would be expected to focus on the race condition as validation of longstanding concerns that AI-generated code introduces subtle, hard-to-detect bugs that can slip past initial review in safety-critical systems. The Middle Ground camp would probably argue that the episode illustrates both the promise and the limits of current AI coding tools, framing the race condition not as a disqualifying failure but as a reason why human expert review remains indispensable.
The immediate question to watch is whether the patch series is revised to fix the race condition and ultimately merged into the Linux kernel mainline. If Torvalds submits a corrected series and it passes review, that outcome would strengthen the case that AI-assisted kernel development is viable. If the patches are withdrawn or sit unmerged, it would give critics concrete grounds to argue the tooling is not yet ready for work at this level.
What Pro-AI voices are sayingEven Linus Torvalds, famously demanding about kernel code quality, is using AI to tackle complex system work and surface hidden bugs, with results impressing observers across the board.
Quote 1 of 7What Anti-AI voices are sayingReviewers found a race condition in the AI-generated patch, fueling distrust of AI-assisted kernel development and its leadership. Some also dispute the reported performance figures as exaggerated, and others worry that relying on AI makes genuine skill development optional.
Quote 1 of 8What Middle Ground voices are sayingTorvalds achieved notable performance gains using Claude Code, but the race condition found by reviewers illustrates that AI-assisted work still has meaningful blind spots requiring human oversight.
Quote 1 of 3Add your take
0 reader votesSign in with Google to pick a side and post. Your vote moves the story's Doom / Boom score.
More Pro-AI reactions (6)
“Linux creator Linus Torvalds continued using AI this weekend and talking up its benefits”
input, Bluesky · 10:18 UTC“Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code”
input, Bluesky · 00:28 UTC“For engineering teams, it shows AI helping review critical software.”
Jump Daily, Bluesky · 05:49 UTC“utilizing advanced artificial intelligence tools to make complex system code decipherable while uncovering additional hidden bugs”
Trending News, Bluesky · 08:15 UTC“Linus Torvalds — famously particular about kernel code — is reportedly letting an AI coding agent help tackle it.”
Read the Q, Bluesky · 18:15 UTC“達人もAIに頼む、文章の下書き。今朝のリーナス氏の記事で目が留まったのは、Claude Codeに任せた初稿。”
マイム|AIで時短する事務職, Bluesky · 03:21 UTC
More Anti-AI reactions (7)
“> “undefined behavior in my C code? fuck off, I asked claude to define all of it” — the remaining mass of neurons belonging to linus torvalds, 2026 mas.to/@zzt/1174462...”
Adolfo Neto, Bluesky · 19:23 UTC““undefined behavior in my C code? fuck off, I asked claude to define all of it” — the remaining mass of neurons belonging to linus torvalds, 2026”
[object Object], Bluesky · 17:58 UTC“Poor old guy got stunlocked by Claude glazing him”
OrangeSky, Bluesky · 13:10 UTC“which kind of sounds like wanting to develop actual skill is optional, provided you have enough cash and like slop.”
Jane Doe, Bluesky · 00:47 UTC“I no longer trust the Linux kernel or its leadership because of how this is playing out.”
NULLWerewolf, Bluesky · 06:13 UTC“Claude did NOT help Linus Torvalds make Linux "23x faster", what are we even doing here?”
Armen Vardanyan , Bluesky, skeptic · 10:47 UTC“Instant karma”
Szymon Sokół 🇵🇱🇪🇺🇺🇦, Bluesky · 16:49 UTC
More Middle Ground reactions (2)
“Linus Torvalds let Claude Code fix the Linux page cache. Then reviewers found a race.”
davidi, Bluesky · 00:58 UTC“Até Linus Torvalds entrou na onda da IA! O criador do Linux utilizou Claude Code para desenvolver melhorias no kernel e conseguiu triplicar o desempenho em testes específicos. Mas os revisores encontraram problemas no código.”
Tech Start XYZ, Bluesky · 16:18 UTC
Sources
11 articles from 10 outlets- Tom's HardwareLinus Torvalds posts his first AI-assisted patch to the Linux kernel, synthetic test clocks 23x performance leap — the bossman makes use of AI tooling himself after issuing clear pro-AI directives
- 36KrLinus Torvalds (Linux Father) Switches to AI for Kernel Coding: After Mocking AI as "90% Marketing", He Developed 8 Performance-Boosting Patches with Claude Code to Achieve 3X Surge
- CyberSecurityNewsLinus Torvalds Reveals Claude Code Wrote Linux Kernel Patches and Test Programs
- dev.uaLinus Torvalds used Claude Code to optimize the Linux kernel: cache read speed tripled
- The New StackLinus Torvalds let Claude Code fix the Linux page cache. Then reviewers found a race.
- ComputerworldLinus Torvalds has started using AI to develop the Linux kernel
- 36KrLinus Torvalds Embraces AI: Writing Linux Kernel Code with Claude Code Delivers 3X Performance Surge
- SoftonicClaude Code helps build a Linux kernel performance fix: Linus Torvalds says it was used for the patch series
- NewsBytesLinus Torvalds uses Claude Code to write Linux kernel code
- NeoTeoLinus Torvalds used AI to review Linux code; tests confirmed one bug and found three more
- ZDNETLinus Torvalds is using AI to develop Linux kernel code now
