AI-Native Methodology

Open-Source Projects Ban AI Code Because Agents Won't Follow the Rules

Bill Cava/

In June 2026 the Godot game engine, one of open source's flagship projects, updated its contribution policy to ban autonomous AI agents and vibe-coded submissions.[2] The internet mostly read it as grumpy maintainers digging in against the future.

That reading is wrong, and a benchmark published this week proves it. The bans are not a mood. They are, right now, the only enforcement that actually works.

Do AI coding agents actually follow open-source rules?

Measured answer: no. RepoComplianceBench, out this week from a team at Peking University, tested four frontier models against 49 real repositories that publish explicit AI-contribution rules, 106 issues in all.[1] It scored whether the agents refuse where AI is banned, disclose that they used AI, pass a verification gate, and escalate to a human when they should.

The headline finding is blunt. The agents almost never even retrieve the rules, and under every condition the researchers tested, they never once refused to contribute to a repository that bans AI. Not rarely. Never.

Some of that failure is fixable. When the agents were explicitly prompted, handed the rule text, or given feedback from a verifier, their disclosure and verification improved. This is the familiar pattern: an agent follows the aim you give it, so tell it precisely and it complies.

The governance half does not yield to prompting. Enforcing a ban and escalating to a human stayed unsolved no matter what the researchers tried. The agent will not police itself, and it will not hand off to a person.

Verification and disclosure issues are solvable with existing mechanisms, yet enforcing bans and human escalations remains an open problem.

RepoComplianceBench, Yang, He, and Zhou, July 2026

Why are open-source projects banning AI code?

Now the two halves of the story snap together. Communities are erecting hard bans precisely because the soft mechanisms, a line in CONTRIBUTING.md that says "please, no AI," are provably ignored. The policy wave and the compliance data are the same fact seen from two ends.

And the wave is real. Godot bans autonomous agents and vibe coding while still allowing AI for menial help like autocompletion and find-and-replace. The Linux kernel took a middle path: an "Assisted-by:" disclosure tag and strict human liability. Zig maintains one of the strictest no-AI policies going. There is now a public catalog of these policies with more than 400 projects in it,[3] because there are finally enough to catalog.

Godot's own reasoning is the tell. The Foundation did not frame the change as anti-AI. It framed it as a question of who answers for the code.

Screenshot of Godot's June 2026 contribution policy stating its focus: encouraging new contributors to become maintainers, and ensuring all contributions are made by humans who can take responsibility for their code, because AI cannot take responsibility
Godot framed the change as a question of accountability, not of AI, because a model cannot take responsibility for the code. Source: Godot Foundation, June 2026.

Isn't banning AI code just being anti-AI?

No, and that is the misread. Read the policies side by side and the real line appears. It is not AI versus no-AI. Every one of these rules is about one thing: whether a human is accountable for what gets contributed.

Project
Where it draws the line
Who has to be accountable
Zig
A strict no-AI, no-LLM contribution policy.
A human, and only a human.
Godot
Bans autonomous agents and vibe coding; allows menial AI you disclose.
A human who can take responsibility and fix it.
Linux
Allows AI-assisted work, tagged "Assisted-by:" and disclosed.
A human who is liable for every line.
Zig, Godot, and Linux draw the line in three different places but all require the same thing, a human who answers for the code.

Godot allows AI you supervise and disclose. Linux allows AI you tag and stand behind. Zig allows none. Different thresholds, identical bottom line: a person owns the result. The ban is on unaccountable machine output, not on the tool.

That is the collaboration model, stated as policy. Agents are collaborators, and we treat them like it, which means someone human owns what the collaboration produces. The maintainers closest to the pain wrote that rule first because they felt the alternative first: a flood of plausible, unowned pull requests that looked finished and cost real hours to reject.

Why the maintainers are ahead of the curve, not behind it

The maintainers are ahead of the curve, not behind it. The story that they are resisting an inevitable future has it backwards. They are building the layer that future is still missing.

The benchmark is clear that the human-escalation layer, the part where a contribution routes to a person before it lands, is something the agents cannot yet supply for themselves. So the communities are supplying it by hand. This is the same conclusion we reached about production systems: oversight has to be architecture, not vigilance. A maintainer-enforced gate is that architecture, built out of volunteer time because nothing else currently holds.

None of this means the bans are costless. They exclude good, careful contributors who use AI and would happily disclose it, which is why the disclose-and-own middle path Linux took may be where most projects land, not blanket prohibition.

The widening is measured, not sentimental. A study of 1,356 repositories found AI agents brought in more contributors and spread the work across more hands, with no measured drop in quality. The same study found the catch: developers welcomed the wider pool but distrusted other people's AI code in particular.

That distrust is the accountability anxiety these policies name.

The honest version holds both at once: the circle of who can build software has genuinely widened, and the communities still need a way to govern how.

What this means if you build with agents

Treat a project's contribution rules as a hard requirement your agent will not meet for you. The study is unambiguous that it will not read the CONTRIBUTING file, will not refuse where it should, and will not flag itself. That work is yours.

So do the small, unglamorous things that keep you welcome as the norms tighten:

  • Read the rules yourself. Your agent won't. Open the CONTRIBUTING file before you open a pull request.
  • Disclose AI assistance where asked. It is the one thing every one of these policies has in common, and it costs you nothing.
  • Own what you submit. Be able to explain and fix every line, because the whole point of the rule is that a human can.

The circle of who can contribute to software has genuinely widened, and that is worth celebrating. But widening who can build is not the same as governing how, and the communities holding the commons together have noticed the gap first. Until an agent will read a community's rules and honor them, the human in the loop is not friction. It is the only thing keeping the door open.

References

Frequently asked

Why are open-source projects banning AI-generated code?
Because volunteer maintainers were flooded with low-quality, high-volume AI submissions they had to review for free.
Because volunteer maintainers were flooded with low-quality, high-volume AI submissions they had to review for free. Godot banned autonomous AI agents and vibe coding in June 2026; Zig maintains a strict anti-AI policy; the Linux kernel took a middle path requiring an Assisted-by tag and human liability. The bans are less about hating AI than about protecting maintainer time from output that looks done but often is not.
Do AI coding agents actually follow open-source contribution rules?
Measured answer, no. A July 2026 benchmark (RepoComplianceBench) tested four frontier models against 49 repositories that publish explicit AI-contribution rules and found the agents almost never even retrieve the rules, and under every condition tested never refused to contribute to a repository that bans AI.
Measured answer, no. A July 2026 benchmark (RepoComplianceBench) tested four frontier models against 49 repositories that publish explicit AI-contribution rules and found the agents almost never even retrieve the rules, and under every condition tested never refused to contribute to a repository that bans AI. Disclosure and verification improved when the agents were explicitly prompted, but nothing made them respect a ban on their own.
If AI agents ignore the rules, why write the rules at all?
Because a hard, human-enforced ban is currently the only mechanism that works.
Because a hard, human-enforced ban is currently the only mechanism that works. The same study found that the fixable failures (disclosing AI authorship, passing a verification gate) respond to explicit prompting, but enforcing a ban and escalating to a human remain open problems the agents cannot solve themselves. Until an agent will reliably check and honor a community's rules, a maintainer-enforced gate is the enforcement layer.
Is banning AI code the same as being anti-AI?
No, and that is the misread. Most of these policies are narrow: Godot still allows AI for menial help like completion, regex, and find-and-replace, and Linux explicitly accommodates AI-assisted work with a disclosure tag.
No, and that is the misread. Most of these policies are narrow: Godot still allows AI for menial help like completion, regex, and find-and-replace, and Linux explicitly accommodates AI-assisted work with a disclosure tag. The line is not AI versus no-AI. It is whether a human is accountable for what gets contributed, which is exactly the collaboration model that works.
What does this mean for me as a builder using AI agents?
Treat a project's contribution rules as a hard requirement your agent will not honor for you.
Treat a project's contribution rules as a hard requirement your agent will not honor for you. Read the CONTRIBUTING file yourself, disclose AI assistance where asked, and stay accountable for what you submit. The communities are drawing a line at human accountability, and being the contributor who respects it is how you stay welcome as the norms tighten.
Work with us

Let’s build it together.

We turn clever prototypes into production systems people can rely on. If you’re building with agents and want a hand making it real, leave your email and we’ll be in touch.

Straight to the team. No spam.