Skip to main content

Two years ago he called AI mostly marketing. Now he writes kernel patches with it. That is the new Linus Torvalds Linux AI stance.

The Linus Torvalds Linux AI stance has flipped in 2026, and October made it official. The creator of Linux now builds kernel patches with Anthropic’s Claude Code. He also called rules against AI code “UTTERLY STUPID” as the kernel dropped its AI disclosure tag. Here is what he did, what he said and where he still draws the line.

Linus Torvalds Linux AI Stance: What Changed in October

On October 9, Torvalds sat down with Dirk Hohndel at Open Source Summit Europe in Prague. He admitted he used to think AI was “just not very good,” TNW reported.

However, that view is gone. “Now I’ve reached a point where I really enjoy using AI,” he said, as Computerworld quoted. He mostly uses it for tasks he is weak at.

In fact, he even praised vibe coding as “a wonderful way to find joy in programming” and a “gateway drug” for new programmers.

Linus Torvalds AI coding: Dirk Hohndel and Linus Torvalds in conversation at LinuxCon Europe 2014

Linus Torvalds AI Coding With Claude Code

Two days later, the words turned into code. As Phoronix first reported, a branch called noref-filemap-read-with-llm appeared in his own kernel tree.

Notably, the patch text is open about the tool. The code, tests and first draft were “done with an LLM coding assistant (Claude Code) under my direction,” Torvalds wrote. He ran the measurements himself.

Claude Code is one of the agents we compare in our list of the best AI coding tools. Here, though, it went after a problem kernel developers had fought for two years.

The Page Cache Fix: Up to 23 Times Faster in a Test

Specifically, the target was the page cache. When many threads make small reads of the same file, each read bumps a shared reference count. Oracle engineer Matthew Wilcox flagged that bottleneck in 2024, The New Stack noted.

Torvalds’ first eight patches nearly tripled throughput on his laptop. Eight threads went from 10 million to as many as 33 million reads per second.

A revised 10-patch series did far more on his 64-thread Threadripper. There, throughput jumped from 13.3 million to 304 million reads per second. Still, Torvalds warned that real workloads would gain much less than this synthetic test.

The Linus Torvalds AI Code Rework and the Race

However, review did its job. Kernel developer Kiryl Shutsemau found a race in filemap_read_rcu_batch(). In rare cases, it could expose data that had never been written, according to The New Stack.

Torvalds suggested a fix, and Shutsemau folded it into a revised patch. Wilcox also questioned the new PG_rcu_free flag, but Torvalds rejected his alternatives.

In the end, Torvalds handed the work to Shutsemau, who had studied the same bottleneck before. As of mid October, nothing had been merged into the mainline kernel.

“Utterly Stupid”: The Linus Torvalds Linux AI Stance on Disclosure

Since January, kernel docs asked contributors to add an Assisted-by tag when they used AI tools. On October 8, the Maintainers Summit in Prague agreed to deprecate it, XDA reported.

Still, not everyone liked that. When a developer pushed back on the mailing list, Torvalds replied: “Do you not see how UTTERLY STUPID those kinds of rules would be?”

He then mocked the idea with a new rule: “don’t use compilers for any of your kernel submissions.” To him, what matters is whether a developer understands the code, not which tool typed it.

Linus Torvalds AI Debugging Session and Old Bugs

The Claude Code patches were not his first test. In August, he fixed an Intel GPU driver bug after what he called a “debug session from hell, enormously helped by an AI doing much of the grunt-work,” Phoronix reported.

Overall, that session took 24 debug patches and 18 kernel boots. In the end, the fix was a one-liner, swapping a round_up() for a round_down().

Then, in October, he used LLM tools to untangle hard-to-read code in the kernel’s assoc_array library. “I did what I preach,” he wrote. The tests confirmed the reported bug and found three more dating back to 2013.

How the Linus Torvalds Linux AI Stance Evolved

In short, the shift took two years. The table below tracks each step, with the outlet that reported it.

When What Torvalds said or did Reported by
October 2024 AI is “90 percent marketing and 10 percent reality” It’s FOSS
May 2026 Complains about trivial AI-assisted bug hunting fixes It’s FOSS
July 14, 2026 “Linux is not one of those anti-AI projects” It’s FOSS
August 2026 AI helps him fix an Intel GPU driver bug Phoronix
October 9, 2026 Says he really enjoys using AI Computerworld, TNW
October 11, 2026 Claude Code page cache branch appears Phoronix
October 13, 2026 Calls AI disclosure rules “UTTERLY STUPID” TNW, XDA

Linus Torvalds AI Slop Comments: The Limits He Keeps

Being pro AI does not mean anything goes. In May, he complained that AI-assisted bug hunting had padded a release with trivial late fixes, and he promised to be “a bit more hardnosed,” It’s FOSS reported.

In addition, maintainers feel the load too. About three quarters of Maintainers Summit talks focused on making AI tools less stressful, according to TNW.

Meanwhile, other projects went the other way. NetBSD has banned AI code since 2024, and System76 banned it from COSMIC. Game engines face the same fight, as our report on the Godot engine AI code ban shows.

Want More on Linus Torvalds Linux AI Stance?

If Torvalds’ praise for vibe coding made you curious, start with our picks of the best vibe coding tools. They are ranked for beginners and for developers who already ship code.

Frequently Asked Questions

What is the Linus Torvalds Linux AI stance?

Torvalds now welcomes AI tools in kernel work. He says Linux is not an anti-AI project, uses Claude Code himself and calls bans on AI code stupid, while still expecting developers to understand their patches.

Did Linus Torvalds use Claude Code?

Yes. In October 2026, his branch noref-filemap-read-with-llm credited Claude Code for the code, tests and first draft of the text. He directed the work and ran the benchmarks on his own machines.

What is the Assisted-by tag?

It was a commit line asking kernel contributors to name the AI tools they used. In October 2026, the Maintainers Summit agreed to deprecate it, so AI disclosure is no longer required.

Has the Torvalds Claude Code patch been merged?

Not yet. Reviewers found a race condition, and Torvalds handed further work to Kiryl Shutsemau. As a result, the series was still under review in mid October 2026.

Is Linux banning AI-generated code?

No. Linux neither mandates nor forbids AI tools, and Torvalds opposes bans. By contrast, NetBSD has banned AI code since 2024, and System76 banned it from its COSMIC desktop.

What did Torvalds say about AI in 2024?

Back then he was a skeptic. In October 2024, he called AI “90 percent marketing and 10 percent reality” and said he would mostly ignore it until real uses appeared.

Leave a Reply