This repository holds the open-source book AI Agents in Depth: Design Principles and Engineering Practice by Li Bojie, along with its full text, compiled PDF/EPUB editions, and 94 companion code experiments organized by chapter. It's aimed at engineers and researchers who want to understand how AI agents actually work under the hood, not just how to call an agent framework's API. The book frames agents around a simple formula: Agent = LLM + context + tools, and builds out ten chapters from that base, ending in production-grade topics like evaluation, post-training, and multi-agent coordination.
The content is written in Chinese, with community translations into English, Arabic, Traditional Chinese (Taiwan), Russian, Tamil, Vietnamese, Japanese, Turkish, and Korean, though translations may lag behind the original. Each chapter links to runnable code, reproduction tracks, or design sketches, so readers can pair concept with implementation instead of just reading theory.
book-<lang>/ directory.This repo fits people studying agent architecture who want a structured, code-backed curriculum: engineers building coding agents, RAG pipelines, or MCP-based tool integrations; researchers evaluating agent benchmarks (GAIA, SWE-bench, OSWorld); and teams designing multi-agent systems who want reference implementations rather than blog-post summaries. It's also useful as a syllabus for a study group, since chapters map to concrete, gradable experiments.
It's not a good fit if you're looking for a ready-made agent framework or SDK to drop into production. The code here is instructional and experiment-scoped, not a maintained library with stable APIs. Some chapters (7, 9, 10) depend on external repos pinned to specific commits, hardware (robots), or paid API keys, so a fully offline, zero-dependency read-through of every experiment isn't realistic. If your goal is just