AI Engineering
from Scratch

Every published lesson. Every phase. Every algorithm built from raw math before a single framework gets imported.

Maintained by Rohit Ghumare and contributors. Run on your own machine.

Learn in your terminal
npx skills add rohitg00/ai-engineering-from-scratch
> Use start-learning to begin the course.
Claude Cursor Codex + any SKILL.md agent

Your agent becomes your tutor: placement quiz, personalized path, lessons taught interactively in your terminal. How it works

Read by engineers and students at
Apple Google Meta OpenAI NVIDIA IIT Bombay University of Windsor

“Obsessed with the AI Engineering from Scratch repo.” - AI engineer at Google

Your agent is the tutor

You don't navigate this course. Your agent teaches it.

Most courses make you find your own way through them. This one ships its own tutor. Install the course skills into the coding agent you already use, and that agent places you, writes your study plan, and teaches each lesson in your terminal. You do not need to understand the curriculum to start.

  1. 01 npx skills add rohitg00/ai-engineering-from-scratch

    Install the skills

    No clone needed. Works in Claude Code, Codex, Cursor, and any agent that reads SKILL.md.

  2. 02 /find-your-level

    Find your level

    Ten questions. Your agent maps what you already know to a starting phase, marks what you can skip, and estimates the hours.

  3. 03 /start-learning

    Get your plan

    Your agent saves your goal and placement to LEARNING.md, a study plan that lives next to your code.

  4. 04 /learn

    Learn every session

    A warm-up on the last lesson, the next lesson taught section by section in your terminal, a quiz, and your progress recorded.

Stuck on a topic or a bug? /course-guide points you to the exact lesson. Commands are shown for Claude Code. In Codex, type the skill name. In other agents, ask to use the skill by name. See every skill

Curriculum · 20 phases · 542 lessons
Tap a phase to expand its lessons. Each one ships when its math, code, and test are all written.

How every lesson works

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. Every phase, every published lesson, four languages: Python, TypeScript, Rust, Julia. Linear algebra at one end, autonomous swarms at the other. Every algorithm gets built from raw math first. Backprop. Tokenizer. Attention. Agent loop. By the time PyTorch shows up, you already know what it's doing under the hood.

  1. The problem: a concrete failure. An LLM returns text and cannot act.
  2. Build it: raw code, no framework. A ReAct loop in stdlib Python.
  3. Use it: the production tools. Where agent SDKs run the same loop.
  4. Ship it: an artifact you keep. A skill your coding agent can load.
Write the small version first, then see where production tools do the same work. The example is The Agent Loop in Phase 14.

Choose the work you want to do

AI engineering is larger than model code. Choose one of four core learning paths, then learn from the same source, labs, tests, and artifacts in the browser or on GitHub.

View Learning Paths Browse career routes
AI Engineering 4 connected domains
AI Engineering connects building and deploying AI applications, software engineering fundamentals, agent-assisted engineering, and product judgment and delivery. Building and Deploying AI Applications Software Engineering Fundamentals Agent-Assisted Engineering Product Judgment and Delivery
Interactive machines · run one, then break it
The book edition · six volumes
The course, compiled. EPUB and PDF built from the same lessons and attached to every GitHub release. The site stays the living edition. Every chapter links back here for the animated figures, quizzes, and code.
Links resolve to the newest GitHub release · rebuilt by CI from the lessons on every release · how it's made
Independent certification preparation

Prepare by building the real systems

Claude and Model Context Protocol Associate (MCPA) certification paths taught the same way as the course: step by step, with interactive labs, practical artifacts, and an AI tutor that works from the GitHub repo.

5 tracks 67 certification lessons 505 original practice questions

Not affiliated with, endorsed by, sponsored by, or authorized by Anthropic, the Agentic AI Foundation, or the Linux Foundation. This curriculum does not issue credentials or guarantee a passing result.

Colophon

The entire curriculum is on GitHub. Clone it, fork it, learn at your own pace. No paywall, no signup. Every lesson has runnable code in Python, TypeScript, Rust, or Julia, depending on what fits the concept best.

git clone https://github.com/rohitg00/ai-engineering-from-scratch.git