教程章节
这里汇总了当前已经写完或正在推进的教程正文。最适合的阅读方式不是随机点开,而是顺着章节编号往下走,因为后面的内容默认你已经理解前面的架构和术语。
中文章节
- 第 01 章:项目总览与架构设计
- 第 02 章:启动流程与初始化
- 第 03 章:核心类型体系
- 第 04 章:状态管理机制
- 第 05 章:Agent 循环引擎
- 第 06 章:工具系统深度剖析
- 第 07 章:权限与安全模型
- 第 08 章:命令系统
- 第 09 章:QueryEngine 与 SDK 接口
- 第 10 章:自研终端 UI 框架 Ink
- 第 11 章:REPL 交互式会话
- 第 12 章:组件库与设计系统
- 第 13 章:Hooks 层业务逻辑桥梁
- 第 14 章:上下文构建与系统提示
- 第 15 章:MCP 协议集成
- 第 16 章:子 Agent 与多 Agent 协作
- 第 17 章:Skills 与插件系统
- 第 18 章:服务层 API 分析与 LSP
- 第 19 章:配置系统与 Hooks 机制
- 第 20 章:周边功能与工具集
English Chapters
- Chapter 01: Project Overview and Architecture
- Chapter 02: Startup and Bootstrap
- Chapter 03: Core Type System
- Chapter 04: State Management
- Chapter 05: The Agentic Loop
- Chapter 06: Tool System Deep Dive
- Chapter 07: Permission and Security Model
- Chapter 08: Command System
- Chapter 09: QueryEngine and SDK Interface
- Chapter 10: Custom Terminal UI Framework
- Chapter 11: REPL and Interactive Session
- Chapter 12: Component Library and Design System
- Chapter 13: Hooks Layer Business Logic Bridge
- Chapter 14: Context Construction and System Prompt
- Chapter 15: MCP Protocol Integration
- Chapter 16: Sub-Agent and Multi-Agent Coordination
- Chapter 17: Skills and Plugin System
- Chapter 18: Services Layer API Analytics and LSP
- Chapter 19: Settings Configuration and Hooks
- Chapter 20: Peripheral Features and Utilities
阅读建议
先读第 1 到第 4 章,把系统骨架、启动路径和类型体系过一遍;然后再进入第 5 到第 9 章理解 Claude Code 真正"跑起来"的机制。这样读到工具系统、权限模型和 QueryEngine 时,会更容易把局部代码放回整体里理解。第 10 章起进入 UI、会话、Hooks、MCP 等扩展机制,读完前九章再来会顺畅很多。