On Thu, Mar 12, 2026 at 12:05:37PM -0400, Vineeth Remanan Pillai wrote: > On Thu, Mar 12, 2026 at 11:53 AM Peter Zijlstra <[email protected]> wrote: > > > > That seems like an unreasonable waste of energy. You could've had claude > > write a Coccinelle script for you and saved a ton of tokens. > > Yeah true, Steve also mentioned this to me offline. Haven't used > Coccinelle before, but now I know :-)
[+ Chris Mason] At the risk of creating a distraction... This discussion got me thinking the right skill loaded should have the AI implicitly use coccinelle to generate the patchset rather than do it by hand. You could prompt with simple language for a pattern substitution rather than explicitly request coccinelle, and it should generate a patch set using a script rather than spending tokens on doing it "by hand". I sent such a "skill" to Chris' kernel "review-prompts": https://github.com/masoncl/review-prompts/pull/35 I used patch one from this series as the starting point and let the AI figure the rest out. The result actually found additional patterns that could take advantage of the optimisation that this series did not include. The resulting kernel tree that the above github pull request references cost 2.8k tokens to create with the skill.
