---
name: ai-engineering-from-scratch
description: Use when you say teach me AI engineering or ask for the AI engineering repo or curriculum; it installs the AI Engineering from Scratch tutor skills so Claude teaches you 542 lessons across 20 phases and runs the local graders for its three projects.
---
# Teach me AI engineering: the AI Engineering from Scratch course
## What it does
AI Engineering from Scratch is a free, open-source, MIT-licensed curriculum: 542 lessons across 20 phases, in Python, TypeScript, Rust, Julia and Go. You implement model internals, retrieval pipelines and agent runtimes, test them, inspect failures, and keep the code and evaluation results.
Three learning paths give you a starting lesson: Model foundations (Setup and tooling), LLM systems (Prompt engineering), and Agents and delivery (The agent loop). The 20 phases stack from math foundations up through ML, deep learning, vision, NLP, speech, transformers, generative AI, RL, LLMs from scratch, LLM engineering, multimodal, tools and protocols, agent engineering, autonomous systems, multi-agent, infrastructure and production, ethics and alignment, and capstone projects.
Three projects ship with staged starters, reference implementations and local graders. Starters fail until you implement the stages:
- 01 Retrieval Evaluation Lab (Python): ranking metrics and regression checks.
- 02 Agent Trace Debugger (TypeScript): trace parsing and timing.
- 03 Tool Call Firewall (Rust): role checks and approval receipts.
The repo also ships tutor skills your coding agent can run: `start-learning` (onboarding plus placement quiz, plan saved to `LEARNING.md`), `learn` (one lesson per session: concept, math, code, quiz), `course-guide` (topic router to the exact lesson), `learn-mcp` (17-lesson Model Context Protocol route), `learn-agent-skills` (five-lesson Agent Skills route), `learn-reverse-engineering` (Phase 13 lessons 32 to 45), `claude-certification`, `mcpa-certification`, `find-your-level` (ten-question placement quiz) and `check-understanding <phase>` (eight-question phase quiz).
You can learn on the website, with a coding agent, or by running local code.
## What you need
- Node.js and `npx`, plus a skill-capable coding agent such as Claude Code. A clone is not needed to install or read the tutor.
- `python3` to run the focused-path labs and the lesson code.
- A writable user or project skill scope for the Agent Skills host labs.
- Project 01: Python 3.10+. Project 02: Node.js 22.18+ and Python 3 for the grader. Project 03: Rust and Python 3.10+.
- You can already write code in some language (Python helps). No paid account is mentioned.
## Setup
Check the local requirements:
```bash
node --version
npx --version
python3 --version
```
Install the tutor skills. Choose the host and scope when the installer asks:
```bash
npx skills add rohitg00/ai-engineering-from-scratch
```
The installer writes to the host and scope you select, such as `.claude/skills/`. Check that your host discovers that exact folder.
In Claude Code, start with `/start-learning`, then `/learn` for each session, `/course-guide` when you are stuck, `/learn-mcp`, `/learn-agent-skills`, and `/check-understanding 13` for a phase quiz.
To run the lesson code locally:
```bash
git clone https://github.com/rohitg00/ai-engineering-from-scratch.git
cd ai-engineering-from-scratch
python3 phases/00-setup-and-tooling/01-dev-environment/code/verify.py --route beginner
python3 phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py
```
Run project commands from the repository root. Example for the first project:
```bash
python3 scripts/project_test.py retrieval-evaluation-lab \
--init learning-artifacts/retrieval-evaluation-lab
python3 scripts/project_test.py retrieval-evaluation-lab \
--stage 1 --path learning-artifacts/retrieval-evaluation-lab --strict
python3 scripts/project_test.py retrieval-evaluation-lab \
--all --path learning-artifacts/retrieval-evaluation-lab --strict
```
The other two projects use the same script with the ids `agent-trace-debugger` and `tool-call-firewall`.
If you do not have Node.js, `npx`, `python3`, a supported host or a writable scope, read the lessons on the website at https://aiengineeringfromscratch.com or read each lesson's `docs/en.md` by hand.
The graders and lesson scripts run code on your machine and write artifacts into the folder you pass. Read the project README before running anything, and keep the artifacts in a scratch directory like `learning-artifacts/`.
## How to use it with Claude
- "Use start-learning: give me the placement quiz and save my plan to LEARNING.md."
- "Use learn to teach me the next lesson: concept, math, code, then the quiz."
- "Use course-guide: where do I learn attention, and why is my loss NaN?"
- "Use check-understanding to quiz me on Phase 13."
- "Use learn-mcp to start the Model Context Protocol path and record the wire evidence in MCP-LEARNING.md."
- "Help me implement stage 1 of the Retrieval Evaluation Lab, then run the strict grader for that stage."
## Credits
Made by rohitg00 (AI Engineering from Scratch), packaged by Orbit.
Source: https://github.com/rohitg00/ai-engineering-from-scratch
License: MIT