AI Engineering from Scratch
A free, open-source curriculum of 503 lessons across 20 phases, teaching you to build AI end-to-end from math to agents.
- Source repo
- rohitg00/ai-engineering-from-scratch
- Stars
- ★ 78k
- Last updated
- 1d ago
- License
- MIT
- Primary language
- Python
- FA score
- 66/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer who wants to understand AI algorithms from the ground up, implementing models instead of just calling APIs.
- Not a fit if
- Developers who only want to call APIs, not build algorithms from scratch
- Learners needing complete non-English lessons; only landing pages are translated
- Anyone wanting a quick reference rather than a ~340-hour curriculum
- Website
- aiengineeringfromscratch.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-09latest release v2026.11.2 (2026-11-09)+240.0 ★/day over 7 days
- Source review
- 66/100 · Some gaps
What does this agent do, and when should you use it?
This repository is a comprehensive, free, open-source AI engineering curriculum organized into 20 phases and 503 lessons, covering Python, TypeScript, Rust, and Julia. It spans from math foundations and classical machine learning, through deep learning, computer vision, NLP, transformers, generative AI, reinforcement learning, LLM engineering, multimodal models, agent engineering, autonomous systems, multi-agent and swarms, to production infrastructure and safety. Each lesson follows a 'Build It / Use It' pattern: implement algorithms from raw math, then replicate using production frameworks like PyTorch, and ship a reusable artifact (prompt, skill, agent, or MCP server). The course is accessible via a website, as a cloned repository, or through agent skills that turn your coding agent into a tutor. A six-volume EPUB/PDF book series is also built via CI and attached to releases.
The repository provides structured course content: lesson narratives under phases/<num>-<phase>/<num>-<lesson>/docs/en.md, runnable code in code/, and artifacts like prompts, skills, agents, and MCP servers in outputs/. It integrates with any agent that reads SKILL.md via a skills/ directory, offering commands like /start-learning, /learn, /course-guide, /find-your-level, and /check-understanding to guide learners through placement quizzes, personalized plans, interactive lessons, and quizzes. Installation is via npx skills add rohitg00/ai-engineering-from-scratch or cloning the repo. The course can be consumed from the command line, the website (aiengineeringfromscratch.com), or by running lesson code directly (e.g., python phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py). The book can be built locally with python3 scripts/build_book.py.
- A developer who wants to understand AI algorithms from the ground up, implementing models instead of just calling APIs.
- A professional needing to use AI tools in their work but lacking systematic training and seeking a hands-on, curriculum-based path.
- A software engineer who wants to train their coding agent as an AI tutor, using interactive lessons and personalized study plans.
- A learner who wants to build a portfolio of reusable prompts, skills, agents, and MCP servers as they learn.
- A reader who prefers consuming the course as an EPUB/PDF book series for offline study.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx skills add rohitg00/ai-engineering-from-scratch
How do you install or deploy this agent?
You can start learning without cloning: in any agent that supports SKILL.md (e.g., Claude Code, Cursor, Codex, OpenClaw, Hermes), run npx skills add rohitg00/ai-engineering-from-scratch and then use /start-learning. To clone and run locally, use git clone https://github.com/rohitg00/ai-engineering-from-scratch.git and install necessary dependencies; Python 3 is required for running lesson code, and Node.js is needed for npx. Detailed setup steps are in the README.
How do you use this agent?
In your agent, run /start-learning to take a ten-question placement quiz, which generates a personalized study plan saved to LEARNING.md. Then use /learn to go through lessons interactively (concept → math → code → quiz), and /course-guide <topic> to jump to specific lessons. Alternatively, read lessons on the website or clone the repo and run code, e.g., python phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py. Install all skills with python3 scripts/install_skills.py <target>.
What are this agent's strengths and limitations?
- Builds every algorithm from raw math, ensuring deep understanding
- Each lesson ships a reusable artifact (prompt, skill, agent, MCP server), building a portfolio
- Extremely broad coverage: from fundamentals to multi-agent and production, with 20 phases and 503 lessons
- Free forever with MIT license, and multi-language support in landing pages
- Agent integration provides an interactive, personalized learning experience directly in your coding environment
- Large time commitment (~320 hours) may feel overwhelming for beginners
- Requires setup of Python, Node.js, and optionally Docker, which may be a barrier for some
- English is the only complete language; other languages only translate landing pages, not lessons
- Being a curriculum, it focuses on learning rather than production-ready code, so you'll need to apply it yourself
How does this agent compare with similar options?
This curriculum positions itself as a comprehensive alternative to scattered tutorials and papers, focusing on building foundations rather than just using frameworks. It may be compared with other AI courses, but it stands out for its depth, breadth, and artifact-driven approach.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AI Engineering from Scratch This agent | 66 · Some gaps | CLIFree | ★ 78k | 1d ago | Python | Codex · Claude Code |
| Open Interpreter | 72 · Some gaps | CLIFree + model costs | ★ 69k | today | Rust | Codex |
| Swiftide | 68 · Some gaps | Library / SDKFree + model costs | ★ 804 | 5d ago | Rust | OpenAI API · Claude API |
| Stream Vision Agents | 57 · Major gaps | Library / SDKFree + model costs | ★ 8.2k | 2d ago | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
AGENTS.md frames the repository as a curriculum rather than a SaaS product and specifies a dependency allowlist; workflow permissions and credential persistence also have local constraints, supporting a partial least-privilege score. The installer writes into a selected skills directory, and an automated workflow can commit and open a PR, while the sample does not establish complete confirmation, data handling, credential governance, or recovery controls. Skill and course material provide some source attribution and limitation statements, but publisher identity and maintenance ownership remain unclear.
The skills' learning flows broadly align with README routes and local project commands. Reference implementations and certification test samples show concrete structures, but some claims remain documentation-only and the static sample cannot establish repository-wide consistency. The preflight is described as reporting detected reasons and corrective commands; dependency pinning and availability are not consistently evidenced across the supplied files.
The README provides routes for beginners, engineers, agents, MCP, and skills, with entry points and time estimates for different backgrounds, so audience and scenario coverage is strong. Skills specify trigger phrases, host-specific invocation, prerequisites, and conceptual-mode boundaries. Some skill scopes overlap, and host discovery and installation still depend on the selected environment, limiting boundary and environment-fit scores.
The repository layout, curriculum hierarchy, skill table, route tables, and project structure are clearly described. Installation and host commands are concrete, examples are extensive, and the README includes FAQ-like guidance and stated limitations. The MIT license text is complete. Skills carry version fields, but the supplied sample lacks a clear product release changelog and a named maintenance owner.
The product offers reusable lessons, study plans, project artifacts, reports, charts, and local graders. Project instructions emphasize retained evidence and explicitly say metrics do not establish answer correctness, adding practical value. The course is broad and the website offers a no-setup path, but the stated study times are substantial and requirements.txt lists many large optional dependencies, so cost-benefit is not fully established.
The README routes, skill procedures, AGENTS.md lesson contracts, test samples, and reference implementations provide claims and artifacts that can be compared. Certification test samples check specific input constraints and report outputs, improving traceability. The sample does not provide independent evidence for every curriculum-wide claim, so corroboration and fact-versus-inference separation earn partial scores.
- This is a curriculum and tutor-skill collection, not a single production agent for direct deployment; skills write learner progress files and the installer writes to the host-selected skills directory.
- The limited static sample cannot verify all repository-wide curriculum and quality claims. The dependency list includes several large machine-learning packages, so users should check the requirements for their chosen lesson.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v2026.11.2 Edition 2026.11.2: Lessons in Five Languages
Release notes excerpt
Read each lesson in the language you use at work. This edition adds TypeScript ports to most lessons, and Rust, Julia and Go ports to the lessons where each of those languages is the right tool. [Start learning](https://aiengineeringfromscratch.com) · [Catalog](https://aiengineeringfromscratch.com/catalog.html) · [Interviews](https://aiengineeringfromscratch.com/interviews) Lessons in five languages | Language | Lessons | Where | |---|---|---| | Python | 534 | Every lesson with code | | TypeScript | 397 | Most lessons, from math foundations to the capstones | …View on GitHub ↗ -
v2026.11.1 Edition 2026.11.1: Interview Bank and Incident Scenarios
Release notes excerpt
Practise for AI engineering interviews against the course itself. This edition adds an interview bank of 482 questions and 60 measured incident scenarios, a mock interview skill, and code blocks rendered at build time. [Interviews](https://aiengineeringfromscratch.com/interviews) · [Scenarios](https://aiengineeringfromscratch.com/interviews/scenarios) · [Skills](https://aiengineeringfromscratch.com/skills.html) · [Start learning](https://aiengineeringfromscratch.com) …View on GitHub ↗ -
v2026.10.5 Edition 2026.10.5: Lesson Screen, vLLM 101, and Miles 101
Release notes excerpt
Learn beside your terminal, read two new hardware manuals, and practise every lesson. This edition adds the lesson screen for agent tutors, vLLM 101 and Miles 101, 47 practice tasks, and two new inside-the-machine pages. [Start learning](https://aiengineeringfromscratch.com) · [Skills](https://aiengineeringfromscratch.com/skills.html) · [Manuals](https://aiengineeringfromscratch.com/manuals.html) · [Practice](https://aiengineeringfromscratch.com/practice) Lesson screen for agent tutors The new lesson-screen skill opens a browser tab next to the terminal while a tutor teaches. …View on GitHub ↗
FAQ
Is this course really free?
Can I learn without prior AI knowledge?
How long does it take to complete?
Will I get a certificate?
Can I use these skills with my team?
Is AI Engineering from Scratch open source?
Is AI Engineering from Scratch safe to use?
Is AI Engineering from Scratch still maintained?
Who makes AI Engineering from Scratch?
What is AI Engineering from Scratch's official website?
Thanks — we use this to improve the page.