When AI rewrites the code

A maintainer rewrote the Chardet library in five days with Claude Code and changed its license. What it means for open source and for software moats.

— 2 min read

When AI rewrites the code

La Minute du VC is a weekly chronicle by François Véron, in under three minutes. The audio is in French. The transcript below is an English translation of the original French script (original title: Quand l'IA réécrit le code).

Transcript

In March, Dan Blanchard, for 12 years the maintainer of Chardet, a Python encoding detection library used by millions of projects, rewrote the entire software in 5 days with Claude Code from Anthropic. The result is 48 times faster than the original, and plagiarism detection tools measure less than 1.3% similarity with the old version. Blanchard took the opportunity to change the license, moving from the LGPL copyleft, a type of open source license, to a permissive MIT license.

It is on the legal side that the case becomes fascinating. The DC Circuit has confirmed that AI-generated code is not the work of a human author and therefore cannot be protected by copyright. Yet if this code is not protectable, open source licenses, which are built on copyright, simply do not attach to it. For 25 years, copyleft licenses like the GPL have rested on an implicit assumption: rewriting a software from scratch costs so much that nobody does it. AI removes that cost.

But the question goes well beyond open source. If an AI tool can reproduce any software in a few days, the whole notion of barrier to entry wavers. The code itself, its complexity, its architecture, the person-years invested to build it, all of it ceases to be a defensible advantage once a competitor, or in fact anyone, can replicate it for a few thousand dollars of tokens. The feature moat, protection through a product's features, is dying.

What remains to protect a software product? The proprietary data the software accumulates through use. Distribution, meaning access to customers and the brand. Vertical depth, the fine knowledge of business rules, regulatory compliance and workflows specific to a sector. And the switching cost, what it costs to change solution once it is embedded in the user's daily life. AI can reproduce the code of a CRM, but it does not reproduce Salesforce's customer base, nor the compliance certifications of a healthcare SaaS, nor the integrations woven over years into a large group's information system. Although, one could say, importing data is not that complicated.

Newfund has identified five resilience factors for SaaS companies: the depth of integrations in the customer's information system, the weight of accumulated data, regulatory constraints, the intensity of daily use and the complexity of the processes orchestrated. The software's code itself is not one of the barriers.

Related minutes

Sign up for more like this.

Thoughts, stories and ideas.