ai-engineering-from-scratch: The AI Curriculum That Teaches Itself

A 20-phase, multi-language course that turns lessons, quizzes, artifacts, and agent skills into one executable learning system.

9 min read • View on GitHub • More from rohitg00

A vast library engineered like a factory floor. Shelves of lesson phases stretch into the distance while a small agent workstation sorts artifacts, quizzes, and lesson notes through a conveyor-like workflow. The image explains that this curriculum is designed to be processed, not just read.
This repo treats curriculum like a system with inputs, outputs, and state, not a pile of notes.
Key Takeaways

The curriculum that behaves like software

Most AI courses are static. This repo is not. It behaves like a learning application with state, routes, contracts, and outputs, which means both humans and agents can move through it without guessing where to go next.

Most AI material teaches in scattered pieces. A paper here, a fine-tuning post there, a flashy agent demo somewhere else. The pieces rarely line up. You ship a chatbot but can't explain its loss curve. You hook a function to an agent but can't say what attention does inside the model that's calling it. This curriculum is the spine.

Rohit Ghumare, Project Creator / Maintainer · ai-engineering-from-scratch GitHub README

That is the core claim behind ai-engineering-from-scratch. It is a 20-phase curriculum with hundreds of lessons, but the size is not the point. The point is that the repository is structured so the next step can be discovered, taught, tested, and archived as an artifact.

Why the agent layer is the real breakthrough

The most unusual part of the repo lives in .claude/skills and LEARNING.md. That layer gives the curriculum a host contract, so an agent can read learner state, fetch the next lesson, teach step by step, then update progress after the quiz and artifact are done.

The curriculum is organized as a loop, not a dead-end reading list. The agent reads state, selects the next lesson, teaches it, checks understanding, and writes progress back.

That is a stronger pattern than a normal course index. It turns curriculum into a runtime. The repository can answer the practical question every learner has: what should happen next?

A close-up of a learner-state mechanism with drawers, tokens, and a tutoring machine. One slot holds LEARNING.md, nearby drawers contain docs, quizzes, code, and outputs, and arrows connect them into a feedback loop. The image explains how the agent uses state to select lessons and advance progress.
A lesson is not complete until the state is updated and the artifact is shipped.

Every lesson is a contract

The lesson structure is disciplined. A lesson ships with conceptual docs, runnable code, a quiz, and outputs that behave like a finished deliverable. That is a very different contract from a tutorial that stops at explanation.

DimensionTypical AI tutorialThis repo
Lesson unitNotebook or articleDoc, code, quiz, outputs
Completion signalYou reached the endYou produced something reusable
ValidationReader self-assessmentStructured quiz plus code
PortabilityHard to reuseArtifacts can be carried forward
AudienceHumans onlyHumans and agents
# Lesson contract

- docs/en.md: concept and explanation
- code/: runnable implementation
- quiz.json: assessment
- outputs/: shipped artifact

The effect is subtle but important. The repo stops being a pile of lessons and becomes a reproducible workflow for learning AI engineering the way engineers actually work: by reading, building, validating, and shipping.

The roadmap is the database

The site generator treats ROADMAP.md as source material, then parses lesson status and structure into navigable site state. That is classic documentation-as-truth thinking, but applied with enough discipline that the course can be rendered, filtered, and traversed like an application.

TraitStatic curriculum siteThis repo
Source of truthPages and navigationMarkdown roadmap plus build parser
StructureMostly linearLinear plus learning paths
StateImplicitExplicit lesson metadata
MaintenanceManual reorganizationBuild process consumes repo structure
NavigationBrowse and hopeParse, route, and continue

This matters because curriculum tends to rot. A source-of-truth roadmap slows that decay. It also makes the project legible to agents, which is increasingly the point.

From first principles to shipped artifacts

The from-scratch philosophy is the pedagogical spine. Concepts are introduced at the level of math and core mechanics first, then re-expressed with tools and frameworks later. That sequence changes what the learner notices.

Learning modeWhat you getWhat you miss
Framework-firstFast applicationThe mechanism underneath
From-scratch-firstMechanistic understandingLess immediate convenience
Artifact-drivenSomething reusable at the endMore work per lesson
Notebook-onlyQuick expositionLittle carryover

The payoff is practical. If a lesson ends with a prompt, a skill, an MCP server, or another reusable asset, the student is not only absorbing ideas. They are leaving with a tool.

def lesson_complete(doc, quiz, code, outputs):
    return all([doc, quiz, code, outputs])

assert lesson_complete(True, True, True, True)

Why this beats a typical AI course

Compared with framework-first courses, this repo is broader and more demanding. Compared with classic from-scratch repos, it is more operational. Compared with static curricula, it is agent-aware.

Repository classStrengthBlind spot
Framework-first AI courseFast path to buildingShallow mechanics
Python-only from-scratch repoDeep conceptual clarityNarrow scope
Static curriculum siteEasy to browseHard to execute
ai-engineering-from-scratchOperational learning systemHigher maintenance cost

The combination is the point. It pairs breadth, depth, multi-language parity, and an agent-facing interface in one place. That is rare, even among ambitious open-source learning projects.

The cost of this approach

There is a downside to all this structure. Strict lesson contracts are harder to maintain than loose notes. Multi-language parity raises the review burden. And when everything is formalized, the curriculum can become heavy to evolve.

That said, the trade-off is defensible. A curriculum that is meant to be consumed by agents needs shape. Otherwise it becomes just another beautiful folder of markdown files.