Claw Code: 50K Stars in 2 Hours, The Fastest Repo in History
When Anthropic's Claude Code source leaked on March 31, the question wasn't 'will someone clone it?' — it was 'how fast?'
When Anthropic’s Claude Code source leaked on March 31, the question wasn’t “will someone clone it?” — it was “how fast?”
The answer: 2 hours to 50,000 GitHub stars. The fastest repository in history to reach that milestone.
But what happened next is even more interesting than the speed.
Not a Leak Archive — A Clean-Room Rewrite
Most repos that spring up after a leak are just mirrors. Copy the code, push to GitHub, watch the stars roll in.
Claw Code is different.
The repository by Sigrid Jin (@instructkr) doesn’t host the leaked code. It’s a clean-room Python rewrite that captures the architectural patterns of Claude Code’s agent harness without copying any proprietary source.
From the README:
“I did not want the exposed snapshot itself to remain the main tracked source tree. This repository now focuses on Python porting work instead.”
The original leaked code? Already removed from tracked history. What remains is a from-scratch implementation that mirrors the architecture — legal, because architecture isn’t copyrightable, only code is.
The Numbers
| Metric | Value |
|---|---|
| Time to 50K stars | 2 hours |
| Python files | 67 |
| Rust files | 34 (port in progress) |
| Repo size | 12MB |
| Claim | Fastest repo in GitHub history to 50K stars |
How It Was Built
Here’s where it gets wild: Jin used OpenAI’s Codex to port Anthropic’s product.
From the README:
“The whole thing was orchestrated end-to-end using oh-my-codex (OmX) by @bellman_ych — a workflow layer built on top of OpenAI’s Codex. I used $team mode for parallel code review and $ralph mode for persistent execution loops with architect-level verification.”
The irony: OpenAI’s tools helped clone Anthropic’s proprietary agent harness into open source.
The Author
Sigrid Jin isn’t a random developer. From the Wall Street Journal feature (March 21, 2026):
“AI startup worker Sigrid Jin single-handedly used 25 billion of Claude Code tokens last year. At the time, usage limits were looser, allowing early enthusiasts to reach tens of billions of tokens at a very low cost.”
He flew to San Francisco for Claude Code’s first birthday party. He’s one of the most active power users in the world. And when the leak happened, he sat down and ported the core features to Python “before the sun came up.”
What’s In The Repo
The Python src/ tree includes:
models.py— dataclasses for subsystems, modules, and backlog statecommands.py— Python-side command port metadatatools.py— Python-side tool port metadataquery_engine.py— renders a Python porting summarymain.py— CLI entrypoint for manifest and summary output
But the real action is on the dev/rust branch — a full Rust port that’s expected to merge into main today. The README promises:
“The Rust implementation aims to deliver a faster, memory-safe harness runtime.”
Why This Matters
The leak exposed what Anthropic built. Claw Code makes it available to everyone.
Anthropic’s nightmare scenario:
- Leak happens → code is public
- Someone clean-room rewrites it → legal
- Rust port makes it faster/safer → better than original
- Open source community improves it → Anthropic loses moat
The Legal Shield
Jin was careful. From the README:
“This repository does not claim ownership of the original Claude Code source material. This repository is not affiliated with, endorsed by, or maintained by Anthropic.”
By removing the leaked source and focusing on architecture porting, he’s on solid legal ground. Architecture isn’t copyrightable. Clean-room implementations are standard practice (see: React vs Vue, Oracle vs Google on Java APIs).
What Happens Next
The Rust port is imminent. If it works, anyone can run a Claude Code-style agent harness — with KAIROS-style autonomous capabilities — without Anthropic.
Two possible futures:
- Anthropic open-sources Claude Code officially — to stay competitive and control the narrative
- Claw Code becomes the de facto standard — and Anthropic’s proprietary agent orchestration becomes a commodity
Either way, the genie isn’t going back in the bottle.
The Honest Take
The leak was a PR disaster for Anthropic. But this repo is an existential threat.
When your product is architecture and someone open-sources that architecture, you have two choices: compete on execution, or find a new product.
The 50K stars in 2 hours proves the demand. The clean-room rewrite proves it’s legal. The Rust port proves it’s serious.
Anthropic has a week, maybe two, before Claw Code is production-ready. After that, the agent orchestration layer becomes infrastructure.
Sources:
- GitHub: https://github.com/instructkr/claw-code
- Wall Street Journal: “The Trillion Dollar Race to Automate Our Entire Lives” (March 21, 2026)
- Previous: Anthropic’s Claude Code Leak Exposes 512,000 Lines of Secret Features