Wash Your Agents Before You Code

In March 2025, I suggested that AI could be your next team for clean room development. A clean room is a process for writing new software that performs the same tasks as existing software (the “target”) without copying the target’s code. Traditionally, when clean rooms were done with human coders, one team would study the target and write a specification, and another team that never sees the target would write new code from that specification.

That process was labor intensive. But today, AI coding agents make the process quicker and cheaper–though not exactly easier. As we stand at the end of 2026, AI reimplementation is becoming common practice, but it needs a rulebook. AI clean rooms are imperfect, but they are practical. As with all tools that speed development, engineers will use them whether their lawyers approve or not. So, I am publishing a model clean room protocol.

In March 2026, the maintainer of Chardet, a Python library licensed under the LGPL, released an AI-assisted rewrite under a permissive license. The original author objected in GitHub issue #327, “No right to relicense this project,” arguing that the maintainer’s long exposure to the original code ruled out a clean room. I wrote about the Chardet controversy at the time, and I still think it was one of the more conscientious clean room efforts I have seen. It was also an object lesson in how coding agents behave. During that project, agents reached for “dirty” material despite instructions to stay away from it.

As 2026 progressed, the pace of celebrated–or perhaps notorious–clean room reimplementations only increased. In October 2026, ArtCraft released reimplementations of Adobe’s most popular Creative Cloud applications, and Puter released 50 MIT-licensed applications, including replacements for the Microsoft Office suite.

As I wrote then, this changes everything. AI coding has made reimplementation so cheap and fast that copyright in code losing its power as a legal threat. The truth is that we may be living in a post-copyright world for software.

Software copyright has always been tricky to enforce, but now, it may be prohibitively expensive and difficult to enforce against anyone but a brazen pirate that creates copies without changing a line of code. The clean room process takes a potential defendant far outside that target surface. However, as I have written, maybe the death (or at least malingering) of copyright is not all bad. Emphasis on IP enforcement for software will likely shift from copyright to branding.

Why Clean Room?

The traditional clean room process assumed the ability to quarantine a development environment. The code to be reimplemented (the target) was confidential, so a redeveloper could demonstrate that its engineers never saw the target. Open source targets, however, are accessible by definition. Any human engineer may have browsed a public repository, and coding models were almost certainly trained on it.

So, a clean room for an open source target is never antiseptic, but it can prove three things: 

  • The target was never in the AI coder’s context
  • The specification was filtered to remove protectable material
  • The finished code is not substantially similar to the target 

In my view, those three proofs, backed by reliable records, are enough to make an infringement lawsuit long, expensive, and unpredictable for any plaintiff seeking to enforce the rights in the target code. It’s not “safe”–but in technology law, almost nothing is. The reality is that much of legal risk management is deterrence, rather than risk elimination.

My suggested protocol takes into account a specific factor that is very common: reimplementing in a different programming language (a port) reduces the chance of literal copying, but it does not necessarily avoid the target’s structure, sequence, and organization. The protocol therefore seeks to manage exposure to structure as well as literal copyng. 

The Model Protocol

The protocol uses four teams of AI agents: Specification, Filter, Build and Audit. It also allows for a human project leader to makes high-level design decisions. It places a heavy emphasis on validation and record keeping.

One caution from my prior writing on this topic bears repeating. A clean room undertaken only to escape a copyleft license usually costs more than complying with the license, and it produces a fork that incurs technical debt. Reimplement because you can build something better, not to avoid the bargain of copyleft.

Enjoy!

PS Many thanks to those who gave me feedback on the protocol!