Skip to content
agentusehub
Sign in+ Submit
Write a Linux kernel improvement with Claude Code

Write a Linux kernel improvement with Claude Code

Linus Torvalds is working on a sizable Linux kernel patch written with Claude Code, per the headline.

Read the experience
Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

“Write a Linux kernel improvement with Claude Code” is a Software & DevOps AI agent workflow from Any. It connects Claude Code in 3 steps.

Linus Torvalds is working on a sizable Linux kernel patch written with Claude Code, per the headline.

Reported experience

  1. What they did

    Torvalds pushed a branch called noref-filemap-read-with-llm to his main kernel repository. It aims to let the page cache be read without folio references, because small reads of one file from many threads contend on folio reference counting. His patch message says Claude Code, working under his direction, produced the code, the test programs, the review and the first draft of the cover letter. He ran the measurements on his own machine.

  2. How it went

    Phoronix calls the performance impact significant, pointing to a results chart. The patches are only on a branch so far, and whether they get merged for the Linux 7.4 window is still open.

  3. Worth knowing

    The author's disclosure in the patch message shows how Torvalds credited the AI: it did the code, tests and review, while the measurements were run by him personally.

Example prompts

Try with Claude Code
In my project at [path to repo], I want to improve [specific area, e.g. a driver, a scheduler path, or a utility function]. First read the relevant code and the project's contribution guidelines, then explain your plan in a few sentences. Once I approve, write the change as a clean patch with a commit message in the project's style, run the existing tests, and stop when the patch builds and passes. Do not push or submit anything; show me the diff first.

Frequently asked questions

What does the “Write a Linux kernel improvement with Claude Code” workflow do?

Linus Torvalds is working on a sizable Linux kernel patch written with Claude Code, per the headline.

Which tools do I need?

You need Claude Code.

How long does it take to set up?

The guide walks through 3 steps, starting with “What they did”.

Coding · Advanced
  1. Write migration plan
  2. Agent edits in batches
  3. Tests per batch

Ship a 40-file refactor with a coding agent

Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.

Claude Code · GitHub Copilot
Add this badge to your site

Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges

Featured on AgentUseHub