tangweigang-jpg/Claude-code-research
Claude Code Architecture Deep Analysis — 14-chapter report, 7 languages | Claude Code 架构全景分析 — 14章报告,7种语言
Platform-specific configuration:
{
"mcpServers": {
"Claude-code-research": {
"command": "npx",
"args": [
"-y",
"Claude-code-research"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
🌍 Select Language / 选择语言:
| Language | Link | |----------|------| | 🇨🇳 中文 (Chinese) | 阅读中文版 | | 🇬🇧 English | Read in English | | 🇰🇷 한국어 (Korean) | 한국어로 읽기 | | 🇯🇵 日本語 (Japanese) | 日本語で読む | | 🇪🇸 Español (Spanish) | Leer en español | | 🇧🇷 Português (Portuguese) | Ler em português | | 🇷🇺 Русский (Russian) | Читать на русском |
---
A 14-chapter deep architecture analysis of Claude Code, based on the TypeScript source snapshot (~512K LOC, ~1,900 files) that became publicly accessible on March 31, 2026.
Analysis Method: 14 parallel AI sub-agents (5 Opus + 9 Sonnet) each analyzed a subsystem directly from source files, producing source-level insights with code citations.
| # | Chapter | Key Topic | |---|---------|-----------| | 00 | Index & Overview | Architecture panorama, reading guide, glossary | | 01 | Architecture Overview | Entry points, startup sequence, parallel prefetch | | 02 | Query Engine | LLM interaction core, streaming, retry mechanism | | 03 | Tool System | 40+ tools unified abstraction, registration, execution | | 04 | Agent Orchestration | Leader-Worker, Coordinator, Team, Worktree | | 05 | Prompt Engineering | System prompt structure, Cache optimization, dynamic injection | | 06 | Skill System | Markdown-as-Code, loading mechanism, bundled skills | | 07 | Command System | 50+ slash commands, registration and execution | | 08 | Context Management | 4-layer compression, circuit breaker, cache economics | | 09 | Memory System | Three-tier memory, auto-extraction, intelligent recall | | 10 | Security & Permissions | Bash AST analysis, sandbox, Parser Differential defense | | 11 | MCP Integration | MCP protocol, OAuth, dynamic tool discovery | | 12 | Terminal UI & Rendering | Ink dual-buffer, Int32Array buffer, Vim mode
Loading reviews...