bojieli/ai-agent-bookPublic

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

AI summary: Educational repository covering theoretical and practical design of autonomous AI agents.

Stars
60.4K
+408 today
Forks
7.1K
Watchers
224
Open issues
1
Open PRs
5
Contributors
~125
Commits
1.9K
Branches
349
Views (30d)
5

PythonApache-2.0Created Sep 9, 2025Last push 3d agoLatest release v3.1+1.4K stars this week+3.7K this month

Quick answers

What is ai-agent-book?
Educational repository covering theoretical and practical design of autonomous AI agents.
What does ai-agent-book do?
AI Agent Book serves as an in-depth educational resource dedicated entirely to the emerging field of autonomous artificial intelligence agents. It systematically covers the theoretical foundations of agentic behavior, including planning, memory, and tool use, before transitioning into practical implementation guides. The repository contains the source material for the book, alongside executable code examples demonstrating how to build agents. It explores various architectures, from simple reactive agents to complex multi-agent systems that collaborate to solve intricate tasks. By providing both the conceptual framework and the code, it accelerates the transition from basic LLM usage to developing capable autonomous systems.
Who is ai-agent-book for?
AI developers, researchers, and students looking for a structured, deeply technical guide to building autonomous agent systems. Serves as a foundational resource for architects designing robust autonomous systems capable of complex reasoning.
How do I get started with ai-agent-book?
git clone https://github.com/bojieli/ai-agent-book.git
How popular is ai-agent-book on GitHub?
bojieli/ai-agent-book has 60,426 stars and 7,093 forks on GitHub, and gained 1,398 stars in the last 7 days.
What license does ai-agent-book use?
bojieli/ai-agent-book is released under the Apache-2.0 license.

Star history

since Jul 27, 2026
020K40K60KJul 2026Sep 2026Oct 2026Nov 2026
60.4K stars as of Nov 30, 2026. Measured daily since Jul 27, 2026; GitHub no longer exposes earlier star timestamps.

Update history

1 recorded
  • Nov 26, 2026New release v3.1 (previously latest).

Contribution activity

commits per day, last 52 weeks
NovDecJanFebMarAprMayJunJulAugSepOctNovMonWedFri2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 1 commit2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 0 commits2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 0 commits2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 0 commits2026-03-31: 0 commits2026-04-01: 0 commits2026-04-02: 0 commits2026-04-03: 0 commits2026-04-04: 0 commits2026-04-05: 0 commits2026-04-06: 0 commits2026-04-07: 0 commits2026-04-08: 0 commits2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 0 commits2026-04-12: 0 commits2026-04-13: 0 commits2026-04-14: 0 commits2026-04-15: 0 commits2026-04-16: 0 commits2026-04-17: 0 commits2026-04-18: 0 commits2026-04-19: 0 commits2026-04-20: 0 commits2026-04-21: 0 commits2026-04-22: 0 commits2026-04-23: 0 commits2026-04-24: 0 commits2026-04-25: 0 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 0 commits2026-04-30: 0 commits2026-05-01: 0 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 0 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 0 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 0 commits2026-05-11: 0 commits2026-05-12: 0 commits2026-05-13: 0 commits2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 0 commits2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 0 commits2026-05-25: 0 commits2026-05-26: 0 commits2026-05-27: 0 commits2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 0 commits2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 0 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 0 commits2026-06-09: 0 commits2026-06-10: 0 commits2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 0 commits2026-06-17: 0 commits2026-06-18: 0 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 0 commits2026-06-22: 0 commits2026-06-23: 0 commits2026-06-24: 0 commits2026-06-25: 0 commits2026-06-26: 0 commits2026-06-27: 0 commits2026-06-28: 0 commits2026-06-29: 0 commits2026-06-30: 0 commits2026-07-01: 0 commits2026-07-02: 0 commits2026-07-03: 0 commits2026-07-04: 0 commits2026-07-05: 0 commits2026-07-06: 0 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 0 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 0 commits2026-07-15: 14 commits2026-07-16: 1 commit2026-07-17: 42 commits2026-07-18: 72 commits2026-07-19: 18 commits2026-07-20: 41 commits2026-07-21: 101 commits2026-07-22: 101 commits2026-07-23: 57 commits2026-07-24: 28 commits2026-07-25: 40 commits2026-07-26: 28 commits2026-07-27: 23 commits2026-07-28: 44 commits2026-07-29: 33 commits2026-07-30: 66 commits2026-07-31: 68 commits2026-08-01: 18 commits2026-08-02: 17 commits2026-08-03: 19 commits2026-08-04: 14 commits2026-08-05: 13 commits2026-08-06: 12 commits2026-08-07: 15 commits2026-08-08: 17 commits2026-08-09: 14 commits2026-08-10: 7 commits2026-08-11: 7 commits2026-08-12: 6 commits2026-08-13: 7 commits2026-08-14: 17 commits2026-08-15: 10 commits2026-08-16: 31 commits2026-08-17: 6 commits2026-08-18: 13 commits2026-08-19: 8 commits2026-08-20: 4 commits2026-08-21: 17 commits2026-08-22: 7 commits2026-08-23: 1 commit2026-08-24: 4 commits2026-08-25: 22 commits2026-08-26: 24 commits2026-08-27: 3 commits2026-08-28: 4 commits2026-08-29: 1 commit2026-08-30: 1 commit2026-08-31: 4 commits2026-09-01: 1 commit2026-09-02: 6 commits2026-09-03: 9 commits2026-09-04: 5 commits2026-09-05: 2 commits2026-09-06: 3 commits2026-09-07: 2 commits2026-09-08: 1 commit2026-09-09: 2 commits2026-09-10: 2 commits2026-09-11: 1 commit2026-09-12: 2 commits2026-09-13: 1 commit2026-09-14: 6 commits2026-09-15: 2 commits2026-09-16: 1 commit2026-09-17: 1 commit2026-09-18: 18 commits2026-09-19: 15 commits2026-09-20: 2 commits2026-09-21: 1 commit2026-09-22: 8 commits2026-09-23: 6 commits2026-09-24: 1 commit2026-09-25: 1 commit2026-09-26: 1 commit2026-09-27: 1 commit2026-09-28: 1 commit2026-09-29: 1 commit2026-09-30: 1 commit2026-10-01: 0 commits2026-10-02: 0 commits2026-10-03: 0 commits2026-10-04: 0 commits2026-10-05: 0 commits2026-10-06: 0 commits2026-10-07: 0 commits2026-10-08: 0 commits2026-10-09: 0 commits2026-10-10: 0 commits2026-10-11: 0 commits2026-10-12: 0 commits2026-10-13: 0 commits2026-10-14: 0 commits2026-10-15: 0 commits2026-10-16: 0 commits2026-10-17: 0 commits2026-10-18: 0 commits2026-10-19: 0 commits2026-10-20: 0 commits2026-10-21: 0 commits2026-10-22: 0 commits2026-10-23: 0 commits2026-10-24: 0 commits2026-10-25: 0 commits2026-10-26: 0 commits2026-10-27: 0 commits2026-10-28: 0 commits2026-10-29: 0 commits2026-10-30: 0 commits2026-10-31: 0 commits2026-11-01: 0 commits2026-11-02: 0 commits2026-11-03: 0 commits2026-11-04: 0 commits2026-11-05: 0 commits2026-11-06: 0 commits2026-11-07: 0 commits2026-11-08: 0 commits2026-11-09: 0 commits2026-11-10: 0 commits2026-11-11: 0 commits2026-11-12: 0 commits2026-11-13: 0 commits2026-11-14: 0 commits2026-11-15: 0 commits2026-11-16: 0 commits2026-11-17: 0 commits2026-11-18: 0 commits2026-11-19: 0 commits2026-11-20: 0 commits2026-11-21: 7 commits2026-11-22: 46 commits2026-11-23: 4 commits2026-11-24: 8 commits2026-11-25: 5 commits2026-11-26: 0 commits2026-11-27: 0 commits2026-11-28: 0 commits
1,295 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Landmark project

    60,426 stars

  • Very active

    1,295 commits in 52 weeks

  • Community-driven

    ~125 contributors

  • Permissive license

    Apache-2.0

  • Continuous integration

    Automated checks passing

  • Repeat trending

    28 trending appearances

What ai-agent-book does

AI Agent Book serves as an in-depth educational resource dedicated entirely to the emerging field of autonomous artificial intelligence agents. It systematically covers the theoretical foundations of agentic behavior, including planning, memory, and tool use, before transitioning into practical implementation guides. The repository contains the source material for the book, alongside executable code examples demonstrating how to build agents. It explores various architectures, from simple reactive agents to complex multi-agent systems that collaborate to solve intricate tasks. By providing both the conceptual framework and the code, it accelerates the transition from basic LLM usage to developing capable autonomous systems.

AI developers, researchers, and students looking for a structured, deeply technical guide to building autonomous agent systems. Serves as a foundational resource for architects designing robust autonomous systems capable of complex reasoning.

  • Theoretical foundations: Explains core concepts such as task decomposition, self-reflection, and long-term memory structures.
  • Implementation guides: Provides detailed tutorials on constructing autonomous agents using Python.
  • Architecture patterns: Details the design patterns for single-agent and complex multi-agent collaborative systems.
  • Tool integration: Demonstrates how to equip agents with external tools like web browsers, code interpreters, and APIs.
  • Executable examples: Includes a companion directory of runnable scripts corresponding directly to concepts discussed in the text.

Where teams use it

Agent development

Design and build a custom autonomous agent capable of researching and summarizing specific academic topics.

System architecture

Architect a multi-agent framework where specialized agents collaborate to write, review, and test software code.

Tool integration

Implement a standardized interface allowing a language model to securely execute local shell commands.

Educational study

Utilize the comprehensive text to understand the current state-of-the-art capabilities and limitations of agentic AI.

Getting started: git clone https://github.com/bojieli/ai-agent-book.git

README

main branch

深入理解 AI Agent:设计原理与工程实践

PDF 在线阅读 Stars License Languages Trending GitHub Project of the Day

中文 ← 当前 · English · Español · Bahasa Indonesia · العربية · 繁體中文(台灣) · Русский · Tiếng Việt · தமிழ் · 日本語 · Türkçe · 한국어 · Magyar · עברית · Português (Brasil) · Монгол

📥 下载 PDF / EPUB(推荐)— 推荐使用 PDF / EPUB 离线阅读,排版最佳;也可在线阅读(支持多语言切换、章节折叠、高亮与笔记,每次推送自动更新)。

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

📚 姊妹篇《深入理解 AI Infra:量化分析与系统设计》已开源发布,欢迎阅读:github.com/bojieli/ai-infra-book

要开发好基于模型的应用,还需要理解这类应用赖以运行的基础设施。姊妹篇讨论的就是支撑模型训练与推理的 AI Infra:参数和上下文状态存在哪里,计算怎样执行,多个加速器怎样协作。

📢 2.0 和 3.0 版变更(相较 1.4 版):本仓库书稿版本已由 1.4 升级为 2.0 和 3.0。2.0 和 3.0 版将原第四章中的“异步交互”部分与原第九章中关于“多模态 Agent”的内容合并,重组为新的第六章“交互:观察与动作空间的扩展”。原第六章“Agent 的评估”、第七章“模型后训练”和第八章“Agent 的持续进化”依次后移一章,现分别为第七、八、九章。

如果你看到的是旧版 PDF,建议下载最新版 PDF。新版还包含许多内容修正与调整,请以最新版为准。

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

📖 电子书

📥 离线下载(推荐,全书正文,开源免费)。以下链接始终指向 main 分支的最新构建;固定版本见 Releases:

🌐 也可在线阅读 — 支持多语言切换、章节折叠、高亮与笔记、配套实验直达,每次 main 分支推送后自动重新构建。

中文正文源码位于 book/;英文/西班牙语/印度尼西亚语/阿拉伯语/繁體中文(台灣)/俄语/泰米尔/越南语/日语/土耳其语/韩语/匈牙利语/希伯来语/葡萄牙语(巴西)/蒙古语版本为社区贡献(可能滞后于中文原版),分别位于 book-en/、book-es/、book-id/、book-ar/、book-zhtw/、book-ru/、book-ta/、book-vi/、book-ja/、book-tr/、book-ko/、book-hu/、book-he/、book-ptbr/、book-mn/。

🔧 想自行编译 PDF / EPUB?(PDF 需 pandoc / xelatex / ElegantBook)
  • EPUB:使用统一的构建脚本,详情请参阅 EPUB 构建说明

  • 正文源码:book/introduction.md(引言)、book/chapter1.md ~ book/chapter10.md(第一至第十章)、book/afterword.md(后记)

  • 编译:安装 pandoc、xelatex、ElegantBook 文档类与相关字体后,运行

    cd book && bash build_pdf.sh

    图表以 SVG 文件存于 book/images/,编译时直接使用;排版细节见 book/preamble.tex 与 book/*.lua。

📑 内容速览(第 1–10 章)

全书围绕核心公式 Agent = LLM + 上下文 + 工具 展开,十章层层递进:

章 主题 一句话核心 正文 实验
1 🚀 AI Agent 入门 Agent = LLM + 上下文 + 工具;Harness 工程才是竞争力 读 4
2 🎯 上下文工程 上下文决定能力上限:KV Cache、提示工程、Agent Skills、上下文压缩 读 10
3 📚 用户记忆和知识库 跨会话记住用户、接入外部知识:用户记忆、RAG、结构化索引、知识图谱 读 12
4 🛠️ 工具 工具是 Agent 的双手:MCP 协议、感知/执行/协作三类工具与主动工具发现 读 5
5 💻 Coding Agent 与通用 Agent 代码是「能创造新工具的工具」,生产级 Coding Agent 全景 读 16
6 🎙️ 交互:观察与动作空间的扩展 从模态与时序两个维度扩展 Agent 的观察与动作空间:异步与事件驱动、语音交互、Computer Use 和机器人操作 读 15
7 🎯 Agent 的评估 把表现变成可比较信号:评估环境、指标、统计显著性、评估驱动选型 读 14
8 🧠 模型后训练 预训练/SFT/RL 三阶段:何时选 SFT、何时选 RL,工具调用内化、样本效率 读 19
9 🔄 Agent 的持续进化 从运行轨迹获得学习信号,更新知识、指令、程序与参数 读 9
10 🤝 多 Agent 协作 群体智能高于个体:协作框架、上下文共享/隔离、涌现的「Agent 社会」 读 6

💡 读 = 在 GitHub 网页直接读章节正文(markdown);N = 该章正文实验数,点击查看实现与复现说明。项目类型说明(✅ 可运行 / 📖 复现 / 🚧 设计)见各章 README。

📚 如何高效阅读本书?详见 学习建议(核心理念、学习路径、难度分级、实践建议)。

💻 运行配套实验

先获取本书源码:

git clone https://github.com/bojieli/ai-agent-book.git
cd ai-agent-book

也可以在仓库页面选择 Code → Download ZIP 下载。实验按章节组织在 chapter1/ 至 chapter10/ 中;查找“实验 X-Y”时,先打开对应的 chapterX/README.md,根据实验编号进入项目,再按项目 README 配置并运行。复现指南所需的外部仓库由相应 README 列出。

项目统一支持 Python 3.11–3.13。请在仓库根目录按章节安装依赖;将 ch1 替换为 ch2 ~ ch10 即可安装对应章节:

# 推荐:使用提交到仓库的 uv.lock,获得可复现的章节环境
uv sync --locked --extra ch1

# 未安装 uv 时:使用 pip 从 pyproject.toml 重新解析
python -m pip install -e ".[ch1]"

运行会调用模型的实验前,请按该实验 README 配置凭据:支持根目录配置的实验可复制 .env.example 为 .env 并填入至少一个提供商 Key;有些实验要求在自身目录放 .env 或直接导出环境变量。只有在实验 README 或 CLI 明确列出 ollama 时,才可启动本地 Ollama 并添加 --provider ollama。

安装后可从仓库根目录运行实验,例如:

uv run python chapter1/context/main.py
# 使用 pip 安装时也可直接运行:python chapter1/context/main.py
  • uv 安装方法见 官方文档;pip 仍受支持,但不会使用锁文件。
  • 各实验现有的 requirements.txt 在迁移期间继续有效,适合只运行单个项目或需要特殊版本约束的情况。
  • all 是不含本地训练栈的 CPU 友好组合,并不代表每个实验;uv sync 每次都会精确同步当前选择,使用特殊 extra 时请合并到同一条命令,例如 uv sync --locked --extra ch2 --extra vllm 或 uv sync --locked --extra ch7 --extra unsloth;pip 对应为 python -m pip install -e ".[ch2,vllm]"。
  • 浏览器、CUDA、FFmpeg、Ollama、Playwright 浏览器及外部仓库等系统依赖,请继续参考各实验 README。第 8 章部分内置第三方组件需要 Python 3.12+。

🔑 API 密钥

建议申请下面几个平台的 API Key 方便学习。模型选型可参考 这篇指南。

平台 链接 特色 访问节点
Kimi(月之暗面) https://platform.moonshot.cn/ Kimi 系列,Coding、Agent 能力强 中国大陆
智谱 GLM https://open.bigmodel.cn/ GLM-5.2 等,Coding、Agent 能力强 中国大陆
Siliconflow https://siliconflow.cn/ 各种开源模型(DeepSeek、Qwen 等),中国大陆访问速度快 中国大陆
DeepSeek https://platform.deepseek.com/ DeepSeek 官方 API 全球 + 中国大陆
API Route https://www.api-route.com/ 通过 OpenAI 兼容接口访问多种模型;使用 --provider api_route 和 API_ROUTE_API_KEY,模型 ID 以当前目录为准 全球
Atlas Cloud https://www.atlascloud.ai/ 通过 OpenAI 兼容接口访问多个厂商的模型 全球
Runcrate https://runcrate.ai/ 通过 OpenAI 兼容接口访问开源权重模型(DeepSeek、Qwen、GLM、Kimi 等) 全球
Opper https://opper.ai/ 欧盟托管的 AI 网关,通过一个 OpenAI 兼容接口访问 50+ 厂商的 700+ 模型 全球
UberLLM https://uberllm.dev/ 一个 Key 通过 OpenAI 兼容接口访问多个厂商的模型(DeepSeek、Qwen、GPT、Claude、Gemini 等),按量预付 全球
Cheaper Inference https://cheaperinference.com/ 通过 OpenAI 兼容接口访问 GPT、Claude、Gemini、DeepSeek、GLM 等模型。 全球
WorldRouter https://www.worldrouter.ai/ 一个 Key 通过 OpenAI 兼容接口访问 Claude、GPT、Gemini、DeepSeek、Kimi、GLM 等模型,按量计费 全球
onomeo https://onomeo.com/ 一个 Key 通过 OpenAI 兼容接口访问 Claude、GPT、Gemini、DeepSeek 等模型,另有免费模型,按量计费 全球
TeamoRouter https://teamorouter.com/ 一个 Key 通过 OpenAI 兼容接口访问 Claude、GPT、Gemini、DeepSeek、GLM、Kimi、Qwen 等模型,按量预付,支持银行卡、微信、支付宝和 USDT 全球
Krill AI www.krill-code.com 一站式访问全球及国内主流模型(OpenAI、Claude、Gemini、Grok、Kimi、GLM、DeepSeek、Qwen、Minimax) 全球 + 中国大陆
OpenRouter https://openrouter.ai/ 一站式访问全球及国内主流模型(GPT、Claude、Gemini、Kimi、GLM、DeepSeek、Qwen 等) 全球

❓ 常见问题

Q:有 PDF / EPUB 吗?需要自己编译吗? 不需要。电子书一节列出了 15 种语言的 PDF / EPUB 下载链接,始终指向 main 分支的最新构建;也可以在线阅读。只有想修改书稿并重新排版时才需要自行编译。

Q:阅读本书需要哪些前置知识? 引言的“前置知识”一节有完整说明:能读懂并修改中等复杂度的 Python 代码;用过 ChatGPT、Claude 等 LLM 产品;熟悉至少一款 AI 辅助编程工具(Claude Code、Codex、Cursor 等);了解命令行、Git、JSON、REST API 等软件工程常识。除第八章后训练外,全书对数学和机器学习的要求很低。

Q:知识点多、读完就忘,怎么消化? 不要只读正文。推荐的方式是结合每章实验自己动手——不是看配套代码,而是读懂书中的设计原则后,借助 coding agent 从头实现一遍,观察输出、排查不符合预期的地方;每章末尾的思考题也是很好的自测。更系统的路径见学习建议。一位读者的总结很贴切:先把书看薄,再把书看厚,再把书看薄。

Q:实验代码需要逐行弄明白吗? 不需要。本书的配套代码全部由 coding agent 根据书稿生成,作者也不会逐行阅读。关键是把架构、核心组件和设计原则想清楚,然后让 AI 去写代码、跑测试、修 bug,人负责最初的设计和最终的验收。

Q:思考题有参考答案吗? 有:book/reference-answers.md(在线版)。它们只是参考,不是标准答案,欢迎在 Discussions 里讨论你的不同看法。

Q:读完之后有什么可以落地的实践项目? 推荐从头做一个像 Claude Code、Codex 那样的 coding agent:第 1–5 章足以做出一个可用的 coding agent;第 7、9 章帮它建立评估集并从失败案例中持续改进;第 8 章介入模型本身;第 6、10 章为它增加语音、Computer Use 等交互方式和多 Agent 协作。评测、观测、可靠性这些工程环节,可以从第 7 章的评估实验入手:先为自己的 agent 建一个十几条任务的小评估集,再围绕失败用例做改进。

Q:哪里提问和讨论?

  • 书稿勘误、实验 bug、翻译问题:开 Issue,请注明章节、小节和原文句子。
  • 阅读疑问、思考题讨论、经验分享、资料推荐:请使用 GitHub Discussions。

Q:发现错误想修改怎么做? 欢迎直接提 PR。中文版 book/ 是正本,其余语言由中文同步:修改正文时只需改中文版并在 PR 里说明,翻译会在合并后统一同步。详见贡献。

💎 赞助商

感谢 Krill AI 赞助本项目!Krill 提供 GPT / Claude / Gemini / 多款国产模型的官方稳定极速 API 中转服务,支持企业级定制、报销开票、7×16h 专属技术支持,更有独家适配的 WebSocket 连接方式,畅享极速首字速度。

Krill 为本书读者提供特别优惠:使用此链接注册并在充值时填写优惠码「ai-agent-book」,首次购买 Codex 套餐可享 77 折优惠!

🧪 配套实验的执行状态、证据与未完成门禁单独记录在 docs/EXPERIMENT_STATUS.md;克隆或安装源码不代表实验完成。

📦 附录 · 外部仓库获取

本附录列出第 6、7、8、10 章与实验直接映射的 22 个外部仓库,另含 1 个辅助训练 cookbook;它们不作为本书源码内置依赖(出于体积与版权),需要自行克隆到对应目录。部分训练项目还会按各自 README 拉取模型、数据集和模拟器依赖,不计入这 22 个直接映射。以下版本来自 2026-07-30 工作区 checkout 或同日只读上游审计;固定源码只建立复现起点,不代表训练、硬件、浏览器或多 Agent 实验已经执行。

一键克隆脚本

🔧 展开克隆命令(共 23 个 checkout:22 个实验映射 + 1 个辅助 cookbook)
# 第 6 章 · GUI 与机器人外部复现轨道
git clone https://github.com/anthropics/claude-quickstarts.git chapter6/claude-quickstarts && git -C chapter6/claude-quickstarts checkout --detach 9bcc95e316e5ef6542b4c9d0469f4078829eead5  # 实验 6-9 使用 computer-use-demo/
git clone https://github.com/browser-use/browser-use.git chapter6/browser-use && git -C chapter6/browser-use checkout --detach ec9277c5001f2cb78ee419c927775a3cfc227ff8  # 实验 6-10
git clone https://github.com/Vector-Wangel/XLeRobot.git chapter6/XLeRobot && git -C chapter6/XLeRobot fetch origin 3d14695e40c9c68229c0aacffca6053c75cd3eb6 && git -C chapter6/XLeRobot checkout --detach 3d14695e40c9c68229c0aacffca6053c75cd3eb6 && test "$(git -C chapter6/XLeRobot rev-parse HEAD)" = "3d14695e40c9c68229c0aacffca6053c75cd3eb6"  # 实验 6-11、6-13 共用
git clone https://github.com/Grigorij-Dudnik/RoboCrew.git chapter6/RoboCrew && git -C chapter6/RoboCrew fetch origin c749148f29bd14e61347f9fc3530c343fff0d994 && git -C chapter6/RoboCrew checkout --detach c749148f29bd14e61347f9fc3530c343fff0d994 && test "$(git -C chapter6/RoboCrew rev-parse HEAD)" = "c749148f29bd14e61347f9fc3530c343fff0d994"  # 实验 6-12、6-13;RoboCrew v0.3.1
git clone https://github.com/StoneT2000/lerobot-sim2real.git chapter6/lerobot-sim2real && git -C chapter6/lerobot-sim2real fetch origin 87d6c1d969f6e0ca4dc5697940804e231118a63a && git -C chapter6/lerobot-sim2real checkout --detach 87d6c1d969f6e0ca4dc5697940804e231118a63a && test "$(git -C chapter6/lerobot-sim2real rev-parse HEAD)" = "87d6c1d969f6e0ca4dc5697940804e231118a63a"  # 实验 6-15

# 第 7 章 · 评测基准
git clone https://github.com/google-research/android_world.git chapter7/android_world && git -C chapter7/android_world checkout --detach 0e95d641e244504c22087cc29b013f3b2428a261
git clone https://huggingface.co/datasets/gaia-benchmark/GAIA chapter7/GAIA && git -C chapter7/GAIA checkout --detach 682dd723ee1e1697e00360edccf2366dc8418dd9
git clone https://github.com/xlang-ai/OSWorld.git chapter7/OSWorld && git -C chapter7/OSWorld checkout --detach 8365edc975efd0477a0d62444a5beed562ab5a7b
git clone https://github.com/SWE-bench/SWE-bench.git chapter7/SWE-bench && git -C chapter7/SWE-bench checkout --detach 5cd4be9fb23971679cbbafe5a0ecade27cef99be
git clone https://github.com/sierra-research/tau2-bench.git chapter7/tau2-bench && git -C chapter7/tau2-bench checkout --detach 8d005b0e5b9e4af0bc055886fa7f95fc86d1710e
git clone https://github.com/laude-institute/terminal-bench.git chapter7/terminal-bench && git -C chapter7/terminal-bench checkout --detach 8384a179b1b8688f6ea5233a4d9d51218df1ac96

# 第 8 章 · 训练框架(bojieli/* 为本书适配的分支)
git clone https://github.com/bojieli/minimind.git chapter8/MiniMind-pretrain/minimind && git -C chapter8/MiniMind-pretrain/minimind fetch origin 8bdc5d97d5845a8c1ac2ed56a5b8b4c0d0fb0795 && git -C chapter8/MiniMind-pretrain/minimind checkout --detach 8bdc5d97d5845a8c1ac2ed56a5b8b4c0d0fb0795 && test "$(git -C chapter8/MiniMind-pretrain/minimind rev-parse HEAD)" = "8bdc5d97d5845a8c1ac2ed56a5b8b4c0d0fb0795"  # 实验 8-3
git clone https://github.com/bojieli/minimind-v.git chapter8/MiniMind-pretrain/minimind-v && git -C chapter8/MiniMind-pretrain/minimind-v fetch origin ead791c530fa5f9a3549dbfe9e11ec732d18d2e5 && git -C chapter8/MiniMind-pretrain/minimind-v checkout --detach ead791c530fa5f9a3549dbfe9e11ec732d18d2e5 && test "$(git -C chapter8/MiniMind-pretrain/minimind-v rev-parse HEAD)" = "ead791c530fa5f9a3549dbfe9e11ec732d18d2e5"  # 实验 8-4
git clone https://github.com/bojieli/AdaptThink.git chapter8/AdaptThink-original && git -C chapter8/AdaptThink-original checkout --detach 0033ad172dd53ac64004b763477407014f21b838  # 实验 8-10
git clone https://github.com/bojieli/SFTvsRL.git chapter8/SFTvsRL && git -C chapter8/SFTvsRL checkout --detach fef0a4a3367260a0934be1e40b01e4021698e023  # 实验 8-11、8-12
git clone https://github.com/bojieli/AWorld.git chapter8/AWorld && git -C chapter8/AWorld checkout --detach a52d61d6d483e66b22ef16970eae5bbf4f4ab2ec  # 实验 8-15
git clone https://github.com/bojieli/verl.git chapter8/verl && git -C chapter8/verl checkout --detach 1593fc3a8cf894debdc3dece2a23ed739c282789  # 实验 8-14 ReTool 配方;8-15 训练后端
git clone https://github.com/bojieli/SandboxFusion.git chapter8/SandboxFusion && git -C chapter8/SandboxFusion fetch origin 4a0d573ebd64c98234c190a9d1d49e4276199a0c && git -C chapter8/SandboxFusion checkout --detach 4a0d573ebd64c98234c190a9d1d49e4276199a0c && test "$(git -C chapter8/SandboxFusion rev-parse HEAD)" = "4a0d573ebd64c98234c190a9d1d49e4276199a0c"  # 实验 8-14 代码沙箱
git clone https://github.com/thinking-machines-lab/tinker-cookbook.git chapter8/tinker-cookbook && git -C chapter8/tinker-cookbook checkout --detach fc8449187041cf102905f3f751e6d2eac7f9f754
git clone https://github.com/19PINE-AI/rlvp.git chapter8/RLVP/rlvp && git -C chapter8/RLVP/rlvp fetch origin 1ad30bc7e338911fb733739393d92c420f4d8bee && git -C chapter8/RLVP/rlvp checkout --detach 1ad30bc7e338911fb733739393d92c420f4d8bee && test "$(git -C chapter8/RLVP/rlvp rev-parse HEAD)" = "1ad30bc7e338911fb733739393d92c420f4d8bee"  # 实验 8-16
git clone https://github.com/PRIME-RL/SimpleVLA-RL.git chapter8/SimpleVLA-RL/SimpleVLA-RL && git -C chapter8/SimpleVLA-RL/SimpleVLA-RL checkout --detach 7c51662df27b586f9e8a1ab35fcf849f2b8852f9  # 实验 8-13

# 第 10 章 · 双 Agent 架构(已独立为 TalkAct 项目)+ 斯坦福 AI 小镇
git clone https://github.com/19PINE-AI/TalkAct.git chapter10/use-computer-while-calling && git -C chapter10/use-computer-while-calling fetch origin 7d70007f72d45ddfc1a14e8e229b6d444e4919a2 && git -C chapter10/use-computer-while-calling checkout --detach 7d70007f72d45ddfc1a14e8e229b6d444e4919a2 && test "$(git -C chapter10/use-computer-while-calling rev-parse HEAD)" = "7d70007f72d45ddfc1a14e8e229b6d444e4919a2"  # 实验 10-3
git clone https://github.com/joonspk-research/generative_agents.git chapter10/generative_agents && git -C chapter10/generative_agents fetch origin fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4 && git -C chapter10/generative_agents checkout --detach fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4 && test "$(git -C chapter10/generative_agents rev-parse HEAD)" = "fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4"  # 实验 10-5

上述九个当前缺失的 checkout(8-3、8-4、8-16、8-14 的 SandboxFusion、6-11/6-13 共用的 XLeRobot、6-12/6-13 的 RoboCrew、6-15 的 lerobot-sim2real、第 10 章固定并发基线、10-5)也已固定到不可变 SHA;命令会 detached checkout 并用 rev-parse HEAD 做相等性校验。第 10 章 use-computer-while-calling 已发展为独立维护的 19PINE-AI/TalkAct。源码存在或安装成功都不是实验完成声明。

🤝 贡献

本书与配套代码全部开源,非常欢迎社区通过 Pull Request 参与共建:

类型 说明
📝 书籍内容改进 勘误、补充、更清晰的表述,或新增前沿进展(正文见 book/chapter*.md)
🐛 代码改进与 Bug 修复 让配套项目更健壮、更易用、更贴近生产实践
🧪 新的实践项目 为某个实验补充/替换更好的实现,或贡献全新的示例项目
🎨 配图设计改进 直接改进 book/images/ 中已签入的 SVG 图表,让它们更清晰美观
🌐 新语言翻译 欢迎翻译成更多语言,可参考英文(book-en/)、阿拉伯语(book-ar/)、繁體中文(台灣)版(book-zhtw/)、俄语(book-ru/)、泰米尔语(book-ta/)、越南语(book-vi/)、日语(book-ja/)、土耳其语(book-tr/)、韩语(book-ko/)、匈牙利语(book-hu/)、希伯来语(book-he/)、葡萄牙语(巴西)(book-ptbr/)的组织方式

提交前建议先把相关实验亲手跑一遍、确认可复现;也欢迎先提 issue 讨论想法。

❤️ 贡献者

感谢所有为本书贡献内容、代码、翻译和修正的贡献者!点击头像即可访问他们的 GitHub 主页,也欢迎你加入。

@bojieli @santhreal @whanyu1212 @thejesh23 @github-actions[bot] @jojixyz666 @ranxi2001 @JeongJaeSoon @phaethix @tanapok @ady-ai @WeZZard @Cyan95 @RichieMccaw @xiaoaozz @mackt @HiAsh02 @shao-shuai @jackiesre721 @jinzcdev @toanalien @memisemre @FourWindff @a00012025 @xhhhz @Rainbow-prince @tigercosmos @zimo-xiao-zheng @tortrixx @ui99ru @MarvinSunnnn @khalilurrrahmanridoykhan @joonion @leofn @TommyHuang2025 @devpowerpro @xiezhidao @umutc @Arnold5893 @zhyupeee @reacher-z @yuzhichang @barmivalami0-ux @caicaijiji @cheese-and-cod @cosmicrealm @wyx20021207-create @jhyan-ux @marvin9551 @milkpku @zjn20030811 @binyangzhu000-sudo @octo-patch @GeeSuth @wesleyzhangwq @wuuer @hun9008 @youmikuang @yzxcj797 @bonnie57 @seulchan @HanChangHun @kuma0605 @claude @Dante-dan @DarkModest @eltociear @itzikwo @jdzhang1221 @ktwu01 @LU90210 @beatenevo @Lucien2714 @MagMueller @rajathpi @Wang-Ray @Anai-Guo @TheSyBuilder @Upper9527 @Yixiang-Wu @nsdevaraj

查看 GitHub 上的全部贡献记录 →

📄 许可证

本项目采用 Apache License 2.0 开源许可证,详见 LICENSE 文件。部分子项目可能包含各自的许可证信息,请以子项目中的说明为准。

⭐ Star History

Star History Chart

由 scripts/gen_star_history.py 生成,GitHub Actions 每日自动更新 · 点击图片查看实时数据

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

3 total
  1. v3.1 · 中文阅读器封面兼容性更新v3.1Nov 22, 20262.2K downloads

    本次 v3.1 更新简体中文阅读器兼容版。封面直接引用 JPEG,支持跳过内嵌 SVG 的阅读器;目录、正文、图表和公式沿用 v3.0 教学修订版。标准 PDF、标准 EPUB 和其余各语种沿用 v3.0 的正式文件,书内版次仍标作 v3.0。 - [简体中文 PDF](https://github.com/bojieli/ai-agent-book/releases/download/v3.1/AI-Agents-in-Depth-zh-CN.pdf) - [简体中文标准 EPUB](https://github.com/bojieli/ai-agent-book/releases/download/v3.1/AI-Agents-in-Depth-zh-CN.epub) - [简体中文阅读器兼容 EPUB](https://github.com/bojieli/ai-agent-book/releases/download/v3.1/AI-Agents-in-Depth-zh-CN-kindle.epub) 附件包含 v3.0 发布的 16 个语言版本的 PDF、EPUB,以及简体中文阅读器兼容版。SHA256SUMS 记录 33 个文件的 SHA-256。 32 份标准文件可与 [v3.0 发布](https://github.com/bojieli/ai-agent-book/releases/tag/v3.0) 逐字节核对。简体中文兼容版使用 v3.1 提交的转换器从同一标准中文 EPUB 重新生成,经过 EPUBCheck、压缩包校验、全部书内图片引用及位图解码检查。WPS 和掌阅 Ocean 5 Pro 的实际显示仍待真机反馈。 [封面兼容性修复 #1228](https://github.com/bojieli/ai-agent-book/pull/1228) · [本次发布对应的提交](https://github.com/bojieli/ai-agent-book/commit/072986b649b8db6bc6f99ea8eded8797ad7e85e6)

  2. ## v3.0 中文教学修订版 这一版从一个贯穿全书的问题出发:用户把事情交给 Agent,它凭什么决定下一步,又凭什么说事情已经办成?前言用 Pine 协商账单说明两者的区别。客服口头答应减免时,助手可以报告承诺;等新账单开出来,才知道钱究竟减了多少。后续章节沿着这类委托,分别讲清模型、上下文、工具、运行环境和评估程序各管哪一步。 ### 正文与结构 全书仍按前言、十章和后记编排。前六章讲怎样搭起能办事的系统,第七章通过运行轨迹定位问题,后三章分别讨论训练模型、从运行经验中学习,以及让多个 Agent 分工。前言增加按读者目标选择的阅读路线。波尔图演讲中关于交互模型、推理速度、现实世界工具、面向人和 Agent 的操作系统、持续学习的判断,分别落在正文案例和后记中。 | 章节 | 新增或重写的重点 | | --- | --- | | 1 · AI Agent 入门 | 用一次换汇任务区分模型决策、工具执行和结果回传,讲清功能组成“LLM + 上下文 + 工具”与工程实现“Model + Harness”。用 Pine 的预算判断、Multica 的工单和 AlphaEvolve 的程序搜索说明生活、办公、科研三类任务怎样授权、怎样判断进展。 | | 2 · 上下文工程 | 从实际 API 消息解释多轮请求、调用 ID 和 Responses 的状态接续;把前缀缓存、工具与 Skill 的按需加载、状态栏和历史压缩放到同一段会增长的上下文里讲。用 dsh-superagent 的摘要和对象 ID 说明如何在需要时取回细节。 | | 3 · 用户记忆和知识库 | 用订票偏好变化、旅行日期与证件有效期区分该记什么、何时更新、取回后是否仍然适用。比较结构化查询、向量召回、多轮检索,以及用 Jev 类判断模型筛选当前任务真正用得上的记忆。 | | 4 · 工具 | 区分感知、执行、协作、用户沟通与事件触发,补充工具命名、参数、返回值和权限判断。用 MCP、Code Mode、按需发现和独立审查串起一次实际调用;以工作区复制写满 3 TB 磁盘、后台任务占满百核服务器解释沙盒与调度成本。 | | 5 · Coding Agent 与通用 Agent | 展开文件编辑、验证与故障恢复,说明代码和文件系统怎样支撑数据分析、业务规则、PPT、视频、CAD 和生成式界面。用支付报表的元与分、渲染后的幻灯片和 Deep Agents 实例讲清“代码运行了”与“交付物正确”之间的距离。 | | 6 · 交互 | 重写全双工语音,用 200 毫秒时间片画出输入与输出怎样交错;讨论快模型直接调用简单工具、前台委派慢任务、对话上下文向后台同步,以及后台只回传结论。加入商家回拨、本人验证、等待确认与异步跟踪;从事件筛选、语义 VAD 到视频兴趣区域(AOI),说明哪些变化值得唤醒

  3. Latest build (rolling)latestJul 21, 2026pre-release1.8K downloads

    Always-fresh PDF and EPUB builds from the latest `main` branch, rebuilt automatically on every book-content change. Assets are overwritten in place, so these download URLs are stable. - 简体中文: [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) - 繁體中文(台灣): [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) - English: [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) - Español: [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) - Bahasa Indonesia: [PDF](https://github.com/bojieli/ai-agent-book/releases/download/latest/AI-Agents-in-Depth-id.pdf) · [EPUB](https://github.com/bojiel

Code frequency

additions and deletions
+7.6M-7.6MWeek of 2025-11-30: +0 linesWeek of 2025-11-30: -0 linesWeek of 2025-12-07: +0 linesWeek of 2025-12-07: -0 linesWeek of 2025-12-14: +374 linesWeek of 2025-12-14: -5 linesWeek of 2025-12-21: +0 linesWeek of 2025-12-21: -0 linesWeek of 2025-12-28: +0 linesWeek of 2025-12-28: -0 linesWeek of 2026-01-04: +0 linesWeek of 2026-01-04: -0 linesWeek of 2026-01-11: +0 linesWeek of 2026-01-11: -0 linesWeek of 2026-01-18: +0 linesWeek of 2026-01-18: -0 linesWeek of 2026-01-25: +0 linesWeek of 2026-01-25: -0 linesWeek of 2026-02-01: +0 linesWeek of 2026-02-01: -0 linesWeek of 2026-02-08: +0 linesWeek of 2026-02-08: -0 linesWeek of 2026-02-15: +0 linesWeek of 2026-02-15: -0 linesWeek of 2026-02-22: +0 linesWeek of 2026-02-22: -0 linesWeek of 2026-03-01: +0 linesWeek of 2026-03-01: -0 linesWeek of 2026-03-08: +0 linesWeek of 2026-03-08: -0 linesWeek of 2026-03-15: +0 linesWeek of 2026-03-15: -0 linesWeek of 2026-03-22: +0 linesWeek of 2026-03-22: -0 linesWeek of 2026-03-29: +0 linesWeek of 2026-03-29: -0 linesWeek of 2026-04-05: +0 linesWeek of 2026-04-05: -0 linesWeek of 2026-04-12: +0 linesWeek of 2026-04-12: -0 linesWeek of 2026-04-19: +0 linesWeek of 2026-04-19: -0 linesWeek of 2026-04-26: +0 linesWeek of 2026-04-26: -0 linesWeek of 2026-05-03: +0 linesWeek of 2026-05-03: -0 linesWeek of 2026-05-10: +0 linesWeek of 2026-05-10: -0 linesWeek of 2026-05-17: +0 linesWeek of 2026-05-17: -0 linesWeek of 2026-05-24: +0 linesWeek of 2026-05-24: -0 linesWeek of 2026-05-31: +0 linesWeek of 2026-05-31: -0 linesWeek of 2026-06-07: +0 linesWeek of 2026-06-07: -0 linesWeek of 2026-06-14: +0 linesWeek of 2026-06-14: -0 linesWeek of 2026-06-21: +0 linesWeek of 2026-06-21: -0 linesWeek of 2026-06-28: +0 linesWeek of 2026-06-28: -0 linesWeek of 2026-07-05: +0 linesWeek of 2026-07-05: -0 linesWeek of 2026-07-12: +3,289,446 linesWeek of 2026-07-12: -2,741,793 linesWeek of 2026-07-19: +660,403 linesWeek of 2026-07-19: -461,933 linesWeek of 2026-07-26: +7,559,989 linesWeek of 2026-07-26: -89,404 linesWeek of 2026-08-02: +1,703,113 linesWeek of 2026-08-02: -1,170,085 linesWeek of 2026-08-09: +3,061,270 linesWeek of 2026-08-09: -2,929,453 linesWeek of 2026-08-16: +2,068,984 linesWeek of 2026-08-16: -2,050,221 linesWeek of 2026-08-23: +712,924 linesWeek of 2026-08-23: -601,968 linesWeek of 2026-08-30: +22,917 linesWeek of 2026-08-30: -1,471 linesWeek of 2026-09-06: +9,295 linesWeek of 2026-09-06: -2,538 linesWeek of 2026-09-13: +40,833 linesWeek of 2026-09-13: -1,667 linesWeek of 2026-09-20: +136,785 linesWeek of 2026-09-20: -128,541 linesWeek of 2026-09-27: +108 linesWeek of 2026-09-27: -16 linesWeek of 2026-10-04: +0 linesWeek of 2026-10-04: -0 linesWeek of 2026-10-11: +0 linesWeek of 2026-10-11: -0 linesWeek of 2026-10-18: +0 linesWeek of 2026-10-18: -0 linesWeek of 2026-10-25: +0 linesWeek of 2026-10-25: -0 linesWeek of 2026-11-01: +0 linesWeek of 2026-11-01: -0 linesWeek of 2026-11-08: +0 linesWeek of 2026-11-08: -0 linesWeek of 2026-11-15: +675 linesWeek of 2026-11-15: -132 linesWeek of 2026-11-22: +198,655 linesWeek of 2026-11-22: -8,100 linesNov 30, 2025Nov 22, 2026
+19.5M lines added, -10.2M removed over the last year.

Commits per week

last 52 weeks
3860Week of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 1 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 0 commitsWeek of 2026-03-22: 0 commitsWeek of 2026-03-29: 0 commitsWeek of 2026-04-05: 0 commitsWeek of 2026-04-12: 0 commitsWeek of 2026-04-19: 0 commitsWeek of 2026-04-26: 0 commitsWeek of 2026-05-03: 0 commitsWeek of 2026-05-10: 0 commitsWeek of 2026-05-17: 0 commitsWeek of 2026-05-24: 0 commitsWeek of 2026-05-31: 0 commitsWeek of 2026-06-07: 0 commitsWeek of 2026-06-14: 0 commitsWeek of 2026-06-21: 0 commitsWeek of 2026-06-28: 0 commitsWeek of 2026-07-05: 0 commitsWeek of 2026-07-12: 129 commitsWeek of 2026-07-19: 386 commitsWeek of 2026-07-26: 280 commitsWeek of 2026-08-02: 107 commitsWeek of 2026-08-09: 68 commitsWeek of 2026-08-16: 86 commitsWeek of 2026-08-23: 59 commitsWeek of 2026-08-30: 28 commitsWeek of 2026-09-06: 13 commitsWeek of 2026-09-13: 44 commitsWeek of 2026-09-20: 20 commitsWeek of 2026-09-27: 4 commitsWeek of 2026-10-04: 0 commitsWeek of 2026-10-11: 0 commitsWeek of 2026-10-18: 0 commitsWeek of 2026-10-25: 0 commitsWeek of 2026-11-01: 0 commitsWeek of 2026-11-08: 0 commitsWeek of 2026-11-15: 7 commitsWeek of 2026-11-22: 63 commitsNov 30, 2025Nov 22, 2026
1.3K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 1 commitsSun 1:00 — 4 commitsSun 2:00 — 5 commitsSun 3:00 — 22 commitsSun 4:00 — 3 commitsSun 5:00 — 0 commitsSun 6:00 — 1 commitsSun 7:00 — 7 commitsSun 8:00 — 3 commitsSun 9:00 — 4 commitsSun 10:00 — 17 commitsSun 11:00 — 8 commitsSun 12:00 — 9 commitsSun 13:00 — 8 commitsSun 14:00 — 4 commitsSun 15:00 — 6 commitsSun 16:00 — 18 commitsSun 17:00 — 5 commitsSun 18:00 — 8 commitsSun 19:00 — 21 commitsSun 20:00 — 8 commitsSun 21:00 — 12 commitsSun 22:00 — 33 commitsSun 23:00 — 11 commitsMon 0:00 — 2 commitsMon 1:00 — 10 commitsMon 2:00 — 8 commitsMon 3:00 — 9 commitsMon 4:00 — 2 commitsMon 5:00 — 3 commitsMon 6:00 — 0 commitsMon 7:00 — 2 commitsMon 8:00 — 7 commitsMon 9:00 — 3 commitsMon 10:00 — 13 commitsMon 11:00 — 3 commitsMon 12:00 — 7 commitsMon 13:00 — 7 commitsMon 14:00 — 7 commitsMon 15:00 — 2 commitsMon 16:00 — 10 commitsMon 17:00 — 19 commitsMon 18:00 — 5 commitsMon 19:00 — 1 commitsMon 20:00 — 7 commitsMon 21:00 — 9 commitsMon 22:00 — 9 commitsMon 23:00 — 2 commitsTue 0:00 — 1 commitsTue 1:00 — 2 commitsTue 2:00 — 0 commitsTue 3:00 — 13 commitsTue 4:00 — 7 commitsTue 5:00 — 5 commitsTue 6:00 — 0 commitsTue 7:00 — 0 commitsTue 8:00 — 3 commitsTue 9:00 — 7 commitsTue 10:00 — 42 commitsTue 11:00 — 20 commitsTue 12:00 — 11 commitsTue 13:00 — 12 commitsTue 14:00 — 22 commitsTue 15:00 — 11 commitsTue 16:00 — 11 commitsTue 17:00 — 7 commitsTue 18:00 — 6 commitsTue 19:00 — 10 commitsTue 20:00 — 39 commitsTue 21:00 — 12 commitsTue 22:00 — 20 commitsTue 23:00 — 11 commitsWed 0:00 — 11 commitsWed 1:00 — 29 commitsWed 2:00 — 1 commitsWed 3:00 — 41 commitsWed 4:00 — 11 commitsWed 5:00 — 1 commitsWed 6:00 — 0 commitsWed 7:00 — 0 commitsWed 8:00 — 0 commitsWed 9:00 — 19 commitsWed 10:00 — 25 commitsWed 11:00 — 12 commitsWed 12:00 — 5 commitsWed 13:00 — 14 commitsWed 14:00 — 3 commitsWed 15:00 — 3 commitsWed 16:00 — 8 commitsWed 17:00 — 13 commitsWed 18:00 — 35 commitsWed 19:00 — 15 commitsWed 20:00 — 13 commitsWed 21:00 — 17 commitsWed 22:00 — 34 commitsWed 23:00 — 10 commitsThu 0:00 — 5 commitsThu 1:00 — 8 commitsThu 2:00 — 31 commitsThu 3:00 — 6 commitsThu 4:00 — 6 commitsThu 5:00 — 3 commitsThu 6:00 — 1 commitsThu 7:00 — 6 commitsThu 8:00 — 1 commitsThu 9:00 — 23 commitsThu 10:00 — 9 commitsThu 11:00 — 13 commitsThu 12:00 — 12 commitsThu 13:00 — 13 commitsThu 14:00 — 7 commitsThu 15:00 — 3 commitsThu 16:00 — 4 commitsThu 17:00 — 8 commitsThu 18:00 — 19 commitsThu 19:00 — 9 commitsThu 20:00 — 4 commitsThu 21:00 — 17 commitsThu 22:00 — 11 commitsThu 23:00 — 16 commitsFri 0:00 — 4 commitsFri 1:00 — 2 commitsFri 2:00 — 5 commitsFri 3:00 — 42 commitsFri 4:00 — 3 commitsFri 5:00 — 3 commitsFri 6:00 — 1 commitsFri 7:00 — 0 commitsFri 8:00 — 2 commitsFri 9:00 — 19 commitsFri 10:00 — 18 commitsFri 11:00 — 12 commitsFri 12:00 — 10 commitsFri 13:00 — 15 commitsFri 14:00 — 9 commitsFri 15:00 — 7 commitsFri 16:00 — 8 commitsFri 17:00 — 6 commitsFri 18:00 — 11 commitsFri 19:00 — 2 commitsFri 20:00 — 7 commitsFri 21:00 — 8 commitsFri 22:00 — 27 commitsFri 23:00 — 37 commitsSat 0:00 — 11 commitsSat 1:00 — 3 commitsSat 2:00 — 5 commitsSat 3:00 — 25 commitsSat 4:00 — 7 commitsSat 5:00 — 0 commitsSat 6:00 — 0 commitsSat 7:00 — 0 commitsSat 8:00 — 15 commitsSat 9:00 — 18 commitsSat 10:00 — 14 commitsSat 11:00 — 23 commitsSat 12:00 — 5 commitsSat 13:00 — 26 commitsSat 14:00 — 23 commitsSat 15:00 — 4 commitsSat 16:00 — 5 commitsSat 17:00 — 5 commitsSat 18:00 — 5 commitsSat 19:00 — 4 commitsSat 20:00 — 3 commitsSat 21:00 — 14 commitsSat 22:00 — 6 commitsSat 23:00 — 9 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.

Who is committing

last 52 weeks
Maintainer commits843 (48%)
Community commits914 (52%)

1,757 commits in total over the last year.

DateListRankStars gained
Sep 26, 2026weekly#19+2,481
Sep 25, 2026weekly#19+2,481
Aug 27, 2026monthly#11+22,917
Aug 26, 2026monthly#11+22,917
Aug 25, 2026monthly#8+23,084
Aug 24, 2026monthly#9+23,452
Aug 23, 2026monthly#10+24,229
Aug 22, 2026monthly#9+27,568
Aug 19, 2026monthly#2+37,085
Aug 18, 2026monthly#2+37,085
Aug 17, 2026monthly#1+37,110
Aug 16, 2026monthly#1+37,493
Aug 2, 2026weekly#5+9,454
Aug 1, 2026weekly#5+9,454
Jul 31, 2026weekly#5+8,998
  • public-apis/public-apis

    A collective list of free APIs

    502.6K stars · Python

  • morluto/rea

    Reverse engineer anything with agents, from app behavior down to native binaries.

    486.9K stars · TypeScript

  • donnemartin/system-design-primer

    Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

    380.1K stars · Python

  • affaan-m/ECC

    The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

    315K stars · JavaScript

  • practical-tutorials/project-based-learning

    Curated list of project-based tutorials

    290.9K stars · Python

  • NousResearch/hermes-agent

    The agent that grows with you

    267.7K stars · Python