🔥 Hot Repo: 50K Stars in 2 Hours — Claude Code Rewritten in a Night

On March 31, Anthropic accidentally shipped 512,000 lines of Claude Code source in a public npm package. One developer rewrote the agent harness from scratch overnight. The repo hit 50,000 GitHub stars in 2 hours — and 141,000 in two days.

By OMC Editorial on 2026-04-02

When a missing .npmignore entry caused Anthropic to ship a 59.8 MB JavaScript source map inside @anthropic-ai/claude-code v2.1.88 on March 31, 2026, the developer internet erupted. The file contained 512,000 lines of unobfuscated TypeScript across 1,906 files — the full production source of Claude Code, exposed by a single misconfigured debug artifact. Security researcher Chaofan Shou @Friedrice spotted it within hours. By 4 AM, Sigrid Jin — a Seoul-based developer previously profiled by the Wall Street Journal for consuming 25 billion Claude Code tokens in a single year — had already published a response: claw-codehttps://github.com/ultraworkers/claw-code, a clean-room Python and Rust rewrite of the Claude Code agent harness built from scratch overnight. The repo hit 50,000 GitHub stars in 2 hours. As of April 2, 2026 — two days after creation — it stands at 141,000 stars and 101,000 forks, making it the fastest-growing repository in GitHub history by any documented metric. What claw-code Actually Is claw-code is not a mirror of the leaked TypeScript. Jin was explicit about this from the start: facing legitimate legal concern about hosting proprietary code directly, he rebuilt the architectural patterns from scratch. The repo captures how Claude Code's agent harness works — tool wiring, session management, MCP orchestration, command routing — without copying a line of Anthropic's source. The Rust workspace at rust/ contains seven crates: - crates/api-client — provider-agnostic LLM API client with OAuth and streaming - crates/runtime — session state, MCP orchestration, and prompt construction - crates/tools — tool manifest definitions and execution framework - crates/plugins — plugin model and hook pipeline - crates/claw-cli — interactive REPL, markdown rendering, and project bootstrap - crates/lsp — LSP client integration - crates/server — HTTP/SSE server via axum The Python layer at src/ handles agent orchestration. Rust comprises 72.9% of the codebase; Py