06-reference

alphasignal claude code leak harness engineering

Sat Apr 11 2026 20:00:00 GMT-0400 (Eastern Daylight Time) ·reference ·source: AlphaSignal ·by Ben Dickson

“Anthropic’s 512K Line Code Leak” — AlphaSignal

Why this is in the vault

Directly validates the thin-harness-fat-skills thesis. A deep technical breakdown of the leaked Claude Code codebase showing that frontier AI products are not thin wrappers around models — they are massive orchestration systems. Filed as primary evidence for the harness engineering category.

Topics covered

  1. Claude Code leak details — npm packaging error shipped 512K lines of TypeScript via an unobfuscated source map in v2.1.88. Anthropic confirmed human error, not security breach.

  2. Self-healing query loop — Claude Code uses a continuous state machine, not request-response. Auto-recovers from exhausted output budgets, switches models, compacts context to manage quadratic attention costs.

  3. KAIROS / Dream Mode daemon — background process that activates after 24h inactivity and 5+ sessions. Reviews and consolidates memory files using a three-layer design (lightweight index + topic files). Prunes contradictions, rewrites for future session orientation. [RDCO-RELEVANT: directly parallels our vault compaction and memory architecture]

  4. Opinionated tooling over raw shell — specialized grep/glob functions instead of generic terminal access. Write discipline ensures index updates only after successful file writes. Read tools parallelized, write tools serialized.

  5. KV cache optimization — tool lists sorted alphabetically to stabilize cache hits, skipping the prefill phase entirely when tool signatures match.

  6. Poetiq proof — former DeepMind researchers hit 54% on ARC-AGI-2 at $30.57/problem (vs. Gemini 3 Deep Think at 45% for $77.16) by wrapping Gemini 3 Pro in a recursive self-improving orchestration layer. Base model alone scored 31%. The harness is the moat.

RDCO mapping