Open Source
Open Source

ai-agent-book: Open-Source Systematic AI Agent Learning (10 Chapters, 95 Experiments, 13 Languages, 33K Stars)

bojieli/ai-agent-book (33,213 stars, Python, Apache-2.0, created 2025-09-09, pushing today, GitHub Trending) is the open-source repo for the in-depth AI Agent book by Li Bojie: Design Principles and Engineering Practice. Agent = LLM + context + tools; 10 chapters from principles to engineering plus 95 hands-on experiments (local + external repro) plus 13 languages; PDF/EPUB free. The top pick for developers who want to learn AI Agent systematically; the moat is systematic depth plus experiments plus multilingual plus open and free.

Published August 6, 20268 min read
<!-- ai-agent-book-resource | open-source | ai-agent-book: An Open-Source Systematic AI Agent Learning Resource (10 Chapters, 95 Experiments, 13 Languages) -->

AI Agent has blown up this year, but anyone trying to learn it systematically hits an awkward gap: what is available is either scattered vendor-blog tutorials or theoretical paper frameworks. The middle layer, something that runs all the way from principles to engineering practice and lets you run things by hand, has been missing. Through the second half of 2025 the Agent framework war mostly settled, and components like tooling, memory, and evaluation each found de facto standards, but the one book a developer could pick up, read end-to-end, and know how to build afterward had still not been written. bojieli/ai-agent-book fills that gap: an open-source AI Agent book, 10 chapters of main text with 95 experiments, free downloads in 13 languages, still pushing today.

What It Is

ai-agent-book (github.com/bojieli/ai-agent-book) is an open-source project by Li Bojie, corresponding to the book "In-Depth Understanding of AI Agent: Design Principles and Engineering Practice". It has 33,213 GitHub stars, 3,565 forks, primary language Python, Apache-2.0 license, created on 2025-09-09, with its latest push today (2026-08-06). It has been a GitHub Trending Project of the Day and currently sits at #2 on the OpenGithubs weekly rank.

The whole book is built around one core formula: Agent = LLM + Context + Tools. The line looks simple, but the author breaks it into 10 progressively deeper chapters, starting from the judgment that "Harness engineering is the real competitiveness" and walking through context, memory, tools, coding agents, evaluation, post-training, continuous evolution, multimodality, and multi-agent collaboration. What separates it from scattered tutorials is "book-level coherence": a complete narrative line, each chapter backed by runnable experiments, not a slide deck mashup.

Core Capabilities

Three pillars: 10 chapters of main text, 95 companion experiments, and 13 languages. The chapter skeleton (per-chapter project counts come from the repo README):

ChTopicOne-line coreProjects
1Agent fundamentalsAgent = LLM + Context + Tools; Harness engineering is the real competitiveness4
2Context engineeringContext sets the capability ceiling: KV Cache, prompt engineering, Agent Skills, context compression9
3User memory and knowledge basesRemember users across sessions, plug in external knowledge: user memory, RAG, structured indexing, knowledge graphs13
4ToolsTools are the agent's hands: MCP protocol, perception/action/collaboration tool types, event-driven async agents, proactive tool discovery7
5Coding agents and code generationCode is "a tool that can create new tools"; a production-grade coding agent landscape12
6Agent evaluationTurn performance into comparable signals: eval environments, metrics, statistical significance, eval-driven selection12
7Model post-trainingPretraining / SFT / RL in three stages: when to choose SFT, when to choose RL, tool-call internalization, sample efficiency16
8Continuous evolution of agentsExtract learning signals from trajectories, update knowledge, instructions, programs, and parameters9
9Multimodality and real-time interactionExtend from text to voice, GUI, the physical world: three voice paradigms, Computer Use, robotics10
10Multi-agent collaborationCollective intelligence above the individual: collaboration frameworks, context sharing/isolation, an emergent "agent society"8

The 95 experiments run on two tracks: local projects (built into the repo, installable via uv sync) and external reproduction tracks (22 external repos + 1 helper cookbook mapped to chapters 6, 7, 9, and 10, which you clone into the corresponding directories yourself). Each experiment carries one of three status marks: ✅ runnable (config the environment and it produces the expected result), 📖 reproduction (reproduces a published paper or project result), and 🚧 design (gives the design idea and code skeleton, not yet fully implemented), so you can see at a glance how far it can go. Execution status, evidence, and unfinished gates are tracked separately in docs/EXPERIMENT_STATUS.md; cloning the repo does not mean the experiments are done, the README is explicit about this.

The 13 languages: Chinese (original), English, Spanish, Indonesian, Arabic, Traditional Chinese (Taiwan), Russian, Tamil, Vietnamese, Japanese, Turkish, Korean, Hungarian. Everything except the Chinese original is a community translation.

How to Use

Three paths, ordered by barrier to entry:

  1. Download PDF / EPUB directly (least hassle). The repo Release always points to the latest build on the main branch; both the Chinese original and the 12 community translations have PDF + EPUB, open-source and free. Fixed versions live on the Releases page.
  2. Read online: bojieli.github.io/ai-agent-book supports multilingual switching, chapter folding, full-text search, and direct links to companion experiments, automatically rebuilt after every push to main.
  3. Compile it yourself: to edit content or produce a local PDF, install pandoc, xelatex, the ElegantBook document class, and the relevant fonts, then run bash build_pdf.sh inside book/. Source lives in book/introduction.md, book/chapter1.md through chapter10.md, and book/afterword.md; figures in book/images/; layout details in preamble.tex and *.lua.

To run experiments: Python 3.10+ is required, uv is recommended (uv sync --locked --extra ch1, swapping ch1 for ch2 through ch10 to install a given chapter), and pip works too (python -m pip install -e ".[ch1]"). Experiments that call models need you to configure an API key (copy .env.example to .env and fill in at least one provider key; some experiments want a .env in their own directory or an exported env var).

Pitfalls

  1. Community translations lag the Chinese original. The README states explicitly that the 12 non-Chinese editions (English, Spanish, Indonesian, Arabic, Traditional Chinese, Russian, Tamil, Vietnamese, Japanese, Turkish, Korean, Hungarian) are community contributions and "may lag behind the Chinese original." For the latest content, read Chinese; treat the others as backups.
  2. The build environment has a threshold. The pandoc + xelatex + ElegantBook + Chinese-fonts combo can stall someone who has never touched LaTeX for half a day. If you only want to read, do not compile; just download the PDF.
  3. External reproduction tracks depend on third-party environments. The 22 external repos (AndroidWorld, GAIA, OSWorld, SWE-bench, tau2-bench, terminal-bench, MiniMind, verl, SandboxFusion, claude-quickstarts, and others) are not built-in dependencies; you have to clone them into the right directories yourself, and some training projects also pull models, datasets, and simulators per their own READMEs. The hardware bar is not low.
  4. Python version fragmentation. The baseline is 3.10+, but some browser and memory experiments need 3.11+, and some built-in third-party components in chapter 8 need 3.12+. A single environment will not run every experiment; you have to configure per chapter.
  5. Experiments ≠ completed. EXPERIMENT_STATUS.md tracks execution status separately; pinned source only establishes a reproduction starting point and does not mean training, hardware, browser, or multi-agent experiments have been run. Do not assume cloning is the finish line.

Take

ai-agent-book hits a genuine void: AI Agent has lacked a book you can read end-to-end and also run by hand. Its moat is not any single chapter being deep, but the four-pack of "systematic main text + runnable experiments + multilingual + open-source free": 10 chapters complete the narrative from principles to engineering, 95 experiments let readers touch instead of just read, 13 languages push the barrier down globally, and Apache-2.0 plus free PDF downloads let it spread. The line in chapter 1, "Harness engineering is the real competitiveness," is the eye of the book; the author is not teaching how to use some framework but laying out the full landscape of agent engineering.

It fits two crowds: developers who want to learn AI Agent systematically and are not satisfied with scattered tutorials, and researchers working on agents who need a reproducible starting point for experiments. The barrier is that you need a Python environment, willingness to configure API keys, and, if you actually want to run the chapter 7 training experiments, GPUs. Against vendor docs, its edge is that it is not tied to one framework and is not selling anything: chapter 4 on tools does not just push the author's own MCP implementation, and chapter 6 on evaluation lines up the mainstream benchmarks side by side. Against papers, its edge is that every chapter lands in a runnable experiment instead of stopping at concepts. If you only want a popular-science intro to agents, this book is a bit hard; but if the one you want is "can land, can reproduce, can ask why," 33,213 stars and today's push say it is the one.


References

This article is AI-assisted and human-edited. Last updated: 2026-08-06

Related

Open Source

Context Mode: Taming the Coding-Agent Context Window

mksglu/context-mode (23,324 stars, TypeScript, Elastic License 2.0, created 2026-02-23, last push 2026-09-16, per the 2026-09-18 GitHub API) positions itself as "context window optimization for AI coding agents": an MCP-layer sandbox intercepts and compacts context, backed by a SQLite/FTS5 knowledge base and session-continuity design across 17 clients. The core claim: it hits three real pains, bloated long sessions, diluted key instructions, and token cost that grows with length. But be honest about the license: ELv2 is not OSI-approved open source and carries two red lines, no offering it as a hosted service and no removing the license notice, fine for personal use but a legal review before corporate adoption.

Sep 18, 20268 min read
Open Source

herdr Deep Dive: The Runtime Layer Your Coding Agents Live On

herdrdev/herdr (39,133 stars, Rust, Apache-2.0, created 2026-03-27, ranked No.8 on the OpenGithubs 20260914 weekly with 2,458 stars added) positions itself as "the runtime your coding agents live on": work detaches but keeps running, multiple machines share one window, every pane is marked working, blocked or idle, agents drive it through the CLI and socket API, and it ships as one Rust binary with no Electron. The core claim: it claims the seat tmux would occupy in the AI era, and the agent-native socket API is what separates it from a tmux wrapper. But the project is under half a year old with unsettled APIs and storage formats, so manage your dev machine and experimental agents first, not your production-critical path.

Sep 17, 20268 min read
Open Source

VoiceStudio: the local-first open-source voice studio

The GitHub repo debpalash/VoiceStudio gained +5104 stars in a single week (week of 2026-09-07) to about 24.6k total, topping that week's momentum charts as a local-first voice project (AGPL-3.0, Python, active on 2026-09-11). Its positioning fits one line: an open-source, fully local ElevenLabs alternative - voice cloning, voice design, video dubbing, dictation, transcription, audiobook creation, covering about 646 languages, with the local workflow needing no account, API key, subscription, or usage meter. The underrated design is that it is not one voice model but an engine-orchestration layer integrating 16 TTS and 11 ASR engines, hot-swappable; it runs across macOS/Windows/Linux/Docker and ships an OpenAI-compatible local speech API plus an MCP server. This piece maps the capability surface, the local-first privacy/cost divide, and the division of labor with the same-week cloud real-time GPT-Live-1 (VoiceStudio leans to batch dubbing/transcription, not real-time conversation), then names five real constraints: AGPL-3.0 commercial caveats, beta stability, the ongoing Electron rewrite, uneven engine quality, and not every engine being local or free.

Sep 13, 202610 min read