AI news and explainers at 7 AM weekdays, plus a Sunday weekly at 8Get it in your inbox

METAL LAB

rohitg00/ai-engineering-from-scratch

48,111+330 todayPython

A free hands-on curriculum that teaches AI by having you build every piece from scratch, from math to shippable agents

This repository is a free, open-source curriculum that teaches AI engineering by having learners implement everything by hand, from math foundations to autonomous agents. It spans 20 phases and 511 lessons, and every lesson ends with a reusable artifact like a prompt, skill, agent, or MCP server. Installing the learning skills into a coding agent turns your terminal into an interactive tutor that builds a personalized study plan and teaches one lesson at a time.

What it does

  1. The 511 lessons across 20 phases cover setup, math foundations, classical ML, deep learning, transformers, large language models, multimodal AI, agents, and production infrastructure, written in Python, TypeScript, Rust, and Julia.
  2. Every lesson follows the same six-step structure: motto, problem, concept, build-it-from-raw-math, use-it-in-a-production-library, and ship-it as a reusable artifact.
  3. Running `npx skills add` installs learning skills into agents like Claude Code or Codex, which then run a ten-question placement quiz, save a personalized plan to LEARNING.md, and teach lessons interactively one at a time.
  4. Separate focused paths exist for learners who only want Model Context Protocol (17 lessons) or Agent Skills (5 lessons), each tracked in its own progress file.
  5. The 20-phase core curriculum is also compiled by CI into a six-volume EPUB/PDF book series attached to every GitHub release.

Why it matters

It pushes learners past merely calling AI APIs toward implementing the actual mechanics, like attention and the agent loop, from raw code, so they can debug and reason about systems they build rather than treat them as black boxes. Because each lesson produces a working artifact, studying the curriculum simultaneously builds a practical portfolio of real tools.

Terms in this repo

  • MCP (Model Context Protocol) · a standardized protocol that lets AI models access external tools and data
  • Agent Skills · standardized SKILL.md instruction files that an AI agent reads to perform a specific task
  • LoRA/QLoRA · lightweight fine-tuning techniques that train a small set of added parameters instead of the whole model
  • RAG (retrieval-augmented generation) · a technique where the model retrieves external documents before answering, using them as grounding
  • agent loop · the repeating cycle where an AI reads tool results and decides its next action

Repository description (English)

Learn it. Build it. Ship it for others.

Open on GitHub

Trending repos

All repos →

Latest from METAL LAB