Latest

Technology

The Linux kernel will have skills for AI agents in 7.5

Sasha Levin will send Linus an agents/skills directory with instructions for assistants to write patches, Fixes tags and KUnit tests.

Translated from Spanish by an automated system. The Spanish original prevails. Read the Spanish original

The Linux kernel will have skills for AI agents in 7.5
The Linux kernel will have skills for AI agents in 7.5

The Linux kernel is going to have a folder of instructions for artificial intelligence agents. On November 26, Sasha Levin, a developer at NVIDIA and co-maintainer of the long-term support branches, asked for his agents branch to be included in linux-next with a brief message: it contains the series of skills for agents that he intends to send to Linus Torvalds. If no one stops it, the patch will enter the Linux 7.5 merge window, which opens in late December.

It is not AI support inside the kernel. It is documentation of the kernel process written to be read by machines. Levin's tree adds the agents/skills directory with SKILL.md files in the Agent Skills format. The first skills teach how to determine a patch's Fixes tag, how to decide whether it goes to stable, how to look for other occurrences of the same bug, how to draft commit messages and how to write KUnit tests.

The news matters for what it says about free software development, not for the AI itself. The kernel has been receiving patches generated with models for two years, and the community's response has not been to ban them, but to write the rules in a format the model can read before it tries. It is the same logic as a style guide, applied to a contributor that remembers nothing between one patch and the next.

What does the agents branch contain?

The series reached its fifth version on November 11. Theodore Ts'o is the ext4 maintainer and rewrote the set. He rebased it on 7.4-rc2 and added a skill of his own for writing KUnit tests, which he is using himself to cover his filesystem. In the patch, the skill runs to 344 lines and forces the assistant to first read the KUnit documentation, the style documentation and the patch submission documentation before touching anything.

The other skills are smaller and cover specific tasks in the maintenance workflow. One helps decide whether a fix should go to the stable branches and with which tag. Another searches the tree for cases of the same error the patch aims to close. The commit message one applies the format the project requires, with its description of the problem, its justification and its sign-off tags.

The change includes an entry in MAINTAINERS for the directory and a new section in Documentation/process/coding-assistants.rst. That section sets the rule that gives meaning to the whole thing: skills inspect and report. They do not change files, do not create commits or tags and do not send email. They return a result with its evidence or say what is missing, and they must not fill a gap with a guess.

Skill What it does Explicit limit
fixes-tag Proposes the patch's Fixes tag Reports only
stable-tag Decides whether the fix goes to stable Does not send email
similar-bugs Searches for other cases of the same failure Does not apply patches
commit-message Drafts the message and the cover letter Does not create commits
kunit-tests Designs and reviews KUnit tests Does not modify others' code

The table makes the design clear: the agent proposes, the human decides. Anyone who has seen a model invent a function knows why that separation is the important part of the patch.

The political detail that is barely visible

The previous version had references to an Assisted-by tag to mark patches written with AI assistance. They were removed after the discussion at the Maintainers Summit, and that detail says more about the state of the community than the rest of the series. Maintainers do not want a tag that turns assistance into a separate category, because they suspect it will end up being used to discriminate against patches.

The decision leaves judgment where it was: the patch is evaluated for what it does, not for how it was written. Levin and Ts'o, who do use these tools, chose to improve the quality of the input rather than declare it. It is a pragmatic stance and also a bet: if the volume of bad patches grows, the lack of traceability will become a problem.

The immediate context is one of saturation. Lorenzo Stoakes, one of the leading names in memory development, stepped back from reviewing patches he does not maintain because half of what he received were model-generated series, as we reported when analyzing Stoakes' withdrawal from kernel review. The skills do not solve that problem, but they try to make the patch arrive better formed and with fewer back-and-forths.

That is the argument that sells the change: every review avoided is maintainer time recovered. If an agent drafts the commit in the correct format and proposes a defensible Fixes tag, the reviewer starts with the content and not the form, and that difference is multiplied by thousands of patches a year.

The arrival in mainline

The branch has been in linux-next since late November. Mark Brown, who handles integration, accepted the tree with the usual warning: linux-next does not judge code quality, it only serves to detect conflicts before the merge window. The next step is a pull request to Torvalds when 7.5 opens.

The calendar the community is working with puts the opening in late December, after 7.4 is released, and the stable version in the first quarter of 2027. None of that is guaranteed: a patch in a subsystem tree is not a patch in Linus' tree.

There is a reasonable objection that has received no public answer. If the kernel documents its process for agents, it is investing maintainer work in a format that depends on proprietary tools and on models that change every few months. Classic documentation outlives its authors; a skill can become obsolete in a single release.

The implicit answer is in the design. The skills contain no new knowledge: they point to the documents that already exist and add only what assistants usually get wrong. If the format changes, the index is rewritten and the content remains, which is exactly what happens with any style guide.

What does it mean for those who program the kernel?

For a regular contributor, the change does not alter their work. They still send patches, still receive reviews and still sign with their name. What changes is that their assistant will have the project's rules in front of it before writing, and that reduces a class of error reviewers know well: proposals that ignore basic conventions because the model did not know them.

For someone who is new, the barrier drops a little. Installing the skill, asking for a test for a function and reviewing the result is easier than reading four documents and getting it wrong anyway. The trade-off is the temptation to send without understanding, and there the inspect-and-report rule curbs that impulse.

For the ecosystem, the message is that the kernel has decided to live with AI rather than ban it. That debate is already closed in practice, and what remains is the fine print: who reviews, by what criteria and how the cost is measured. The skills are a partial answer to the first question and no answer to the third.

What is missing from the series

There are no skills for reviewing others' patches, for assessing the impact of a change on memory or for deciding whether a fix deserves an exception in the merge window. Nor is there anything on security, which is where the cost of an error is highest. The series focuses on mechanical work, and does so deliberately.

That restraint has a practical explanation. Every new skill is a process decision that maintainers would have to discuss, and the project already spends more time discussing processes than it would like to admit.

Nor is there a method to measure whether it works. The patch includes no metrics, nor a plan to compare the acceptance rate of assisted patches against the rest. Without that data, the discussion stays in the realm of opinions, and the community will have to decide based on a sense that the noise is going down or up.

That gap is the most interesting part of the experiment. A project that prides itself on measuring a function's performance with benchmarks accepts a process tool without a benchmark, and does so because the cost of trying is low. If in six months no one notices the difference, the folder will remain as a curiosity in the tree.

The kernel as living documentation

The change has a broader reading. For thirty years, the kernel process was passed on in emails, guides and unwritten conventions that newcomers learned through mistakes. Now part of that knowledge is written in a format a machine can consume, and that makes it more explicit and more fragile at the same time.

If the series lands, Linux 7.5 will have a folder that no user will ever open and that will decide the quality of thousands of patches. It is invisible infrastructure, like the kernel itself, and like the kernel it will only be noticed when it fails. The first test will be the December window, and the second, the first maintainer who rejects a patch citing a skill.

José Maldonado

Author

José Maldonado

Activist and blogger on technology, free software and blockchain.

The latest
AI agents are not laying people off, they are closing off junior employment

Keep reading