---
title: "AI Engineering from Scratch: 523 Free Lessons, and the 4 Phases I'd Do First"
description: "AI Engineering from Scratch (58K GitHub stars, MIT) is a free, open-source course with 523 lessons across 20 phases, where every lesson ships a prompt, skill, agent or MCP server. Three ways to start, the four phases I'd do first for an AI app developer job, what to ship after each, and which capstone to build."
date: "2026-09-26"
type: "build"
reel: "Ddwlg5gSOvf"
tags: []
legacy: true
---
<p>
        You commented <strong>COURSE</strong>, so here's the link and the order
        I'd do it in. AI Engineering from Scratch is a free, open-source course
        that lives on GitHub. It had 58,158 stars and over 10,000 forks on the
        GitHub API on 26 September 2026, and it was on GitHub's daily trending
        page the same day.
      </p>

      <div class="highlight">
        <p style="margin-bottom: 0">
          <strong>The short version:</strong> 523 lessons, 20 phases, about 342
          hours, and every lesson makes you build something you keep. You don't
          need all of it. Do four phases, ship a project after each, and you
          have a portfolio a startup will actually look at.
        </p>
      </div>

      <h2 id="repo">The course: rohitg00/ai-engineering-from-scratch <span class="stars">~58K ★</span></h2>
      <p class="repo-link">
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch">github.com/rohitg00/ai-engineering-from-scratch</a>
      </p>
      <ul>
        <li><strong>523 lessons across 20 phases</strong>, roughly 342 hours in total.</li>
        <li><strong>Four languages:</strong> Python, TypeScript, Rust and Julia.</li>
        <li>
          <strong>Every lesson ships an artifact:</strong> a prompt, a skill, an
          agent or an MCP server. You finish with things you can show, not just
          notes.
        </li>
        <li><strong>MIT licensed and free.</strong> No paywall, no signup.</li>
        <li>
          <strong>Hindi landing page</strong> if you prefer it:
          <a href="https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/i18n/hi/README.md">i18n/hi/README.md</a>.
          English is the main version and lesson pages are machine translated.
        </li>
      </ul>
      <p>
        The phases go from setup and maths, through classical ML, deep learning,
        transformers and LLMs from scratch, up to LLM engineering, tools and
        protocols, agents, multi-agent systems, production infrastructure,
        safety, and a final set of capstone projects.
      </p>

      <h2>Three ways to start</h2>
      <p>All three come from the project README. Pick one.</p>
      <h3>1. Read it on the website</h3>
      <p>
        Open <a href="https://aiengineeringfromscratch.com">aiengineeringfromscratch.com</a>.
        No setup and no cloning. Good for your phone on the metro.
      </p>
      <h3>2. Let your coding agent teach you</h3>
      <p>If you already have Node.js and Claude Code or Codex installed:</p>
      <p><code>npx skills add rohitg00/ai-engineering-from-scratch</code></p>
      <p>
        Then run <code>/start-learning</code> in Claude Code, or pick
        <code>start-learning</code> from <code>/skills</code> in Codex. A
        ten-question placement quiz works out what you already know, picks your
        starting phase and saves a study plan to <code>LEARNING.md</code>, so
        every session picks up where you left off.
      </p>
      <h3>3. Clone it and run the code</h3>
      <p>
        <code>git clone https://github.com/rohitg00/ai-engineering-from-scratch.git</code>, then run the Phase 0 environment check
        from the repo root:
      </p>
      <p><code>python3 phases/00-setup-and-tooling/01-dev-environment/code/verify.py --route beginner</code></p>
      <p>
        It tells you what's missing and gives you the command to fix each
        problem. Cloning also means the tutor can actually run each lesson's
        code with you instead of just reading along.
      </p>

      <h2>The 4 phases I'd do first</h2>
      <p>
        This order is for one goal: getting hired as an AI application
        developer. That's the role companies are hiring freshers for, and it's
        about building products on top of models, not training them. Skip ahead
        to the parts that get you there, and come back for the maths and deep
        learning phases once you're building.
      </p>

      <h3>1. Phase 0: Setup and Tooling (12 lessons)</h3>
      <p>
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/00-setup-and-tooling">Phase 0</a> covers
        your dev environment, Git and the tools every later lesson assumes.
      </p>
      <p>
        <strong>Ship after:</strong> a clean GitHub profile with one repo that
        has a real README (what it does, a screenshot, how to run it).
      </p>

      <h3>2. Phase 11: LLM Engineering (17 lessons)</h3>
      <p>
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering">Phase 11</a> is the
        core of AI app work: prompt patterns, structured outputs, embeddings,
        RAG and advanced RAG, fine-tuning with LoRA, function calling,
        evaluation, caching and cost, guardrails, and building a production LLM
        app.
      </p>
      <p>
        <strong>Ship after:</strong> a RAG app over something you actually care
        about, like your college notes or a docs site you use every day, with a
        live URL and a short note on how you evaluated it.
      </p>

      <h3>3. Phase 13: Tools and Protocols (31 lessons)</h3>
      <p>
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols">Phase 13</a>
        teaches function calling in depth, how to build MCP servers and
        clients, MCP security and auth, and how Agent Skills are packaged and
        invoked. If you only want MCP, the README has a focused 17-lesson route
        through it.
      </p>
      <p>
        <strong>Ship after:</strong> an MCP server for a tool you already use,
        published on GitHub with install steps someone else can follow.
      </p>

      <h3>4. Phase 14: Agent Engineering (54 lessons)</h3>
      <p>
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering">Phase 14</a> builds
        agents from first principles: the agent loop (about 120 lines of plain
        Python in lesson 1), planning, reflection, tool use and memory. Lessons
        31 to 46 form the
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/learning-paths/using-coding-agents.json">agent-assisted engineering path</a>,
        which is about using coding agents reliably on real repositories.
      </p>
      <p>
        <strong>Ship after:</strong> a small agent that does one real job end to
        end, like triaging your GitHub issues or summarising a daily feed.
      </p>

      <h2>Then build one capstone</h2>
      <p>
        <a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects">Phase 19</a> has 17
        end-to-end projects, each 20 to 40 hours, plus deeper build tracks. Three
        that read well on a fresher resume:
      </p>
      <ul>
        <li><a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects/16-github-issue-to-pr-agent">GitHub issue-to-PR autonomous agent</a></li>
        <li><a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects/02-rag-over-codebase">RAG over a codebase (cross-repo semantic search)</a></li>
        <li><a href="https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/19-capstone-projects/13-mcp-server-with-registry">Stateless MCP server with a registry and governance</a></li>
      </ul>

      <h2>How I'd use it</h2>
      <ul>
        <li>One phase, one shipped project. Don't start the next phase until the project has a live link.</li>
        <li>Post your build in public every week. That's your proof of work, and it's how founders find you.</li>
        <li>Take the placement quiz first so you don't redo things you already know.</li>
        <li>
          Three shipped AI projects on GitHub will get you further than
          finishing all 523 lessons and shipping nothing.
        </li>
      </ul>

      <p>
        Want more project ideas? Read
        <a href="/blog/25-projects-to-build-to-get-hired-2026">25 projects to build to get hired in 2026</a>,
        then
        <a href="/blog/what-2027-interviews-will-actually-ask">what 2027 interviews will actually ask you</a>.
      </p>

      <p>
        Follow
        <a href="https://www.instagram.com/avi_vashishta29/">@avi_vashishta29</a>
        for one practical AI dev tool a day.
      </p>
