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.
Evidence shows the repository is an educational curriculum, not an executable agent, so there are no mechanisms for least privilege, user confirmation, data flow transparency, sensitive data handling, dependency security, external effects, rollback, or source attribution. All trust criteria score 0 because no trust controls are implemented.
Self-consistency: The curriculum structure is consistent, and README and test files show consistent naming and structure, but not all 503 lessons are verified, so score 2. Dependency availability: requirements.txt lists common dependencies but lacks locked versions or integrity checks, score 1. Failure messages: Test files have assertions but no user-friendly error messages, score 1.
Audience and scenarios: README clearly targets learners and provides multiple usage modes, score 2. Capability boundaries: No explicit statement of course coverage or limitations, score 1. Trigger precision: Skill commands like /learn are described but not detailed trigger conditions, score 1. Environment fit: Supports multiple agents and languages but lacks detailed environment configuration, score 2.
Information architecture: Clear directory structure with phase and lesson lists, score 2. Install notes: README provides installation commands, score 2. Naming stability: Consistent lesson naming but no version stability statement, score 1. Examples and FAQ: Example code present but no FAQ, score 2. Known limitations: Not mentioned, score 0. License: MIT license clear, score 2. Versioning and changelog: ROADMAP.md exists but no CHANGELOG, score 1. Maintenance responsibility: No explicit maintainer, score 1.
Output usability: Lessons produce reusable artifacts, score 2. Marginal value: Provides unique learning path, score 2. Cost-benefit: Free and open source but no cost analysis, score 1.
Claim traceability: Claims in README lack evidence, score 1. Cross-source corroboration: No external verification, score 1. Fact-inference separation: Not explicitly distinguished, score 1.
- This repository is an educational curriculum, not an executable agent product, so trust-related criteria are not applicable.
- Dependencies are not version-locked, posing supply chain risks.
- No known limitations or FAQ provided, users may encounter undocumented issues.
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.
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 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>.
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.