Claude rebuilt a working Claude Code executable entirely from leaked sourcemap, then edited its source to add a custom startup animation
The AI agent reconstructed a working executable and even added a custom startup animation.
In a remarkable display of self-referential AI capability, a user prompted Anthropic's Claude 3.5 Sonnet model to reconstruct a working version of its own Claude Code tool using only information from a leaked sourcemap. The AI successfully rebuilt the entire Node.js dependency resolution system, recreating the `node_modules` directory structure with precise accuracy to produce a functional executable. This process, which would typically require extensive manual debugging and dependency management, was automated by the AI agent through staged resolution of the complex package relationships.
After successfully building the executable, the user then instructed Claude to edit the application's source code to add a custom startup animation—a modification the AI implemented successfully. The resulting open-source build has been published on GitHub, where developers can now experiment with what is essentially a community-recreated version of Anthropic's coding assistant. While core features beyond basic execution remain untested, the project demonstrates how advanced AI models can reconstruct and modify complex software systems from incomplete or obfuscated source information, raising both exciting possibilities and significant concerns about code security and intellectual property.
- Claude 3.5 Sonnet rebuilt its own Claude Code tool from a leaked sourcemap, creating a 1:1 replica of the Node.js dependency tree
- The AI then successfully edited the source code to implement a custom startup animation in the reconstructed executable
- The working build is now publicly available on GitHub, effectively creating an open-source version of Anthropic's proprietary coding assistant
Why It Matters
This demonstrates AI's ability to reverse-engineer complex software, raising serious questions about code security and intellectual property protection in the age of advanced AI.