Hysen Labs
Open-source project
bojieli/ai-agent-book avatar
bojieli

ai-agent-book

《深入理解 AI Agent:设计原理与工程实践》(李博杰 著)开源主仓库:全书正文、编译版 PDF 与按章配套代码

37,638 stars4,137 forksPythonApache-2.0
01
DEEP OPEN-SOURCE ANALYSIS

AI Agent Book: 10 chapters, 95 experiments, 13 languages

An open source book that walks from Agent = LLM + context + tools to production engineering, with the full text and companion experiments published openly.

02
DEEP OPEN-SOURCE ANALYSIS

The core formula

The book hangs on one equation: Agent = LLM + context + tools. Around that formula it builds ten chapters that move from design principles to engineering practice. The entire text, the figures, and 95 companion experiments are open source, so the material can be run rather than just read. Chinese is the original language, and the README lists a dozen more language versions, most of them community translations.

03
DEEP OPEN-SOURCE ANALYSIS

Chapter and experiment layout

The ten chapters run from basics up to production concerns. The 95 experiments split between local projects and external reproduction tracks, with each chapter pointing at its own code. A quick view of the first and tenth chapters gives a flavor of the range, and a study guide covers learning paths, difficulty levels, and practice advice. Running the experiments means configuring provider keys first; some experiments support local Ollama only when the experiment README or CLI explicitly says so.

04
DEEP OPEN-SOURCE ANALYSIS

Reading formats

The ebook is available for offline download as PDF and EPUB, always built from the latest main branch. Chinese is the original; the other language editions are community translations that may lag behind it. Online reading supports multi language switching, chapter folding, full text search, and direct links to the companion experiments, and the online build rebuilds automatically after pushes to main. Building the compiled version yourself requires pandoc, xelatex, the ElegantBook document class, and the related fonts.

05
DEEP OPEN-SOURCE ANALYSIS

Source layout and contribution

The Chinese text source lives in a book directory. English, Spanish, Indonesian, and the other translations sit in their own directories, which is why they can fall behind the original. Chapter files run from the introduction through chapter 10 and an afterword. The contribution section lists book content improvements, code and bug fixes, new practice projects, diagram improvements, and new translations as the main ways in.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository is a rare thing: a book with its entire text, figures, and experiments published openly. Anyone can read it in the browser, download it, or rebuild it from source.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes