claude-code-book
《御舆:解码 Agent Harness》42万字拆解 AI Agent 的Harness骨架与神经 —— Claude Code 架构深度剖析,15 章从对话循环到构建你自己的 Agent Harness。在线阅读网站:
What is claude-code-book?
《御舆:解码 Agent Harness》42万字拆解 AI Agent 的Harness骨架与神经 —— Claude Code 架构深度剖析,15 章从对话循环到构建你自己的 Agent Harness。在线阅读网站:
Overview of claude-code-book
What it is
This book, titled 御舆:解码 Agent Harness (Yù Yú: Decoding Agent Harness), is a 420,000-character technical analysis of the Claude Code architecture. It consists of 15 chapters and 4 appendices, covering how an Agent runtime works together. Part 1 (Basics) covers the new paradigm of agent programming, the conversation loop, tool system, and permission pipeline. Part 2 (Core Systems) dives into settings, memory, context management, and hooks. Part 3 (Advanced Patterns) explores sub-agents, coordinator patterns, skills, and MCP integration. Part 4 (Engineering Practice) covers streaming, plan mode, and building your own Agent Harness. The book is an independent technical analysis work, not an official publication from Anthropic.
Key features
- 15 chapters organized into 4 parts: Basics, Core Systems, Advanced Patterns, and Engineering Practice.
- 4 appendices providing quick references: architecture navigation map, complete tool list, feature flags table, and bilingual glossary.
- Includes architecture diagrams, design trade-offs, and hands-on exercises to build your own Agent Harness.
- Covers 50+ tools across 12 categories, 89 feature flags, and 100 bilingual terms.
- Written in Chinese, with a focus on the Claude Code architecture.
Use cases
- Developers who want to understand the internal architecture of Claude Code.
- Engineers building or extending their own Agent Harness.
- Readers interested in AI agent runtime design, including conversation loops, tool systems, permission pipelines, memory, context management, hooks, sub-agents, coordinator patterns, skills, MCP integration, streaming, and plan modes.
Getting started
See the repository README for reading instructions. The book is available for online reading at the project's homepage.
License and pricing
The text of this book is licensed under CC BY-NC-SA 4.0 (Attribution-NonCommercial-ShareAlike). Third-party materials retain their own rights and license conditions. The project is open source.
Based on the project's public README and repository metadata.