DEV Community

Bruce He
Bruce He

Posted on • Originally published at heyuan110.com

Claw Code: The Open-Source Claude Code Rewrite That Hit 100K Stars

Originally published at heyuan110.com

On March 31, 2026, a missing .npmignore entry shipped 512,000 lines of unobfuscated TypeScript to the public npm registry — the entire internal architecture of Claude Code laid bare.

Two days later, Claw Code launched as a clean-room Python and Rust rewrite. It became the fastest-growing repository in GitHub history, surpassing 100,000 stars in its first hours.

This article examines:

  • What exactly leaked and how (the npm packaging error)
  • What Claw Code is — architecture, design decisions, key differences
  • Claude Code vs Claw Code architecture comparison
  • Legal and ethical analysis: is a clean-room rewrite actually safe?
  • Should you switch from Claude Code? (Honest assessment: probably not yet)

Read the full article →

If you found this useful, check out my blog for more AI engineering guides.

Top comments (0)