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
Audit CSS with MDN-backed browser checks
An MCP add-on let Claude Code look up MDN guidance and browser support while reviewing CSS for likely issues.
Use Claude Code to revive an old assembly build
A developer used Claude Code to get a 1991 assembly game’s old tools compiling again on modern setup files.
Hand web browsing tasks from Claude Code to Comet
A developer wired Claude Code to Perplexity Comet so it could browse, log in, and research while coding continued separately.
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.
Turn tracked tickets into pull requests
Use an agent to pick up issues or tickets, make the code change in an isolated pod, and open a PR for review.
Share files between sandboxed Claude Code agents through MCP
A developer connected sandboxed Claude Code instances to a virtual file system so they could pass files through MCP without direct access to AWS.