Ask Claude Code to prototype a kernel change
Linus Torvalds had Claude Code help produce a Linux kernel patch, plus tests, review, and a first cover-letter draft.
- What they did
- Torvalds added work on a branch named noref-filemap-read-with-llm in his main kernel repository. The goal is to ease folio-reference pressure during many small reads of one file by altering the page-cache path. In the patch message, he credited Claude Code, under his direction, with writing the implementation, the test programs, the review, and an early cover-letter draft, while he handled the measurements himself.
- How it went
- Phoronix said the speedup looks meaningful and included a results chart. The code is still only on a branch, and its chances for the Linux 7.4 window are not settled yet.
- Tips
- A useful pattern is to have the agent inspect the codebase and project rules, then ask for a short plan before any edits. Keep anything that changes the repo or gets submitted on hold until a person reviews it.
Try it yourself with Claude Code
I’m working on [specific area] inside [project/repo path]. Review the relevant source and the project’s contributor instructions, then give me a short plan for improving [specific behavior]. Stop and wait for my approval before editing files. After I approve, make the change, update or add tests, draft a commit message that fits the project’s style, and show me the diff and test output. Do not push, submit, delete, or merge anything until I explicitly authorize that step.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Match a pull request to repo style
A developer used Claude Code to bring a pull request in line with a repo’s style, but it only altered comments and left the code unchanged.
Add a judge subagent and two review passes
A solo developer used Claude Code to build an app with fresh sessions, a read-only judge, and two review layers for tighter quality control.
Build branch-isolated workspaces for coding agents
A developer used Cursor to create a macOS Electron app that keeps each coding agent in its own branch-specific workspace with a separate local IP.
Have Claude Code try your assignment first
An instructor let Claude Code work through a homework from the prompt alone, then changed the course and grading after it finished everything.
Use hypothesis testing to improve program speed
An agent explored speedup ideas, kept only the ones that stayed correct, and saved the verified changes in Git.
Draft PR reviews, then send them yourself
They used Claude Code to prepare GitHub review drafts for queued pull requests, while keeping final edits and submission under their control.