Switch language한국어
Back to the list

Claude Code's Leaked Source: A Real-World Masterclass in Harness Engineering

TL;DR AI

Key summary

2 min read
  1. A leaked Claude Code repository reveals about 512K lines of TypeScript and detailed harness engineering practices.

  2. The codebase tracks 14 prompt cache invalidation vectors and uses sticky latches to decide cache keep-or-break behavior.

  3. Claude Code implements a multi-agent subsystem called swarms and coordinates agents via natural language prompts.

  4. Shell command execution passes through 23 security checks, including defenses against zero-width characters and zsh expansion.

  5. The code uses a Zig HTTP layer client hash to authenticate native clients.

Read the original