Mindket

AI Engineering from Scratch

Newversion 2 · updated
Star77.8k

Overview

Rohit Ghumare’s free, MIT-licensed course that builds AI from raw math up to agents and production, in twenty phases. Tutor skills for Claude Code, Codex and Cursor teach it lesson by lesson. The setup notes cover the website, a clone, the tutor skills, focused routes, projects and certifications.

AI Engineering from Scratch is an open-source project on GitHub in the Education category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.

At a glance

Runs in
  • The website: aiengineeringfromscratch.com, with nothing to install
  • A coding agent: the README names Claude Code, Codex and Cursor, and any agent that reads SKILL.md, as hosts for the tutor skills
  • Your own computer: a clone with Python 3, plus Node.js for the TypeScript lessons and Rust or Julia for the lessons in those languages
  • Cloud GPUs: the Dev Environment lesson names Google Colab and cloud GPUs for the training-heavy lessons
Start with
npx skills add rohitg00/ai-engineering-from-scratch

Platform

Claude CodeCoding agent
CodexCoding agent
CursorCode editor

About

What it is

AI Engineering from Scratch is a free course by Rohit Ghumare, kept as a GitHub repository under the MIT license. Its README opens with the job: implement model internals, retrieval pipelines and agent runtimes, test them, inspect failures, and keep the code and evaluation results. The lessons sit in twenty phases, from setup, math and classical machine learning through deep learning, transformers and LLMs, to tools and protocols, agents, production and capstone projects. Code runs in Python, TypeScript, Rust and Julia. Every lesson follows the same six beats: motto, problem, concept, Build It, Use It and Ship It. You write the small version first, then run the same thing through a production library. The lesson ends with something you keep, such as a prompt, a skill, an agent or an MCP server.

  1. Pick a start point: the website, a tutor or a clone
  2. Check your tools with the Dev Environment preflight
  3. Read a lesson’s docs and run its code
  4. Keep the command, the output and what you changed
  5. Ship the lesson’s prompt, skill, agent or MCP server

Who it suits

Anyone who can write code in any language and wants to understand how AI works, not just how to call an API. The README’s prerequisites say exactly that, and add that Python helps. You do not have to start at the beginning. Its table sends a Python developer to Phase 1, someone who knows ML to Phase 3, and a senior engineer who only wants agents to Phase 14.

Who uses it, and how
IndustryWho uses itHow they use itExample
Self-studyDevelopers who call model APIs and want to see insidePick a start point from the README’s table and run each lesson’s codeA Python developer starts at Phase 1, runs the vectors.py lesson from the repository root and keeps the output as evidence.
Agent buildingEngineers who ship agents and tool integrationsGo to Phase 14, or take the focused MCP or Agent Skills route in Phase 13A senior engineer skips ahead to Phase 14, Agent Engineering, as the README’s table allows.
CareersPeople building toward an AI roleFollow the career practice guide: choose one career direction and carry one project through the four core domainsA learner picks Agent Systems Engineering, builds a repository-maintenance agent that proposes a bounded change in a disposable workspace, and keeps the guide’s evidence bundle.
TeachingTeachers, bootcamps and company training leadsFork the course under MIT and trim it, as FORKING.md describesA team lead forks the repository and removes the phases the team does not need.
Certification prepPeople studying for a Claude certification or the MCP Associate examUse the certification tutors, which run labs and practice exams from the repositoryA candidate asks the MCPA tutor for the diagnostic, and it records the plan in MCPA-CERTIFICATION.md.

Skip it if all you need is to call a model API from an app. The README says the course is for people who want to understand how AI works, not just call APIs.

Where to use it

The lessons are Markdown, code and quizzes, so you can read them on the website, learn them through a coding agent, or run them on your own machine.

  • The website: aiengineeringfromscratch.com, with nothing to install
  • A coding agent: the README names Claude Code, Codex and Cursor, and any agent that reads SKILL.md, as hosts for the tutor skills
  • Your own computer: a clone with Python 3, plus Node.js for the TypeScript lessons and Rust or Julia for the lessons in those languages
  • Cloud GPUs: the Dev Environment lesson names Google Colab and cloud GPUs for the training-heavy lessons

Most lessons work on a CPU, the Dev Environment lesson says.

How to set it up

Get it saves a zip of Mindket’s setup notes in your downloads folder, with the steps from the maker’s pages. The website needs nothing at all. For the tutor you install skills with npx, and for lesson code you clone the repository.

What you need first
NeedDetail
Nothing, for the websiteOpen a lesson in your browser. The README says no setup and no cloning
Node.js and npxFor the tutor install. The Agent Skills preflight asks for Node.js 20 or later, the Agent Trace Debugger project asks for 22.18 or later, and the Dev Environment lesson installs 22
Python 3The setup preflight asks for 3.11 or later, and the lesson installs 3.12 with uv. Two of the README’s three projects say 3.10 or later
GitTo clone the repository
A skill-capable coding agentClaude Code, Codex, Cursor or another agent that reads SKILL.md, plus a writable skill folder
A GPUOptional. Most lessons work on a CPU
  1. Run node --version, npx --version and python3 --version to see what you have.
  2. Run the install line below, then pick your agent and where the skills go when the installer asks.
  3. Check that your agent finds the skills in that folder, as the README says to.
  4. Clone the repository when you want lesson code to run, by you or by the tutor. Without a clone the learn skill traces code by hand, and the certification guides ask for a clone so the tutor can run every lab and test.
npx skills add rohitg00/ai-engineering-from-scratch
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

How to use it

Start the tutor by name. The README gives each host its own form, and the skills say never to show a Claude Code slash command as universal syntax.

Starting the tutor
What you wantClaude CodeCodex
Start the course/start-learningstart-learning
Model Context Protocol (MCP) path/learn-mcplearn-mcp
Agent Skills path/learn-agent-skillslearn-agent-skills
A phase quiz/check-understanding 13check-understanding 13

In another host, ask in words, as in “Use start-learning to begin the course.”

start-learning asks why you are learning, how much time you have and what you want to build. It then runs a ten-question placement quiz and writes LEARNING.md in your current folder. After that, learn teaches one lesson per session: concept, math, code, quiz. The README’s way of working through any lesson:

  1. Read docs/en.md and say the core idea in your own words.
  2. Type and build the important code.
  3. Run the lesson command from the repository root.
  4. Keep the evidence: the command, the folder, the exit code, the output and the artifact.
  5. Move on once you can explain the output and change one small thing without guessing.

Example

You are a Python developer with a free evening. You clone the repository, run the preflight, then the first math lesson:

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

The preflight separates what you need now from what can wait, and prints a corrective command for anything required that is missing. The vectors script has no dependencies. It ends by showing that a matrix times a vector is the operation inside a neural network layer. Save that output, since the README calls it your first evidence. Then open the lesson’s docs/en.md and read what the script just showed you.

For newcomers and experts

If you are new. A phase is a group of lessons on one topic, and phases 0 to 19 stack from setup up to capstone projects. A skill is a Markdown file called SKILL.md that tells a coding agent how to do one job, here how to tutor you. MCP, the Model Context Protocol, is a standard for connecting AI tools to other software. Phase 0 sets up your computer, and the preflight tells you what is missing and how to fix it. If installing a tutor feels like too much, open the first lesson on the website and just read.

For experts. Each tutor keeps its state in a file in your working folder: LEARNING.md, MCP-LEARNING.md, AGENT-SKILLS-LEARNING.md, REVERSE-ENGINEERING-LEARNING.md, CLAUDE-CERTIFICATION.md and MCPA-CERTIFICATION.md. The focused routes follow JSON manifests under learning-paths, not the numeric order of Phase 13. The MCP route targets the 2026-07-28 stateless protocol revision, where each request carries its own protocol version and client capabilities in _meta, with no handshake first.

The preflight has a route for each goal: beginner, ml-foundations, llm-engineering, agents, mcp, agent-skills and certification. The three projects ship graders you run with scripts/project_test.py and --strict. scripts/install_skills.py installs the artifacts the lessons produce in a skills, by-phase or flat layout, and scripts/scaffold_workbench.py drops the Phase 14 agent workbench pack into another repository.

Good to know

The website needs no install. The tutor runs inside your own coding agent, and the lesson code runs on your own machine with python3 and the other runtimes.

  • Cost: the course is free under MIT. The pages give no price for the coding agent or model that runs the tutor, so check your own plan
  • Your data: tutor progress stays in Markdown files in your working folder. Without a clone, the learn skill fetches lessons from raw.githubusercontent.com, and the pages say nothing about what your coding agent’s provider keeps, so check its own terms
  • Keys: the certification labs run locally with no key by default, and the guide says never to put an API key in source, a prompt or a state file. Phase 0 has an APIs & Keys lesson that these notes did not read
  • Counts move: the README gave 542 lessons on 3 November 2026 and the Dev Environment lesson says 500+, so check the README for the current count
  • Pages disagree: the setup preflight asks for Python 3.11 or later, while two of the three projects, scripts/lesson_run.py and the Reverse Engineering tutor say 3.10 or later
  • Reverse Engineering: the tutor covers programs you built or have written authorization to analyze, and declines protection bypass, DRM, anti-cheat and software you do not own
  • Certifications: independent study material, not affiliated with Anthropic, the Agentic AI Foundation or the Linux Foundation. Practice scores are not official and promise no pass
  • Removal: the pages give no uninstall steps. Delete the clone and the skill folders the installer wrote
  • License: MIT. The LICENSE file reads “Copyright (c) 2026 Rohit Ghumare”

README and files

README

AI Engineering from Scratch: setup notes

This kit holds setup notes only. Mindket wrote them. The curriculum, its lessons, code, skills and website stay in Rohit Ghumare's repository: https://github.com/rohitg00/ai-engineering-from-scratch

These notes are not made or endorsed by Rohit Ghumare. GitHub describes the repository as "Learn AI Engineering! Learn it. Build it. Ship it for others." The README opens with "Implement model internals, retrieval pipelines, and agent runtimes. Test them, inspect failures, and keep the code and evaluation results." The notes were written from the README, the pages it links and the files in the repository read on 3 November 2026.

License: MIT. The LICENSE file (https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/LICENSE) reads "Copyright (c) 2026 Rohit Ghumare". The README says to use it however you want, fork it, teach it, sell it and ship it, and that attribution is appreciated but not required.

What the course is

The README says it is free and open source under the MIT license, and that you can learn on the website, with a coding agent, or by running local code. The lessons are written in Python, TypeScript, Rust and Julia, and they are grouped into twenty phases. Math is the floor and agents and production are the roof, the README says, and you can skip ahead if you already know the lower layers. The lesson counts and study-hour estimates in the README grow as lessons are added, so these notes leave them out: read them in the README. Source: https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/README.md

Each lesson lives in its own folder, with the same layout across the curriculum:

phases/<NN>-<phase-name>/<NN>-<lesson-name>/
├── code/      runnable implementations (Python, TypeScript, Rust, Julia)
├── docs/
│   └── en.md  lesson narrative
└── outputs/   prompts, skills, agents, or MCP servers this lesson produces

In phases 0 to 18, the README's tables mark each lesson as a "Learn" or a "Build" lesson. Phase 19's tables list capstone projects and build tracks instead. Every lesson follows six beats, the README says: motto, problem, concept, Build It, Use It and Ship It.

The twenty phases

Phase names are copied from the README. Folder names are copied from the phase map in the repository's check-understanding skill: https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/skills/check-understanding/SKILL.md

| # | Phase | Folder under phases/ |
|---|---|---|
| 0 | Setup & Tooling | 00-setup-and-tooling |
| 1 | Math Foundations | 01-math-foundations |
| 2 | ML Fundamentals | 02-ml-fundamentals |
| 3 | Deep Learning Core | 03-deep-learning-core |
| 4 | Computer Vision | 04-computer-vision |
| 5 | NLP: Foundations to Advanced | 05-nlp-foundations-to-advanced |
| 6 | Speech & Audio | 06-speech-and-audio |
| 7 | Transformers Deep Dive | 07-transformers-deep-dive |
| 8 | Generative AI | 08-generative-ai |
| 9 | Reinforcement Learning | 09-reinforcement-learning |
| 10 | LLMs from Scratch | 10-llms-from-scratch |
| 11 | LLM Engineering | 11-llm-engineering |
| 12 | Multimodal AI | 12-multimodal-ai |
| 13 | Tools & Protocols | 13-tools-and-protocols |
| 14 | Agent Engineering | 14-agent-engineering |
| 15 | Autonomous Systems | 15-autonomous-systems |
| 16 | Multi-Agent & Swarms | 16-multi-agent-and-swarms |
| 17 | Infrastructure & Production | 17-infrastructure-and-production |
| 18 | Ethics, Safety & Alignment | 18-ethics-safety-alignment |
| 19 | Capstone Projects | 19-capstone-projects |

Where to start

The README's "Where to start" table, read on 3 November 2026. It also gives an hours estimate for each row, which these notes leave out.

| Background | Start at |
|---|---|
| New to programming and AI | Phase 0, Setup |
| Know Python, new to ML | Phase 1, Math Foundations |
| Know ML, new to deep learning | Phase 3, Deep Learning Core |
| Know deep learning, want LLMs and agents | Phase 10, LLMs from Scratch |
| Senior engineer, only want agent engineering | Phase 14, Agent Engineering |
| Only want to build production MCP systems | The MCP path |
| Only want to build production Agent Skills | The Agent Skills Engineering path |
| Only want to learn reverse engineering | The Reverse Engineering path |

The README's "Choose a learning path" table gives one goal per link, for example "I want to build agents" starts at Phase 14 and "I want to build production LLM applications" starts at Phase 11. Not sure where you fit? The README points to the start-learning placement tutor and the website's prerequisites guide: https://aiengineeringfromscratch.com/prereqs.html

Ways to learn it

  • setup/website.md: read the lessons online with nothing to install.
  • setup/local-python.md: clone the repository and run lesson code on your computer.
  • setup/claude-code.md: install the course's skills so Claude Code becomes your tutor.
  • setup/codex.md: the same skills in Codex.
  • setup/other-agents.md: Cursor, OpenClaw, Hermes and any other agent that reads SKILL.md, and ChatGPT.
  • setup/focused-paths.md: the MCP, Agent Skills and Reverse Engineering routes, and the Claude and MCPA certification routes.
  • setup/projects.md: the three projects with local graders.
  • setup/lesson-artifacts.md: install the skills and prompts the lessons produce, and the repository's scripts.
  • setup/books-and-forks.md: the EPUB and PDF books, and forking the course for a team or a class.

Update or remove

The pages read give no update or uninstall steps for the tutor skills. A fork stays current with the remote and merge lines FORKING.md gives, copied in setup/books-and-forks.md. The pages give no update step for a plain clone. The skills installer writes to the host and scope you pick, so the folder to delete is the one the installer named, such as .claude/skills/. That sentence is Mindket's, not Rohit Ghumare's.

Sources

Files
README.md  7 KB
setup/books-and-forks.md  4 KB
setup/claude-code.md  5 KB
setup/codex.md  3 KB
setup/focused-paths.md  9 KB
setup/lesson-artifacts.md  4 KB
setup/local-python.md  7 KB
setup/other-agents.md  4 KB
setup/projects.md  5 KB
setup/website.md  3 KB

10 files, 50 KB, downloaded as a zip.

What’s new

  • Version 2 · 2026-11-09

    Updated by Mindket to the current version of this kit.

  • Version 1 · 2026-11-03

Compare with similar

Listed GitHub projects in the same category that share the most topics with this one.

ProductStarsActivityLanguageLicenseLast change
AI Engineering from Scratch This page77,834——MIT—
Build a Large Language Model (From Scratch)Shares from-scratch · deep-learning · generative-ai107,934————
AI For BeginnersShares computer-vision · deep-learning · machine-learning70,626——MIT—
LLM CourseShares course · llm · machine-learning84,938——Apache-2.0—
Generative AI for BeginnersShares generative-ai · ai123,169ActiveJupyter NotebookMIT
Numbers as Mindket last read them, from 2026-11-07 to 2026-11-09. Activity is read from each project’s last change on GitHub: Active within 30 days, Quiet within 180, Stale after that.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

Léαlinux 🐧github.com/rohitg00/ai-... Des cours, des leçons.18 likes · 1 reply@mdancho84$7dr/learnmachinelearningOpen source Github Repo: AI Engineering Curriculum comes with 50+ projects🚀 olud.ai📈 Also gaining ground: ⭐ rohitg00/ai-engineering-from-scratch +1,193 stars (total 63.9k) « Learn it. Build it. Ship it for others. » https://olud.ai/project/rohitg00-ai-engineering-from-scratch.html #OpenSource #AI #GitHub1 like@kunalD_official75k stars in about 7 months, and it's completely free. @ghumare64's AI Engineering from Scratch: 542 lessons across 20 phases, math all the way to agents. Project starters that fail until you implement them yourself. Starting AI engineering? Start here. https://t.co/cAHhdtQnKM…r/SATNA_PROJECT523 free AI engineering lessons on GitHub—and you build the algorithms before touching the frameworksGitHub Trending💎 Hidden Gem! 💎 (1000+ new stars) 📦 rohitg00 / ai-engineering-from-scratch ⭐ 60,825 (+1,287) 🗒 Python Learn it. Build it. Ship it for others.1 like@benou_irl$7er/SATNA_PROJECT523 free AI engineering lessons on GitHub—and you build the algorithms before touching the frameworks🚀 olud.ai📈 Also gaining ground: ⭐ rohitg00/ai-engineering-from-scratch +1,846 stars (total 58.3k) « Learn it. Build it. Ship it for others. » https://olud.ai/project/rohitg00-ai-engineering-from-scratch.html #OpenSource #AI #GitHub1 like@thebylinehqWant to understand AI, not just call it? This free course has you build backprop and a tokenizer by hand before you touch the libraries, and you can load it into Claude Code or Codex so your agent tutors you, starting from a placement quiz. https://t.co/l5UamyEMtq https://t.co/MzWCo7z7pGデイリーGitHubトレンド今日のGitHubトレンド rohitg00/ai-engineering-from-scratch AIを専門的に使いこなすためのオープンソースの学習カリキュラムです。 PythonやTypeScriptなどの言語を用い、523のレッスンを通じてプロンプトやAIエージェントなどの成果物を実際に構築しながら、AIエンジニアリングを実践的に習得することを目的としています。1 like

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar projects

See all in Education

The official code for Sebastian Raschka’s book on building a GPT-like LLM in PyTorch, one chapter at a time. The notebooks cover text data, attention, pretrain…

New108k

AI For Beginners

microsoft · Kit

Microsoft’s free 12-week, 24-lesson AI curriculum, with quizzes, Jupyter notebooks and labs. It runs from the history of AI and expert systems through neural n…

New70.6k

Hermes Agent

NousResearch · Kit

Nous Research’s open source agent that you run in a terminal, in a desktop app or from a chat app. It keeps memory, writes skills from experience, runs schedul…

New261k