AI Agent Book is an open educational repository for Understanding AI Agents: Design Principles and Engineering Practice. It explains agents through the formula of a language model combined with context and tools. Ten chapters move from core concepts to context engineering, memory, RAG, knowledge graphs, MCP tools, and coding agents. Later material covers evaluation, supervised fine-tuning, reinforcement learning, self-improvement, multimodal interaction, robotics, and multi-agent cooperation. The repository includes 88 companion experiments, with more than 70 designed to run independently. Readers can access the source chapters, generated figures, code, and downloadable PDF or EPUB editions. Community translations provide versions in several languages alongside the original Chinese text.
Features
- Ten progressive AI agent chapters
- More than 70 runnable experiments
- Context engineering and agent memory
- MCP tools and coding agents
- Evaluation and post-training workflows
- Multilingual PDF and EPUB editions