ai-engineering-from-scratch vs ai-agent-book
Two of the top projects in Learning and cookbooks, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
ai-engineering-from-scratch
Free curriculum of 542 coding lessons on building AI systems from scratch
ai-agent-book
Open-source book on AI agent design with 109 runnable experiments
Verdict
ai-engineering-from-scratch ranks higher, 92 to 88. Of the 4 score parts we measure for both, ai-engineering-from-scratch leads on 2, ai-agent-book on 1 and 1 is even.
- Adoptionai-engineering-from-scratch leads by 2 points, 97 to 95: close to even.
- FreshnessEven at 100.
- Maintenanceai-agent-book leads by 5 points, 99 to 94.
- Agent-readyai-engineering-from-scratch leads by 45 points, 45 to 0: a wide gap.
Pick ai-engineering-from-scratch if you are
Developers learning to build AI systems by writing the code themselves
- Lessons ship runnable code; some start dependency-free, e.g. a vectors.py linear algebra lesson
- Three staged projects with starters, reference solutions and local graders (project_test.py)
Pick ai-agent-book if you are
Engineers learning to build and evaluate LLM agents, Chinese readers first
- 109 experiments organized by chapter, with uv.lock for reproducible per-chapter environments
- PDF and EPUB downloads plus an online reader, in 15 languages
| What we compare | ai-engineering-from-scratch | ai-agent-book |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 97, widely used | 95, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 94, healthy | 99, healthy |
| Agent-ready | 45, minimal | 0, none |
| Facts from GitHub and the README | ||
| Stars | 81.1k | 60.2k |
| License | MIT (permissive) | Apache-2.0 (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Nov 2026 |
| Language | Python | Python |
| Docker | No | No |
| GPU | Not stated | Optional |
| arm64 or Apple Silicon | Mentioned | Not stated |
ai-engineering-from-scratch
A 20-phase course covering math foundations, ML fundamentals, LLM engineering, agents and production infrastructure, with runnable lesson code in Python, TypeScript, Rust, Julia and Go. It includes three graded projects (retrieval evaluation, agent trace debugger, tool call firewall) with local graders, plus agent skills that turn a coding agent into a tutor. Lessons can be read on the website or run locally.
Who it is for: Developers learning to build AI systems by writing the code themselves
Strengths
- Lessons ship runnable code; some start dependency-free, e.g. a vectors.py linear algebra lesson
- Three staged projects with starters, reference solutions and local graders (project_test.py)
- Covers math through agents, MCP and production infrastructure across 20 phases
- Installable tutor skills via npx skills for Claude Code, Codex and other hosts
Weaknesses
- 542 lessons is a large scope; the README tells readers to pick one goal path
- Projects need different toolchains: Python 3.10+, Node.js 22.18+ and Rust
- Tutor skills require Node.js, npx and a skill-capable coding agent host
- Starter project code fails by design until you implement the stages
- Needs Python 3.10+, Node.js 22.18+ (agent trace project, tutor skills), Rust (tool call firewall project)
ai-agent-book
A Chinese-language book, "深入理解 AI Agent", in 10 chapters built on the formula Agent = LLM + context + tools. It covers context engineering, memory and RAG, tools and MCP, coding agents, voice and computer use, evaluation, post-training, continual improvement and multi-agent systems. The repo holds the manuscript, PDF/EPUB builds in 15 languages, and 109 Python experiments.
Who it is for: Engineers learning to build and evaluate LLM agents, Chinese readers first
Strengths
- 109 experiments organized by chapter, with uv.lock for reproducible per-chapter environments
- PDF and EPUB downloads plus an online reader, in 15 languages
- Covers context, memory, tools, evaluation, post-training and multi-agent topics in one text
- Pins commits for the external repos used in reproduction tracks
Weaknesses
- Chinese original is canonical; community translations may lag behind it
- README says experiment code is generated by coding agents, not read line by line
- Most experiments need a provider API key; external repos must be cloned manually
- Cloning the repo does not mean every experiment has been run; status is tracked separately
- GPU optional
- Needs Python 3.11-3.13, uv or pip, LLM provider API key, pandoc and xelatex (PDF build only), Ollama, CUDA, Playwright, FFmpeg (some experiments)
- Models: Kimi, GLM, DeepSeek, SiliconFlow, OpenRouter
More in Learning and cookbooks
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.
AI app development →Send a project brief (opens in a new tab)