Linux creator Linus Torvalds has disclosed that he used Anthropic's Claude Code assistant for hands-on kernel development work — drafting code for a fundamental I/O improvement and, in what may be the more consequential use case, using large language models to make existing patches easier to decipher. In the course of that second workflow, he said, the tools surfaced what he presented as long-standing bugs in the kernel.

According to Phoronix's reporting, Torvalds used Claude Code to produce initial patch drafts and a companion test program for an improvement to the kernel's associative array implementation, a core data structure underpinning kernel internals. He then continued working with AI tooling over the weekend, publicly discussing its benefits on the kernel mailing list.

The development lands at a notable moment for the Linux project's relationship with AI. Torvalds has spent months publicly advocating for AI-assisted development rather than dismissing it, and his latest posts represent a shift from commentary to practice: he is now describing himself as a user of the tools he has encouraged others to explore.

Two Very Different AI Workflows

What makes the episode worth closer attention is the separation between two distinct applications of the technology — a distinction easily blurred in most coverage of AI tooling.

The first is code generation: producing draft patches and a test harness for a targeted improvement. Here, Torvalds generated the drafts himself, wrote and ran the tests, and interpreted the results — positioning the model firmly as an assistant to developer judgment rather than a replacement for it.

The second, and the more intriguing, is code comprehension. Torvalds described using AI to parse and explain existing patches — work aimed at making dense, systems-level changes legible to human reviewers. In the course of that process, the models flagged problems that he described as having gone unnoticed in the codebase for some time. He presented those findings as evidence that AI's near-term value in systems programming may lie less in writing new code than in reading and auditing the enormous volume of code that already exists.

That framing will be familiar to longtime open-source watchers. AI proponents have argued for months that language models can act as a force multiplier for code review, and that reviewing and understanding legacy code is where the biggest bottlenecks live. Having the maintainer of the world's most prominent open-source project describe that workflow working in practice — and, on his account, surfacing latent bugs in the process — is a meaningful data point, even if it is a sample of one.

Caution Still Applies

Torvalds' account should not be read as an endorsement of autonomous AI development. Every step described kept a human in the loop: he generated the drafts, he wrote the test program, and he assessed the results. The bug findings emerged as a by-product of AI-assisted explanation, not from generated code running unsupervised in the kernel tree. Whether the specific issues flagged are confirmed and fixed will depend on the normal mailing-list review cycle, where claims — human or machine-generated — are held to the same standard as any other patch submission.

The broader open question is adoption. Torvalds' willingness to experiment carries weight, but kernel subsystem maintainers have their own review cultures and threat models, and AI-assisted triage of an ageing codebase is a different proposition for a volunteer maintainer than for the project's dictator-for-life. For infrastructure teams administering large Linux fleets, that distinction likely matters too: the code-auditing angle is arguably more immediately applicable than AI-written code, given the review burden that ageing kernel and package trees impose on operators who cannot rely on a full-time maintainer's attention.

What the episode does establish is that AI-assisted patch legibility is no longer a theoretical argument. It is a workflow the Linux kernel's most influential developer now describes as paying dividends — including, on his telling, bugs that had been hiding in plain sight.


Linux 之父 Linus Torvalds 披露,他曾使用 Anthropic 的 Claude Code 助手進行實際的核心(kernel)開發工作——為一項基礎 I/O 改進撰寫代碼草稿,而更具深遠意義的應用,則是利用大型語言模型令現有的 patch 更容易解讀。他表示,在後者的工作過程中,工具揭示了一些他形容為長期存在的核心缺陷。

據 Phoronix 報導,Torvalds 使用 Claude Code 為核心 associative array 實現的一項改進產生初步 patch 草稿及配套測試程序。associative array 是支撐核心內部運作的核心數據結構。其後他在整個周末繼續使用 AI 工具工作,並在核心郵件列表(mailing list)上公開討論其好處。

今次發展出現於 Linux 項目與 AI 關係的一個重要時刻。Torvalds 數月來一直公開倡導 AI 輔助開發,而非對其嗤之以鼻,他最新的帖文標誌著從評論到實踐的轉變:他如今自稱為這些他曾鼓勵他人探索的工具的用戶。

兩種截然不同的 AI 工作流程

今次事件值得更密切關注之處,在於兩種截然不同的技術應用之間的區分——而在大多數關於 AI 工具的報道中,這種區分往往容易被模糊處理。

第一種是代碼生成:為一項針對性改進產生 patch 草稿及測試框架。在此過程中,Torvalds 自行生成草稿、編寫並運行測試、以及詮釋結果——將模型牢牢定位為開發者判斷的助手,而非其替代品。

第二種,也是更耐人尋味的,是代碼理解。Torvalds 描述利用 AI 解析及解釋現有的 patch——這項工作旨在令密集的系統層面改動變得易於人類審閱者理解。在該過程中,模型標記出一些他形容為在代碼庫中長期未被察覺的問題。他將這些發現作為證據,指出 AI 在系統編程方面的近期價值,可能與其說在於撰寫新代碼,不如說在於閱讀及審核大量已然存在的代碼。

這個觀點對長期關注開源的人士而言並不陌生。AI 支持者數月來一直主張,語言模型可以成為代碼審查的倍增器,而審閱及理解遺留代碼正是最大瓶頸所在。如今,全球最顯赫開源項目的維護者親自描述該工作流程在實踐中奏效——按其說法,更在此過程中揭示了潛伏的缺陷——這是一個有意義的數據點,即使樣本只有一個。

仍需保持審慎

不應將 Torvalds 的講法理解為對自主 AI 開發的背書。他所述的每一個步驟都有人類參與其中:他生成草稿、編寫測試程序、並評估結果。缺陷的發現是 AI 輔助解釋的副產品,而非由無人監督運行於核心代碼樹中的生成代碼所造成。被標記的具體問題是否會獲確認及修復,仍須視乎常規的郵件列表審查流程——在那裡,無論是人類抑或機器生成的主張,都會以與其他 patch 提交相同的標準來檢視。

更廣泛的未決問題是採用。Torvalds 願意率先試驗固然具有分量,但各核心子系統維護者自有其審查文化及威脅模型,對於一名義務維護者而言,以 AI 輔助方式篩查一個老化的代碼庫,與項目終身獨裁者所面對的情況並不相同。對於管理大型 Linux 機群的基礎設施團隊來說,這種區別相信同樣重要:相對於由 AI 撰寫的代碼,代碼審核角度可謂更具即時適用性——考慮到老化的核心及軟件包代碼樹為維運人員帶來沉重的審查負擔,而他們往往無法依賴全職維護者的關注。

今次事件確立的一點是:AI 輔助 patch 可讀性已不再是一個理論上的論述。這是 Linux 核心最具影響力的開發者如今形容為已見回報的工作流程——按其說法,回報包括那些一直隱藏於眾目睽睽之下的缺陷。

新聞來源 / Original News Source