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.

11st of 171 in Learning and cookbooks

ai-engineering-from-scratch

Free curriculum of 542 coding lessons on building AI systems from scratch

22nd of 171 in Learning and cookbooks

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
ai-engineering-from-scratch vs ai-agent-book: score parts and facts
What we compareai-engineering-from-scratchai-agent-book
Score parts, out of 100
Adoption97, widely used95, widely used
Freshness100, active100, active
Maintenance94, healthy99, healthy
Agent-ready45, minimal0, none
Facts from GitHub and the README
Stars81.1k60.2k
LicenseMIT (permissive)Apache-2.0 (permissive)
Last commitNov 2026Nov 2026
Last releaseNov 2026Nov 2026
LanguagePythonPython
DockerNoNo
GPUNot statedOptional
arm64 or Apple SiliconMentionedNot 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.