How lintsinghua/claude-code-book works
This repository is primarily a bilingual technical book that guides readers from Agent Harness fundamentals through core systems and advanced patterns toward building a harness. Its chapters describe Claude Code architecture; they are explanatory material, not an implementation of that runtime. The separately implemented Star History utility fetches GitHub star data and generates chart assets. The graph follows the book’s stated reading/building workflow; it does not infer connections among unsampled chapter internals.
Main entry points: 第一部分-基础篇 Harness foundations · 第四部分-工程实践篇 Engineering practice · 15-构建你自己的Agent-Harness.md Build a harness · star_history.py Star history generator
Components 23
Book and learning path
- Harness foundations
第一部分-基础篇 - Dialog loop
第一部分-基础篇/02-对话循环-Agent的心跳.md - Tool system
第一部分-基础篇/03-工具系统-Agent的双手.md - Permission pipeline
第一部分-基础篇/04-权限管线-Agent的护栏.md - Core systems
第二部分-核心系统篇 - Settings and config
第二部分-核心系统篇/05-设置与配置-Agent的基因.md - Long-term memory
第二部分-核心系统篇/06-记忆系统-Agent的长期记忆.md - Context management
第二部分-核心系统篇/07-上下文管理-Agent的工作记忆.md - Lifecycle hooks
第二部分-核心系统篇/08-钩子系统-Agent的生命周期扩展点.md - Composition and extensions
第三部分-高级模式篇 - Sub-agents
第三部分-高级模式篇/09-子智能体与Fork模式.md - Multi-agent coordination
第三部分-高级模式篇/10-协调器模式-多智能体编排.md - Skills and plugins
第三部分-高级模式篇/11-技能系统与插件架构.md - MCP integration
第三部分-高级模式篇/12-MCP集成与外部协议.md - Engineering practice
第四部分-工程实践篇 - Streaming and performance
第四部分-工程实践篇/13-流式架构与性能优化.md - Plan workflows
第四部分-工程实践篇/14-Plan模式与结构化工作流.md - Build a harness
第四部分-工程实践篇/15-构建你自己的Agent-Harness.md - Reference appendices
附录
Star History feature
- Star history generator
scripts/star_history.py - Star chart assets
docs/images
Other components
- Reader
- GitHub API
Connections 12
- Reader → Harness foundations: starts reading
README.md - Reader → Core systems: consults as needed
README.md - Reader → Composition and extensions: consults as needed
README.md - Reader → Engineering practice: reads practice
README.md - Reader → Reference appendices: looks up
README.md - Harness foundations → Dialog loop: introduces
README.md - Harness foundations → Tool system: introduces
README.md - Harness foundations → Permission pipeline: introduces
README.md - Engineering practice → Build a harness: guides building
README.md - Reader → Build a harness: builds
README.md - Star history generator → GitHub API: fetches star data
scripts/star_history.py - Reader → Star chart assets: views chart
README.md