
Unscheduled post
Yesterday, the complete source code of Claude Code leaked, and I went ahead and created an in-depth technical documentation on the architecture and internals of CC — based on an analysis of 1,884 files and 512 thousand lines of TypeScript. Should be useful to anyone using CC as a tool in their pipeline.
HERE.
There are 8 sections:
Architecture Overview
Entry points, data flow, module graph, config, process model, state
Query Engine
Dialogue loop, streaming, token management, error recovery, compaction
Tool System
Tool interface, registry, execution lifecycle, permissions, deferred tools
Agent and Coordinator
Subagents, coordinator mode, isolation, fork protocol, task management
MCP Integration
Server lifecycle, tool proxying, OAuth, resources, elicitation
Context and System Prompts
Prompt assembly, CLAUDE.md, auto-memory, git context, compression
Hooks, Skills, Permissions
Hook events, skill format, permission modes, sandbox, failure tracking
Server, Bridge, Remote
Server mode, bridge protocol, CCR, WebSocket, cron, state management
❗️❗️❗️❗️❗️❗️❗️❗️ / Not banned in Russia
Comments
0No comments yet.
Sign in to join the discussion.