Europe/London
BlogMay 2, 2026

What the Zig Anti-AI Policy Got Right About Open-Source Trust

Dubz
In late April 2026, the Zig project published a rationale for why it does not accept AI-generated code contributions under its current policy. Simon Willison wrote a measured summary of the decision, and the discussion that followed was unusually civil for an internet flame war. That alone is worth paying attention to. The Zig project is small, opinionated, and serious about its compiler. Its maintainers spend a lot of time reviewing code. The core complaint is not "AI code is bad." It is closer to: when someone submits a pull request they cannot fully explain, the burden of verification shifts onto a volunteer maintainer who already has limited time. That is a real cost, and most open-source projects absorb it silently. Zig decided to name it. The most useful framing in the Zig rationale is that the policy is about trust, not about purity. Maintainers are not claiming AI is evil. They are saying they need to be able to reason about the code in the pull request, and they need to be confident the contributor can reason about it too. If the contributor cannot, the maintainer is effectively doing free code review on a stranger's behalf, and the project gets a patch that may break in ways nobody on the team can predict. This is a smaller ask than "no AI allowed." It is also a more honest ask. The reality is that almost every serious open-source project already operates on some version of "I need to trust that you understand what you submitted." The Zig team just made the rule explicit. A lot of the early commentary online missed this point. Rejecting a pull request because you cannot trust the contributor to maintain it is not the same as rejecting AI as a tool. The maintainers are not banning editors. They are saying: when you submit code here, be ready to defend it, fix it, and explain it next year. If your workflow can produce that, fine. If it cannot, the policy has a clear answer. For indie builders, this is the part to actually read carefully. The argument is not "stop using AI." The argument is "if your AI workflow cannot produce code you personally understand, you are pushing the cost of trust onto volunteers." That is a fair boundary. If you rely on open-source projects the way most solo builders do, three habits help a lot:
  1. Review every patch before you send it. Read the diff. Ask yourself whether you could fix a regression in that code six months from now. If the answer is no, the patch is not ready.
  2. State your workflow in the PR. You do not have to apologize for using AI. You do have to show you understand the code. A short note that says "I drafted this with an assistant, then rewrote and tested the parts I was not sure about" is enough.
  3. Contribute back in proportion to what you take. If you ship a product that depends on a project, send a real contribution occasionally: a bug report with a repro, a fix, a doc patch. Trust compounds both ways.
None of this is new advice. The Zig policy just made it visible by drawing a line. The reason this story matters more than the usual AI discourse is the tone. Zig did not write a manifesto. They wrote a maintainer note. They did not accuse contributors of bad faith. They named a cost and asked people to respect it. That is the version of the conversation the open-source world needs more of, and it is the version indie builders can actually work with. You can keep your AI workflow. Just make sure the workflow produces something you can stand behind.
  • Simon Willison, "Zig project's rationale for their anti-AI contribution policy" (2026-04-30): https://simonwillison.net/2026/Apr/30/zig-anti-ai/
Share this post: