---
title: "ai-agent-book"
type: "tool"
slug: "bojieli-ai-agent-book"
canonical_url: "https://www.graphcanon.com/tools/bojieli-ai-agent-book"
github_url: "https://github.com/bojieli/ai-agent-book"
homepage_url: null
stars: 48441
forks: 5415
primary_language: "Python"
license: "Apache-2.0"
archived: false
categories: ["ai-agents"]
tags: ["agent", "agent-memory", "ai-agent", "coding-agent", "context-engineering", "large-language-models", "llm", "mcp"]
updated_at: "2026-09-20T04:32:20.870993+00:00"
---

# ai-agent-book

> A book on AI Agent design principles and engineering practices, including 109 accompanying experiments.

This repository contains the full text, compiled PDF, and chapter-specific code for the book 'Deep Understanding of AI Agents: Design Principles and Engineering Practices'. It covers AI Agent design from theory to practical implementation, with a focus on the formula Agent = LLM + Context + Tools.

## Facts

- Repository: https://github.com/bojieli/ai-agent-book
- Stars: 48,441 · Forks: 5,415 · Open issues: 37 · Watchers: 182
- Primary language: Python
- License: Apache-2.0
- Last pushed: 2026-09-18T03:02:27+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Very active (computed 2026-09-18T08:38:49.981Z)
- Security scan: Findings present (0 critical, 0 high, 0 medium, 2 low) · last scan 2026-09-18T08:38:51.638Z
- Full report: [trust report](/tools/bojieli-ai-agent-book/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/bojieli-ai-agent-book/trust)

## Categories

- [AI Agents](/categories/ai-agents.md)

## Tags

agent, agent-memory, ai-agent, coding-agent, context-engineering, large-language-models, llm, mcp

## Curated graph edges

_Decision-grade typed relationships from ingest/enrich. Prefer these over category neighbours below._

- [End-to-End-Agentic-Ai-Automation-Lab](/tools/mdalamin5-end-to-end-agentic-ai-automation-lab.md) - Hands-on projects and code examples for multi-agent systems (★ 97) _(→ related)_ Both repositories offer hands-on projects and code examples for multi-agent systems, though 'ai-agent-book' includes a detailed book and more theoretical background.
- [agents-towards-production](/tools/nirdiamant-agents-towards-production.md) - End-to-end, code-first tutorials for building production-grade GenAI agents (★ 21,298) _(→ related)_ Both repositories aim to provide practical guidance on building production-grade AI agents, though 'ai-agent-book' is more comprehensive and includes a book.
- [awesome-agentic-ai-zh](/tools/wenyuchiou-awesome-agentic-ai-zh.md) - A trilingual learning roadmap for agentic AI (★ 7,100) _(→ related)_ Both repositories provide learning resources for agentic AI, with 'ai-agent-book' focusing on a detailed book and 'awesome-agentic-ai-zh' offering a curated list of resources.
- [llm-books](/tools/morsoli-llm-books.md) - Notes on practical application development using LLM (★ 766) _(→ related)_ Both repositories are focused on sharing knowledge and practical insights about LLM-based applications, though 'ai-agent-book' is more specific to AI agents.

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [learn-claude-code](/tools/shareai-lab-learn-claude-code.md) - A nano claude code-like agent harness built from scratch (★ 77,100) [Active]
- [ai-agents-for-beginners](/tools/microsoft-ai-agents-for-beginners.md) - 12 Lessons to Get Started Building AI Agents (★ 75,177) [Very active]
- [500-AI-Agents-Projects](/tools/ashishpatel26-500-ai-agents-projects.md) - A curated collection of AI agent use cases across various industries. (★ 37,872) [Steady]
- [agentscope](/tools/agentscope-ai-agentscope.md) - Build and run agents you can see, understand and trust. (★ 31,912) [Very active]
- [GenAI_Agents](/tools/nirdiamant-genai-agents.md) - 50+ tutorials and implementations for Generative AI Agent techniques (★ 23,814) [Steady]
- [agents-towards-production](/tools/nirdiamant-agents-towards-production.md) - End-to-end, code-first tutorials for building production-grade GenAI agents (★ 21,298) [Steady]

_+ 2 more not listed._

## Adoption goal

ai-agent-book is a comprehensive resource on AI Agent design principles and engineering practices, featuring 109 experiments and available in 15 languages.

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

```text
# 深入理解 AI Agent：设计原理与工程实践

    


**中文** ← 当前 · [English](docs/en/README.md) · [Español](docs/es/README.md) · [Bahasa Indonesia](docs/id/README.md) · [العربية](docs/ar/README.md) · [繁體中文（台灣）](docs/zh-TW/README.md) · [Русский](docs/ru/README.md) · [Tiếng Việt](docs/vi/README.md) · [தமிழ்](docs/ta/README.md) · [日本語](docs/ja/README.md) · [Türkçe](docs/tr/README.md) · [한국어](docs/ko/README.md) · [Magyar](docs/hu/README.md) · [עברית](README.he.md) · [Português (Brasil)](README.ptbr.md)

> 📥 **[下载 PDF / EPUB](#-电子书)**（推荐）— 推荐使用 PDF / EPUB 离线阅读，排版最佳；也可[在线阅读](https://bojieli.github.io/ai-agent-book/astro/)（支持多语言切换、章节折叠、高亮与笔记，每次推送自动更新）。

**Agent = LLM + 上下文 + 工具**——本书围绕这个核心公式，用 10 章把 AI Agent 从原理讲到工程实战。全书正文、配图、**109 个配套实验**全部开源，欢迎亲手把实验跑一遍。

> 📚 **姊妹篇《深入理解 AI Infra：量化分析与系统设计》已开源发布**，欢迎阅读：[github.com/bojieli/ai-infra-book](https://github.com/bojieli/ai-infra-book)
>
> 要开发好基于模型的应用，还需要理解这类应用赖以运行的基础设施。姊妹篇讨论的就是支撑模型训练与推理的 AI Infra：参数和上下文状态存在哪里，计算怎样执行，多个加速器怎样协作。

> 📢 **2.0 版变更（相较 1.4 版）**：本仓库书稿版本已由 1.4 升级为 2.0。2.0 版将原第四章中的“异步交互”部分与原第九章中关于“多模态 Agent”的内容合并，重组为新的第六章“交互：观察与动作空间的扩展”。原第六章“Agent 的评估”、第七章“模型后训练”和第八章“Agent 的持续进化”依次后移一章，现分别为第七、八、九章。
>
> 如果你看到的是旧版 PDF，建议[下载最新版 PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-zh-CN.pdf)。新版还包含许多内容修正与调整，请以最新版为准。

| 📚 **10 章** 正文，从基础到生产 | 📂 **109 个** 配套实验（含本地项目与外部复现轨道） | 🌐 **15 种** 语言：中 / 英 / 西 / 印尼 / 阿 / 繁體中文（台灣） / 俄 / 泰米尔 / 越 / 日 / 土耳其 / 韩 / 匈牙利 / 希伯来 / 葡萄牙语（巴西） |
| :---: | :---: | :---: |

## 📖 电子书

> 📥 **离线下载**（推荐，全书正文，开源免费）。以下链接始终指向 main 分支的最新构建；固定版本见 [Releases](https://github.com/bojieli/ai-agent-book/releases)：
> - **中文（原版）**：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-zh-CN.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-zh-CN.epub)
> - **英文**（社区翻译，by [@nsdevaraj](https://github.com/nsdevaraj)、[@whanyu1212](https://github.com/whanyu1212)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-en.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-en.epub)
> - **西班牙语**（社区翻译，by [@santhreal](https://github.com/santhreal)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-es.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-es.epub)
> - **印度尼西亚语**（社区翻译，by [@jojixyz666](https://github.com/jojixyz666)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-id.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-id.epub)
> - **繁體中文（台灣）**（社区翻译，by [@tigercosmos](https://github.com/tigercosmos)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-zh-TW.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-zh-TW.epub)
> - **俄语**（社区翻译，by [@ui99ru](https://github.com/ui99ru)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-ru.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-ru.epub)
> - **泰米尔语**（社区翻译，by [@nsdevaraj](https://github.com/nsdevaraj)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-ta.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-ta.epub)
> - **越南语**（社区翻译，by [@toanalien](https://github.com/toanalien)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-vi.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-vi.epub)
> - **日语**（社区翻译，by [@eltociear](https://github.com/eltociear)）：[PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-ja.pdf) · [EPUB](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agent
```

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/bojieli-ai-agent-book`](/api/graphcanon/tools/bojieli-ai-agent-book)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
