AI can rewrite open source code—but can it rewrite the license, too?
Image: Ars Technica

AI can rewrite open source code—but can it rewrite the license, too?

10 March, 2026.Technology and Science.1 sources

Key Takeaways

  • Computer engineers long relied on reverse engineering to replicate functionality without copying copyrighted code
  • AI coding tools are creating legal, ethical, and practical challenges for clean-room rewrites
  • A release last week brought those legal and ethical concerns to the forefront

Background and trigger

Computer engineers and programmers have long relied on reverse engineering as a way to copy the functionality of a computer program without copying that program’s copyright-protected code directly.

Computer engineers and programmers have long relied on reverse engineering as a way to copy the functionality of a computer program without copying that program’s copyright-protected code directly

Ars TechnicaArs Technica

Now, AI coding tools are raising new issues with how that “clean room” rewrite process plays out both legally, ethically, and practically.

Image from Ars Technica
Ars TechnicaArs Technica

Those issues came to the forefront last week with the release of a new version of chardet, a popular open source python library for automatically detecting character encoding.

chardet history and license

The repository was originally written by coder Mark Pilgrim in 2006 and released under an LGPL license that placed strict limits on how it could be reused and redistributed.

Dan Blanchard took over maintenance of the repository in 2012.

Image from Ars Technica
Ars TechnicaArs Technica

Blanchard’s rewrite claims

Dan Blanchard took responsibility for a major update, releasing version 7.0 of chardet last week and describing the overhaul as “a ground-up, MIT-licensed rewrite” of the entire library built with the help of Claude Code to be “much faster and more accurate” than what came before.

Computer engineers and programmers have long relied on reverse engineering as a way to copy the functionality of a computer program without copying that program’s copyright-protected code directly

Ars TechnicaArs Technica

Speaking to The Register, Blanchard said he has long wanted to get chardet added to the Python standard library but that he didn’t have the time to fix problems with “its license, its speed, and its accuracy” that were getting in the way of that goal.

With the help of Claude Code, Blanchard said he was able to overhaul the library “in roughly five days” and get a 48x performance boost to boot.

Controversy and implications

Not everyone has been happy with that outcome; a poster using the name Mark Pilgrim surfaced on GitHub to argue that this new version amounts to an illegitimate relicensing of Pilgrim’s original code under a more permissive MIT license.

Pilgrim argues this new version of chardet must also maintain the same LGPL license because it is a modification of his original LGPL-licensed code.

Image from Ars Technica
Ars TechnicaArs Technica

The article presents this dispute as part of broader legal, ethical, and practical questions about AI-assisted clean-room rewrites and does not resolve whether the relicensing is legally valid.

More on Technology and Science