HomeArticle

Claude Code's source code "rebranded" to fight back, being cloned wildly across the web, and Anthropic's attempt to block it failed.

新智元2026-04-01 09:56
At 4 a.m., refactoring with Rust

Explosion! The Claude Code source code library has completely gone viral, with 60,000 people frantically forking it late at night. Anthropic took emergency action, and the original GitHub author rewrote the code in Python and Rust at 4 a.m.

Within just 24 hours of its launch, the Claude Code "source code" repository has gone wild!

Unexpectedly, the most outrageous scene occurred: The number of forks actually crushed the number of stars, and 60,000 people across the network "copied" the code overnight.

Link: https://github.com/instructkr/claw-code

Now, 512,000 lines of TypeScript source code are exposed across the network, and almost everyone is cloning it.

Just at this critical moment, Anthropic stepped in: Through a DMCA copyright complaint, it directly blocked all links sharing the source code.

Fearing a lawsuit, the leaker, Sigrid Jin (instructkr), completed a rare "shell replacement operation" in a very short time -

First, the entire huge TypeScript code was completely rewritten in Python.

A few hours later, the entire code was refactored in Rust.

Now, the entire network is immersed in the carnival of Claude Code's "open source". Even Elon Musk is watching the fun on the side.

Thorough "cleansing" of the Claude Code source code

The project has completely exploded

It can be said that a real - life "code smuggling" has taken place in the tech circle.

Just yesterday, a post by security expert Chaofan Shou instantly detonated the entire Silicon Valley, attracting more than 22 million people to watch.

Due to a negligence in the configuration of a map file in the npm registry, the core source code of Claude Code was "exposed"!

This is not a simple leak. It's a full 1,900 source files and 512,000 lines of TypeScript code, completely exposed under the spotlight.

Netizens have sighed, "After OpenClaw, another repository with the fastest - growing stars in history has been born."

Unexpectedly, this leak storm is just the beginning of another technological "battle royale".

Anthropic has taken out the legal weapon, trying to block all the leaked Claude source code repositories through a DMCA copyright complaint.

Moreover, GitHub acted quickly, and all pages involving the original TypeScript code instantly went black.

At 4 a.m., a race against time

Even the developer, Sigrid Jin, panicked -

At 4 a.m. on March 31, 2026, my phone was bombarded with messages, which woke me up directly.

The source code of Claude Code was leaked, and the entire developer community was completely boiling.

My girlfriend in South Korea was even really worried about me, fearing that I would be sued by Anthropic just because I had this code on my computer.

So, in the dim light of 4 a.m., he launched an AI - assisted workflow called oh - my - codex.

With the help of Codex, he rewrote the core logic of Claude from scratch in Python before dawn.

Instructkr used the $team mode for parallel code review and the $ralph mode for a continuous execution loop with architect - level verification.

Screenshot of the OmX workflow

The entire transplantation process - from reading the original framework structure to generating a runnable Python code tree with test cases - was all driven by OmX.

The final result is a Python rewrite that meets the "clean - room design" standard.

It perfectly replicates the architecture pattern of Claude Code's AI agent framework and definitely does not copy any proprietary source code.

Now, this new repository named claw - code does not contain a single line of the original TypeScript.

This means that Anthropic's previous copyright complaint is instantly invalid in front of it.

A South Korean geek: A gift for enthusiastic Claude Code fans

It's worth mentioning that Sigrid Jin is not an unknown figure.

Just a few days ago, he made it onto the WSJ for consuming 25 billion Claude Tokens in a year and was even invited to the official anniversary party.

Currently, Harness Engineering has become the hottest term in Silicon Valley.

This is a field that specifically studies how AI agent systems connect various tools, orchestrate tasks, and manage the runtime context.

Sigrid Jin said that he has always had a strong interest in Harness Engineering. "This is not a whim."

In February this year, Jin flew from Seoul to San Francisco specifically to attend the one - year anniversary celebration of Claude Code.

The scene of that party impressed him deeply: There was a long queue at the scene, and people were eager to compete with the core members of Anthropic.

The backgrounds of these enthusiasts are extremely magical:

  • There is a cardiologist from Belgium who used AI to develop a patient referral app;
  • There is a California lawyer who uses AI to automatically approve building permits;
  • There is even a dentist among them.

Jin recalled, "It felt like a pure knowledge - sharing session, and many people at the scene didn't have a software engineering background at all."

Although Jin has spent countless hours on Claude Code, he is not a die - hard fan of any AI laboratory.

He said that the tools on the market each have their own advantages. Codex has stronger logical reasoning ability, while the code written by Claude Code is cleaner and more suitable for sharing.

In - depth analysis of 510,000 lines of code

Now, the flying - around Claude Code source code has been frantically analyzed by various experts for its underlying logic and technical engineering implementation.

A large number of guides and interpretations have been launched and are flooding across the network.