Claw Code: Pirataria ou Inovação? O Clone Open Source do Claude Code

Early Tuesday morning, an intern discovered that Anthropic had accidentally published the entire Claude Code source code on npm. 512,000 lines of TypeScript. Version 2.1.88 came with a 59.8 MB source map that should never have left Anthropic. Within hours, the post by the researcher who discovered it surpassed 16 million views. The code was cloned, mirrored, and analyzed by thousands of developers around the world. 🔴 Vibe Coding Training (Antigravity, Claude Code and more): https://app.horadecodar.com.br/lp/for... 🟪 Hosting for n8n that I recommend: https://hostinger.com.br/matheusbattisti (use coupon HORADECODAR for an extra 10% discount) 📘 Prompt Engineering Guide: https://app.horadecodar.com.br/ebookp... Within the code there were 44 feature flags for functionalities that were never released. KAIROS, an autonomous daemon mode where Claude Code runs in the background 24/7 with a process called autoDream that performs memory consolidation while you are idle. Buddy, a Tamagotchi-style AI pet with 18 species, rarity levels, and attributes like debugging, patience, and chaos. Undercover Mode, a subsystem to prevent Claude Code from leaking internal codenames when contributing to open-source repositories. Model codenames: Capybara is Sonnet 4.6, Fennec is Opus 4.6, Numbat is still in testing. When Anthropic started taking down mirrors with DMCA takedowns, a Korean developer named Sigrid Jin stepped in. The Wall Street Journal published an article about him documenting that he consumed 25 billion Claude Code tokens in one year. At 4 AM, using an AI orchestration tool, he rewrote the core architecture of Claude Code from scratch in Python and published the Claw Code repository on GitHub. In 2 hours: 50,000 stars. More than 56,000 forks. The number of forks surpassed the number of stars, which is incredibly rare. The crucial point: it doesn't contain a single line of the original TypeScript. It's a complete rewrite. Anthropic took down the repositories that had the original code, but Claw Code remains online. The legal issue is complex. In traditional clean-room rebuilds, whoever writes the new code never saw the original. Sigrid Jin clearly read the leaked code before rewriting. And no one has ever tested in court whether an AI-generated clean-room rebuild violates copyright. Completely new territory. In the video, I test Claw Code on a VPS so I don't have to install it on the main machine. I show the complete installation: cloning the repository, installing dependencies, configuring the LLM provider. Claw Code is provider-agnostic, unlike the official Claw Code which only works with Anthropic templates. I explore the diagnostic commands that show the porting structure, the subsystems, the available tools, and the bootstrap sequence. Then I run the agent in turn-loop mode and test basic commands to show what works and what doesn't yet. I'll make a direct comparison between the official Claude Code and Claw Code. The official version has 512,000 mature lines of code in TypeScript, only works with Anthropic, integrates with VS Code and JetBrains, has multi-agent swarm functionality, and sophisticated multi-layer memory. Claw Code has Python and Rust, accepts any compatible LLM, 19 tools with an extensible registry, 15 slash commands, and a sub-agent with isolation. It doesn't replace Claude Code today, but the fact that it's open source, extensible, and accepts any provider is a game-changer. What happened here is bigger than Claw Code itself. Anthropic made a packaging error, and within hours the community rewrote it, ported it to another language, published it on decentralized platforms, and created a version that the DMCA doesn't reach. Once knowledge is out there, it can't be put back in the box. 🔗 Video Links: ▸ Claw Code: https://github.com/instructkr/claw-code Join our Discord server and follow me on social media: 🟣 Discord Hora de Codar:   / discord   🔴 Instagram:   / horadecodar   🔷 Telegram: https://t.me/horadecodar TIMESTAMPS 00:00 Claude Code (Claw Code) was cloned 00:52 How Claw Code (Claude Code Fork) works 04:05 Is Claw Code piracy? 06:40 Claw Code repository and official website 08:40 Claude Code vs Claw Code 10:30 My thoughts on Claw Code