Re: [RFC 0/2] Add AI coding assistant configuration to Linux kernel

From: Sasha Levin
Date: Sat Jul 26 2025 - 07:54:06 EST


On Sat, Jul 26, 2025 at 04:07:40AM -0500, Mario Limonciello wrote:
Example patch creation with Claude Code:

$ claude -p "Fix the dont -> don't typo in @Documentation/power/opp.rst. Commit the result"
Done! The typo has been fixed and committed.

Is this actually how people use AI agents? I've never thought of asking an agent to write a whole patch and commit the result.

Yup, there are a bunch of usecases for this, and while this is an
oversimplified example (that's why I picked a simple spelling fix that
the agent could get right "the first time").

See Kees' post at https://hachyderm.io/@kees/114907228284590439 , in
particular the buffer overflow fix where he logged his prompts.

The way that I've seen it is things like Github Copilot within VScode where there are inline suggestions. It's kinda like clangd except it suggests corrections to your mistakes instead of just underlining them with red squiggles.

Like if you messed up the argument and passed a pointer when it was supposed to be a pointer to a pointer it will give you a little tooltip correction. But this is long before you would be ready to actually commit a patch, heck it's before even testing it (obviously).

The actual committing action would be by running 'git commit'. So I don't see how these tags could end up in there.

Even vscode has a commit feature which can help write commit
messages and actually commit them for you:
https://code.visualstudio.com/docs/sourcecontrol/overview

But yes, if you choose to manually handle the committing aspect then you
should also be manually attributing the agent :)

--
Thanks,
Sasha