Claude Code: Behind-the-Scenes of the Master Agent Loop
A detailed reverse-engineering of Claude Code's agent architecture, revealing how a single-threaded master loop with flat message history, structured tool interfaces, async steering, and TODO-based planning delivers controllable autonomy without multi-agent complexity.