Use Claude to draft a kernel fix and review it for races
Linus Torvalds had Claude produce a Linux memory-management fix, tests, docs, and review, while he handled benchmarking.
- What they did
- Linus Torvalds asked Claude to work through a Linux kernel memory-management issue end to end. Claude produced the code, unit tests, documentation, and a debug hook, and also did the first-pass review of its own change. Torvalds kept the benchmarking step for himself.
- How it went
- A race condition still made it into the final result. No benchmark figures or deeper technical details were given, and the writeup cuts off early.
- Tips
- Self-review is not enough for concurrency bugs; have a separate check for locking and ordering issues. Keep a human in the loop before anything is merged or shipped.
Try it yourself with Claude
I’m fixing [bug or feature] in [repo/path]. Draft the code change, tests, docs, and any useful debug hooks. Then review your own patch for race conditions, locking mistakes, and other concurrency hazards. After that, pause and show me the diff summary plus any risks or open questions before I approve anything that would be merged, submitted, or applied. I’ll run the benchmarks and final checks myself.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Set up layered agent code reviews
A team had Claude Code write most code, then used multiple review layers to catch bugs before merge.
Coordinate coding work through one Claude hub
A developer turned Claude into a control point for Claude Code and Codex, so they could spread work and usage across accounts.
Use parallel agents to build a compiler
Coordinate many coding agents in containers and back them with tests and an oracle while they work on one compiler repo.
Use Copilot to scaffold a full-stack app
They let GitHub Copilot start a new full-stack app, then kept fixing setup issues until the React interface was styled and usable.
Write tests for the weakest coverage first
A team used Claude to add tests for a coverage backlog, but the new suite slowed CI and included code meant to be replaced.
Plan work in a PRD, then assign the build
A developer asks a stronger model for a plan, turns it into tasks, and routes implementation to lower-cost agents.