Key points
- On March 31, 2026, a 23-year-old intern (Chaofan Shou, @Fried_rice) discovered a 59.8MB
cli.js.mapsource map file in@anthropic-ai/claude-codev2.1.88 on npm — a debugging artifact that should never ship to production. - The leak exposed 512,000 lines of TypeScript, 1,900 files, and 44 unreleased feature flags. A GitHub mirror (
claw-code) hit 75,700 stars in 2 hours (a platform record) with 41,500 forks. - This was Claude Code's second source leak; the first occurred on February 24, 2025 — launch day. The cause: a missing
*.mapline in.npmignore. - Configuration: cumulative three-tier hierarchy — User (
~/.claude/CLAUDE.md), Project (./CLAUDE.md), and Managed (.claude/managed-settings/), with later tiers overriding earlier ones. - Permissions: five modes from
default(ask before every edit) tobypassPermissions(fully automatic, dangerous), plusacceptEdits,delegate, anddontAsk. - Hooks: deterministic code triggered on events (PreToolUse, PostToolUse, UserPromptSubmit, Stop, TaskCompleted, etc.), in three types — Command, Prompt (single LLM judgment), and Agent (multi-turn subagent verification). The core philosophy: "Prompts aren't guaranteed; Hooks are."
- MCP: Anthropic's open protocol exposing Tools, Resources, and Prompts, with 3,000+ integrations.
- Dream memory system: background consolidation of 24-hour memory fragments, akin to sleep.
- KAIROS mode: an always-on 24/7 background assistant that proactively watches the filesystem, repos, and email.
- Buddy: a Tamagotchi-style terminal pet with 18 species and 5 rarity tiers, deterministically generated from a user ID hash.
- Undercover mode: on by default and non-disableable, it hides the "Claude Code" name, model codenames, and version numbers when Anthropic employees contribute to open-source projects, and omits Co-Authored-By lines.
- ULTRAPLAN: offloads complex planning to cloud Opus 4.6 with up to 30 minutes of thinking time.
- Hidden codenames: Capybara, Tengu, Fennec, Mythos; Fast Mode is internally "Penguin Mode"; Computer Use is "Chicago."
- $2.5B annualized revenue in 8 months
- 71% developer adoption in agentic coding tools; 46% favorite rating (Copilot: 22%)
- ~4% of daily GitHub commits (~135,000/day)
- 90% of Anthropic's own code AI-written; 95% first-try correctness; METR benchmark equivalent to 14.5 human-expert hours
- Official site: https://www.anthropic.com/claude-code
- Docs: https://code.claude.com/docs
- GitHub: https://github.com/anthropics/claude-code
- Leak analysis: https://claudefa.st/blog/guide/mechanics/claude-code-source-leak
Architecture: an agentic OS, not a CLI tool
The article describes Claude Code as a three-layer agent operating system:
1. Core Layer — the main conversation context (200K tokens standard, up to 1M on Opus 4.6). Every message, file read, and tool output consumes context; this layer "burns money." 2. Delegation Layer — Subagents (up to 10 in parallel: Explore, Plan, General-purpose, Custom) run in clean contexts and return only summaries, keeping exploratory work out of the main conversation. 3. Extension Layer — MCP (external services like databases, GitHub, Sentry), Hooks (guaranteed shell execution), Skills (domain expertise), and Plugins (distributable bundles).
Four core systems
Leaked "alien tech"
Security model and business results
Claude Code's safety philosophy is pre-flight inspection rather than post-hoc review: unlike Copilot (passive suggestions) or Cursor (undoable edits), every Claude Code edit passes hook-based checks. Leaked code reveals 23 Bash security scripts covering dangerous command detection, credential leakage, network request auditing, and filesystem boundary checks.
Reported commercial metrics:
Technical debt and comparison
The leak also exposed recurring failures: the same source map mistake twice in ~13 months, missing basic CI/CD checks (a 10-line bash script would have prevented it), a known Bun bug (filed March 11) that still generated source maps in production, and a second incident on March 26 where a CMS misconfiguration exposed Mythos model info.
The article frames three generations of AI coding tools: Copilot as co-pilot (steering suggestions), Cursor as driving coach (reading the road), and Claude Code as a chauffeur (you describe the goal; it reads files, plans, codes, runs tests, self-corrects, and returns results).
Conclusion
Claude Code is genuinely "alien tech" — a terminal-based AI OS with layered architecture, parallel subagents, hook-driven security, and a mature MCP ecosystem. But it also reveals "Earth problems": a multi-billion-dollar AI-safety-branded company leaked its source twice by forgetting one .npmignore line. The takeaway: technology improves exponentially, but engineering culture improves only linearly.