AI-Rewritten Code Sparks 'Ship of Theseus' Copyright Debate
Summary
A chardet library maintainer used Claude Code to rewrite an entire LGPL-licensed library and relicensed it as MIT, sparking a "Ship of Theseus" debate about whether AI-rewritten code constitutes a derivative work — a question with massive implications for open-source licensing.
What Happened
In March 2026, a maintainer of the chardet character encoding library used Claude Code to completely rewrite the LGPL-licensed codebase, then relicensed the result as MIT. The original author objected, arguing the AI-rewritten version was still a derivative work. Armin Ronacher (creator of Flask) published an influential essay framing this as a "Ship of Theseus" problem: if every line of code is replaced by AI, is it still the same software? The debate went viral on Hacker News, exposing a fundamental gap in copyright law.
Why It Matters
This case highlighted an emerging pattern: AI tools could be used to "launder" copyleft licenses by rewriting code until no original text remained while preserving functionality. If courts ruled AI-rewritten code is not derivative, it could undermine the entire copyleft licensing model that underpins much of open-source software.