Back to Vault
Claude Code Internals
Tier 1

claude-code-source-map

View on GitHub Fetched 2026-07-02 1 related flow

Summary

A full deobfuscated source map of the Claude Code npm bundle reconstructed from the published package's source maps - the largest single research artifact in this corpus (~160MB of mapped source). Its directory structure serves as the canonical map of Claude Code's internal modules.

Key Takeaways

  • Use the directory layout as the canonical module map of the harness
  • Reconstructed from public npm source maps, not the internal repo
  • Cross-check ambiguous findings against the leeyeel sourcemap

Reliability Note

Unofficial reconstruction from public npm source maps; explicitly not the original repo structure. Independent reverse-engineering effort - where analyses disagree, this catalog prefers claims confirmed by multiple sources.

Flows informed by this source

1
Flows category icon
Agent Architecture

Design a Single-Loop Agent

Build the core agent loop the leading coding agents use: one model, one loop, tools in, results folded back into context.

01Define the loop contract
02Build the tool registry
03Implement the loop with result folding

+2 more steps to Done

Best forproduction-grade builds with strict verification

5 steps90-150 minutesAdvanced

Made with Emergent