What is AI Engineering from Scratch?
AI Engineering from Scratch is Rohit Ghumare's free curriculum for developers who want to know how AI systems work underneath the libraries. Its 542 lessons sit in 20 phases, from setup and linear algebra through classical machine learning, deep learning, transformers and a small LLM built by hand, then on to LLM engineering, tools and protocols, agents, multi-agent systems, production infrastructure, safety and capstone projects. Lessons use Python, TypeScript, Rust, Julia or Go, and each one ends with something you keep, such as a prompt, a skill, an agent or an MCP server.
You can read it on aiengineeringfromscratch.com, clone the repo, or run `npx skills add rohitg00/ai-engineering-from-scratch` to install tutor skills into Claude Code, Codex, Cursor or another agent that reads SKILL.md. A ten-question placement quiz writes a study plan to LEARNING.md, and shorter routes cover only MCP (17 lessons) or Agent Skills (5 lessons).
The repo was created in March 2026 and has about 80,800 GitHub stars, 14,500 forks and 32 contributors. It is MIT-licensed and ships dated edition tags; the latest, v2026.11.5, came out on 25 November 2026.
Is AI Engineering from Scratch worth it?
The case for AI Engineering from Scratch is its method. Most lessons have you write a small version of a component, such as a tokenizer, an attention layer or an agent loop, and then show where a production library does the same job. The README argues that a person who has written the small version knows where to look when a loss turns into NaN or an agent repeats the same tool call. The roadmap marks all 542 lessons complete and puts the whole course at about 332 hours. The README's own estimates run from about 60 hours for a senior engineer who only wants Phase 14, agent engineering, to about 306 hours for someone new to programming.
Its nearest neighbours on GitHub each do one part of this better. Sebastian Raschka's llms-from-scratch goes deeper on a single GPT-style model, written by one author with a book behind it. Microsoft's generative-ai-for-beginners spends 21 lessons on building apps with hosted models, so it is shorter and assumes less maths. minimind trains one small model end to end on a single consumer GPU, and Learn Harness Engineering covers the files and checks around a coding agent, a topic Phase 14 here only touches. This repo earns its place when you want all of it in one sequence, with a placement quiz to tell you where to start.
The weak points come with the scale. The author accounts for 2,413 of the commits, and the lesson count has risen from the 435 he described in an early DEV Community post to 542 today. Posted to Hacker News in May 2026, it drew 58 points and was flagged, with commenters calling the docs verbose, repetitive and AI-written. The shared requirements.txt lists 18 packages, PyTorch and the Anthropic and OpenAI SDKs among them, all with minimum versions and no upper bounds, so a fresh install months from now may not match what a lesson was written against. Hysen Labs also points out that the README is translated into about 33 languages while the lessons stay in English.
Lessons run on your own machine, and two parts reach outside it. Those that call hosted models need your own Anthropic or OpenAI key and bill that account. The tutor skills run inside your coding agent, read lessons from the repo and send them, with your answers, to whichever model provider the agent uses; `npx skills` writes into folders such as .claude/skills or .codex/skills that the agent loads. There have been 14 dated editions so far and lessons change between them, so it helps to note the edition you started from.
Where it earns its place
A backend engineer moving onto an AI team
Find out which parts of the course to skip
Install the skills with npx, run /find-your-level in Claude Code and answer ten questions; it writes LEARNING.md with a starting phase and hour estimates. Free apart from the agent's model usage.
A platform engineer asked to ship an internal MCP server
Learn MCP properly without the rest of the curriculum
Follow the 17-lesson MCP route, which covers transports, security, reliability and conformance and tracks progress in MCP-LEARNING.md. The README estimates about 23 hours.
A university lecturer teaching an applied machine-learning module
Borrow from-scratch exercises with runnable code
Take lessons from Phases 1 to 3, which cover the maths, classical ML and the core of deep learning in Python, and pin your own dependency versions, since requirements.txt sets only minimums. The MIT licence allows reuse with attribution.
Before you commit
- Setup
- Read in the browser with no setup, or clone and run lessons from the repo root with Python 3.10+. The tutor route needs Node.js, npx and a skill-capable agent such as Claude Code or Codex.
- Integrations
- Tutor skills install through npx skills into Claude Code, Codex, Cursor and other hosts that read SKILL.md; lessons use PyTorch, Hugging Face libraries and the Anthropic and OpenAI SDKs.
- Data and privacy
- Lessons run locally. Hosted-model lessons send prompts to Anthropic or OpenAI under your key, and the tutor sends lesson text and your answers to your agent's model provider. MIT licence.
- Cost at scale
- Free. The costs are your own model API usage, any agent subscription, and GPU time for the deep-learning phases if your machine has none; the course publishes no cost estimate.
- Limits
- Unpinned dependencies, dated editions that change lessons in place, English-only lesson text, and 66 open issues and pull requests.
What’s good
- 542 lessons across 20 phases, from linear algebra to multi-agent systems
- Write-the-small-version method, with code in five languages
- Ten-question placement quiz and short MCP and Agent Skills routes
- MIT licence, no signup, readable on the web with no setup
What’s not
- Writing criticised on Hacker News as verbose and AI-sounding
- requirements.txt sets no upper version bounds
- Lessons change between frequent dated editions
- Translations cover the README, while lessons stay English
Best for
Developers who already code and want to understand models and agents from the maths up, one phase at a time.
AI Engineering from Scratch alternatives
AI Engineering from Scratch: common questions
- Is AI Engineering from Scratch worth it?
- A free curriculum built on the right habit of writing the small version of each idea first, best taken a phase at a time, since few readers will get through all 542 lessons. We rate it 4.1 out of 5.
- How much does AI Engineering from Scratch cost?
- Free (MIT), no signup. Lessons that call hosted models use your own Anthropic or OpenAI key, and the tutor route uses your coding agent's plan.
- What are the downsides of AI Engineering from Scratch?
- Writing criticised on Hacker News as verbose and AI-sounding; requirements.txt sets no upper version bounds; lessons change between frequent dated editions; translations cover the README, while lessons stay English.
- Who is AI Engineering from Scratch best for?
- Developers who already code and want to understand models and agents from the maths up, one phase at a time.
- How much does AI Engineering from Scratch cost for a team or in production?
- Free. The costs are your own model API usage, any agent subscription, and GPU time for the deep-learning phases if your machine has none; the course publishes no cost estimate.
- Is AI Engineering from Scratch safe for company data?
- Lessons run locally. Hosted-model lessons send prompts to Anthropic or OpenAI under your key, and the tutor sends lesson text and your answers to your agent's model provider. MIT licence.
- What are the best AI Engineering from Scratch alternatives?
- The closest alternatives we have reviewed are LLMs from Scratch, Generative AI for Beginners, MiniMind, Learn Harness Engineering and LLM Course.
Answers checked Nov 27, 2026.