Claude Code Analysis from Leaks

A comprehensive technical breakdown of Claude Code's internals, reverse-engineered from leaked source code. Covers architecture, tool system, UI components, services layer, subsystems, startup sequence, commands, utilities, and best practices. Available in both English and Thai.

English

📄

Claude Code: Architecture Overview

Deep-dive into the internal structure of Claude Code — pipeline, tools, commands, state management, UI, and build system.

📄

Claude Code: Best Practices Guide

Production-grade patterns for building with Claude Code — architectural, code quality, performance, security, and testing practices.

📄

Claude Code: Bridge Layer (IDE Integration)

How Claude Code connects to VS Code, JetBrains, and claude.ai via the bridge layer — protocols, authentication, message flow, and Chrome extension integration.

📄

Claude Code: Codebase Exploration Guide

How to navigate and study the Claude Code source code — orientation, finding things, code patterns, study paths, and grep recipes.

📄

Claude Code: Command System Architecture

How the slash command system is built — command types, registration patterns, execution flow, and categories.

📄

Claude Code: Commands Reference

Complete catalog of all ~85 slash commands in Claude Code — git, code quality, session, configuration, MCP, agents, diagnostics, and more.

📄

Claude Code: Services Layer

External integrations and shared services in Claude Code — API, MCP, OAuth, LSP, analytics, and more.

📄

Claude Code: Startup & Initialization

The Claude Code boot process — startup timeline, initialization functions, feature flags, migration system, and performance metrics.

📄

Claude Code: Subsystems Guide

Detailed documentation of Claude Code major subsystems — Bridge, MCP, Permissions, Plugins, Skills, Tasks, Memory, Coordinator, Voice, and Service Layer.

📄

Claude Code: Tool System Architecture

How the tool system is built — tool catalog, factory pattern, directory structure, permission system, execution flow, and security.

📄

Claude Code: Tools Reference

Complete catalog of all ~40 agent tools in Claude Code — file system, shell, agent orchestration, task management, web, MCP, and more.

📄

Claude Code: UI Components

Terminal UI architecture in Claude Code — React + Ink components, design system, hooks, state management, and rendering patterns.

📄

Claude Code: Utilities

The 331+ utility modules in Claude Code — categories, patterns, integration, performance, and security utilities.

Thai

🇹🇭

Claude Code: Bridge Layer (การเชื่อมต่อ IDE)

วิธีที่ Claude Code เชื่อมต่อกับ VS Code, JetBrains และ claude.ai ผ่าน bridge layer — protocols, authentication, message flow และ Chrome extension

🇹🇭

Claude Code: การเริ่มต้นระบบและ Initialization

กระบวนการบูต Claude Code — startup timeline, initialization functions, feature flags, migration system และ performance metrics

🇹🇭

Claude Code: คู่มือ Commands

Catalog ครบถ้วนของ slash commands ทั้ง ~85 รายการใน Claude Code — git, code quality, session, configuration, MCP, agents, diagnostics และอื่นๆ

🇹🇭

Claude Code: คู่มือ Subsystems

เอกสารละเอียดของ subsystems หลักใน Claude Code — Bridge, MCP, Permissions, Plugins, Skills, Tasks, Memory, Coordinator, Voice และ Service Layer

🇹🇭

Claude Code: คู่มือ Tools

Catalog ครบถ้วนของ agent tools ทั้ง ~40 รายการใน Claude Code — file system, shell, agent orchestration, task management, web, MCP และอื่นๆ

🇹🇭

Claude Code: คู่มือการสำรวจ Codebase

วิธีสำรวจและศึกษา source code ของ Claude Code — การปฐมนิเทศ การค้นหา code patterns เส้นทางการศึกษา และ grep recipes

🇹🇭

Claude Code: คู่มือแนวปฏิบัติที่ดี

แนวทางระดับ production สำหรับการสร้างด้วย Claude Code — สถาปัตยกรรม คุณภาพโค้ด ประสิทธิภาพ ความปลอดภัย และการทดสอบ

🇹🇭

Claude Code: ชั้นบริการ (Services Layer)

การเชื่อมต่อภายนอกและ shared services ใน Claude Code — API, MCP, OAuth, LSP, analytics และอื่นๆ

🇹🇭

Claude Code: ฟังก์ชันช่วย (Utilities)

Utility modules กว่า 331+ รายการใน Claude Code — หมวดหมู่ patterns การเชื่อมต่อ performance และ security utilities

🇹🇭

Claude Code: ภาพรวมสถาปัตยกรรมระบบ

การวิเคราะห์เชิงลึกเกี่ยวกับโครงสร้างภายในของ Claude Code — pipeline, tools, commands, state management, UI และ build system

🇹🇭

Claude Code: สถาปัตยกรรมระบบ Command

วิธีสร้างระบบ slash command — ประเภท command รูปแบบการลงทะเบียน execution flow และหมวดหมู่

🇹🇭

Claude Code: สถาปัตยกรรมระบบ Tool

วิธีสร้างระบบ tool — tool catalog, factory pattern, directory structure, permission system, execution flow และความปลอดภัย

🇹🇭

Claude Code: ส่วนประกอบ UI

สถาปัตยกรรม terminal UI ใน Claude Code — React + Ink components, design system, hooks, state management และรูปแบบการ render