Claude Code Leak Analysis

Technical deep dive into the March 2026 npm Source Map leak

Disclaimer: This analysis is for educational and research purposes only. The source code was leaked due to a publishing pipeline misconfiguration, not an intentional open source release. Anthropic retains full copyright.
1,884
Source Files
394K
Lines of Code
54
Tools
89
Feature Flags
59.8MB
Source Map Size
30+
Analysis Chapters

Event Overview

Leak Event Timeline

Complete timeline of the March 31, 2026 leak. How an intern discovered the 59.8MB Source Map.

HistoryTimeline

Architecture Analysis

Architecture Overview

Module dependency structure, startup system, 10 runtime modes, and compile-time feature flag system.

ArchitectureCore

54 Tools Breakdown

Complete analysis of all 54 tools: File operations, execution, agent, web, MCP, task management.

ToolsAnalysis

Security Analysis

7-Layer Security System

Permission three-tier, AI classifier, Hook chain, 25 Bash checks, filesystem protection, sandbox.

SecurityDeep Dive

Advanced Systems

KAIROS Autonomous Mode

7x24 autonomous AI: tick mechanism, SleepTool, BriefTool, Channel integration, 158 code occurrences.

KAIROSAutonomous

Engineering Deep Dive

Harness Engineering

System prompt assembly: 7 static layers, dynamic paragraphs, CLAUDE.md injection, cache boundaries.

EngineeringPrompt

Competitive Analysis

vs Codex CLI

12-dimension comparison: architecture philosophy, sandbox security, context window, pricing.

Comparison

vs OpenClaw

Closed-source flagship vs open-source ecosystem. Model strategy, security, platform coverage.

Comparison

Looking for usage guides and tutorials?

Explore Guides →

← Back to Claude Code Hub