Claude Code Deep Dive Part 2: The 1,421-Line While Loop That Runs Everything
📰 Dev.to · Harrison Guo
Inside query.ts — the 1,729-line async generator that is Claude Code's beating heart. 10 steps per iteration, 9 continue points, 4-stage compression, and streaming tool execution. With line numbers.
DeepCamp AI