From Zero to Autonomous AI Systems: The Open-Source Curriculum That Builds Real Engineers, Not Just…
From Zero to Autonomous AI Systems: The Open-Source Curriculum That Builds Real Engineers, Not Just API Callers

A striking statistic frames the problem precisely: 84% of students already use AI tools in their daily work, yet only 18% feel genuinely prepared to use them in a professional engineering context. That gap is not caused by a shortage of learning material. It exists because of what most available material actually teaches.
The dominant format for AI education today is a collection of disconnected pieces. A research paper here, a fine-tuning tutorial there, an agent demo somewhere else. Each fragment is self-contained and polished. None of them connect. A developer can ship a working chatbot without being able to explain the loss curve that trained the model underneath it. They can wire a function into an agent without understanding what the attention mechanism is doing inside the model that called it. The individual skills accumulate. The underlying understanding does not.
This is the environment that the open-source project AI Engineering From Scratch was designed to address. It is not another collection of tutorials. It is a structured, linear, 20-phase curriculum that begins with linear algebra and ends with autonomous multi-agent swarms, with every algorithm written from raw mathematics before any production library is introduced. The project is free, MIT-licensed, and designed to run on a personal laptop.
The Core Principle: Build Before You Import
The philosophy that organizes the entire curriculum can be stated simply: no framework until the algorithm underneath it has been built by hand.
By the time a learner reaches PyTorch in this curriculum, they have already implemented backpropagation from scratch. They have written a tokenizer. They have built the attention mechanism step by step. They have constructed an agent loop in pure Python. When PyTorch appears, it is not a magic box; it is a faster, more robust version of something the learner already understands from the inside.
This sequencing is deliberately strict. The curriculum does not allow skipping foundational layers and then returning to patch the gaps later. The 20 phases stack on top of each other in a specific order, and that order is not arbitrary. Mathematics is the floor. Production infrastructure and autonomous agent systems are the roof. The structural integrity of everything in between depends on what was laid before it.
Each lesson follows a fixed six-beat structure: read and understand the problem, derive the mathematics, write the code, run the tests, and keep the artifact as a reusable deployable output. There are no five-minute explainer videos. There is no copy-paste deployment. Every lesson produces something that works independently and can be installed into a production workflow.
The Architecture of the Curriculum
The full curriculum spans 473 lessons across 20 phases, covering approximately 320 hours of structured work. Four programming languages are used throughout, each assigned to the domain where it performs best.
Python handles machine learning pipelines and the majority of model implementation work. TypeScript covers agent tooling and the interfaces between AI systems and the broader software ecosystem. Rust is used for performance-critical components where latency and memory efficiency matter. Julia handles advanced numerical and mathematical computation.
This is not a multilingual exercise in diversity. Each language is present because it is the right tool for a specific class of problem that engineers actually encounter in production AI systems.
The 20 phases progress as follows. Phase 0 establishes the development environment and tooling. Phase 1 covers mathematical foundations, building the intuition behind every AI algorithm through code. Phase 2 covers classical machine learning, which remains the backbone of most production AI systems despite the attention paid to large models. Phase 3 covers deep learning core concepts from first principles, without any frameworks until the fundamentals are solid.
Phases 4 through 6 move into specialized domains: computer vision from pixels to video and world models, natural language processing from foundational text handling to advanced language understanding, and speech and audio processing end to end. Phase 7 is a deep technical dive into the Transformer architecture specifically, given its central role in contemporary AI.
Phase 8 covers generative AI across modalities: images, video, audio, and 3D. Phase 9 covers reinforcement learning, which is the theoretical foundation of RLHF and game-playing AI systems. Phase 10 covers building large language models from scratch, including training, architecture decisions, and evaluation. Phase 11 covers LLM engineering in production contexts, moving from model understanding to practical deployment.
Phase 12 addresses multimodal AI across vision, language, and reasoning. Phase 13 covers the tools and protocols that connect AI systems to the real world, including a full implementation of the Model Context Protocol. Phase 14 is one of the most substantial phases in the curriculum: 42 lessons covering agent engineering from the loop itself through memory systems, planning, frameworks, benchmarking, and production deployment. Phase 15 moves to autonomous systems, covering long-horizon agents and the safety considerations relevant as of 2026. Phase 16 covers multi-agent coordination, emergence, and collective intelligence in swarm architectures. Phase 17 covers the infrastructure required to ship AI reliably at scale. Phase 18 covers ethics, safety, and alignment, treated not as an optional supplement but as an integral engineering discipline. Phase 19 consists of 55 capstone lessons organized around 17 end-to-end products and 4 deep build tracks, ranging from 20 to 40 hours per project.
What Each Lesson Produces
Most educational curricula end a lesson with a completed exercise. This curriculum ends each lesson with a reusable artifact that can be installed into an active development workflow.
The artifact types span four categories. Prompts are template files designed for expert-level assistance on specific narrow tasks, not generic prompts, but precisely scoped templates that reflect the depth of understanding developed during the lesson. Skills are SKILL.md files compatible with agents, including Claude, Cursor, Codex, OpenClaw, and Hermes. Agents are autonomous workers built during Phase 14 that the learner assembled themselves and can deploy independently. MCP servers are complete Model Context Protocol server implementations built during Phase 13.
By the end of the curriculum, a learner has accumulated 473 artifacts they understand completely because they built every one of them. The repository ships with 382 skills and 99 prompts, all available for immediate installation.
A worked example from Phase 14 illustrates how this functions in practice. The first lesson in the agent engineering phase produces a ReAct-style agent loop in approximately 120 lines of pure Python with no external dependencies:
def run(query, tools):
history = [user(query)]
for step in range(MAX_STEPS):
msg = llm(history)
if msg.tool_calls:
for call in msg.tool_calls:
result = tools[call.name](**call.args)
history.append(tool_result(call.id, result))
continue
return msg.content
raise StepLimitExceeded
That same lesson also produces a skill file that can be dropped into any compatible agent, and a debugging prompt for diagnosing failures in agent execution traces. The implementation and the deployable output arrive together. There is no separation between understanding the algorithm and having a tool that uses it.
Getting Started and Finding the Right Entry Point
The curriculum offers three ways to engage. The first is purely reading: any completed lesson is available on the course website without cloning or setup. The second is cloning the repository and running code directly:
git clone https://github.com/rohitg00/ai-engineering-from-scratch.git
cd ai-engineering-from-scratch
python phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py
The third approach, which is recommended for most learners, is using the built-in placement system. Inside any compatible agent environment, running the placement command initiates a ten-question assessment that maps existing knowledge to a starting phase and generates a personalized path with hour estimates:
/find-your-level
After completing each phase, a per-phase comprehension check is available:
/check-understanding 3
This generates eight questions with feedback and identifies specific lessons to review before moving forward. The placement logic is not cosmetic; it produces meaningfully different starting points depending on a learner’s background.
A complete beginner starting from Phase 0 should expect approximately 306 hours of work. A developer who knows Python but is new to machine learning can begin at Phase 1 and should expect around 270 hours. Someone who knows deep learning but wants to focus on large language models and agents can jump to Phase 10 for roughly 100 hours of focused work. A senior engineer who specifically wants agent engineering can begin at Phase 14 for approximately 60 hours.
Installing the Artifact Library
The entire artifact library can be installed into any compatible agent environment without cloning the repository:
npx skills add rohitg00/ai-engineering-from-scratch
Targeted installation is also supported — a single skill by name, or all artifacts from a specific phase:
npx skills add rohitg00/ai-engineering-from-scratch --skill agent-loop
npx skills add rohitg00/ai-engineering-from-scratch --phase 14
The installer detects the target agent’s skills directory automatically and writes to the appropriate path for Claude, Cursor, Codex, OpenClaw, Hermes, or any tool that reads a SKILL.md or AGENTS.md directory structure.
For offline installation or environments requiring custom layouts, a Python script provides additional control, including tag filtering, dry runs, and configurable directory structures:
python3 scripts/install_skills.py <target> --type all
python3 scripts/install_skills.py <target> --tag rag
python3 scripts/install_skills.py <target> --dry-run
The Phase 14 capstone also ships a reusable Agent Workbench pack that can be scaffolded into any existing repository:
python3 scripts/scaffold_workbench.py path/to/your-repo
This produces the full workbench structure including an AGENTS.md file, initialization and verification scripts, a task board, and an agent state file, everything needed to run a structured multi-step agent workflow from an existing codebase.
The Foundational Papers Behind the Curriculum
The curriculum is organized around the research that produced the current AI landscape, mapping landmark papers to the phases where their content is built from scratch. The Transformer architecture from Vaswani et al. is covered in Phase 7. The GPT-3 few-shot learning paper maps to Phase 10. Denoising diffusion probabilistic models are covered in Phase 8. InstructGPT and RLHF, along with Direct Preference Optimization, are both in Phase 10. Chain-of-Thought prompting is in Phase 11. The ReAct paper on reasoning and acting in language models maps to Phase 14. Anthropic’s Model Context Protocol is covered in Phase 13.
This alignment between research and implementation is intentional. Reading a paper is one form of understanding. Building the algorithm it describes, from the mathematical derivation to a working artifact, is a different and more durable form of understanding entirely.
Quality Control and Contribution Infrastructure
The curriculum maintains a continuous integration pipeline that enforces structural consistency across all 473 lessons. A catalog builder walks every phase and lesson on disk and generates a machine-readable inventory that always matches what is actually present in the repository rather than what the documentation claims. A GitHub Action rebuilds this catalog on every pull request and fails the build if the committed file is stale.
A lesson audit script validates directory structure, documentation presence, code directory contents, and quiz schema against ten rules. Contributors run this before submitting:
python3 scripts/audit_lessons.py
python3 scripts/audit_lessons.py --phase 14
A syntax checker byte-compiles every Python file in every lesson’s code directory, catching the most common regressions, indentation errors, broken string formatting, and stray edits without requiring API keys or heavy dependencies:
python3 scripts/lesson_run.py
python3 scripts/lesson_run.py --strict
This infrastructure ensures that the curriculum remains usable as it grows. Lessons contributed by the community go through the same validation that the core lessons do, and the tooling makes it straightforward to verify conformance before a pull request is opened.
Why This Moment Matters
The context for this curriculum is worth stating directly. The observation from industry that “models will keep getting better” is accurate, and it has a consequence that is often underappreciated: as models improve, the skill that compounds in value is not the ability to call an API. It is the ability to understand what the model is actually doing, to diagnose why it is failing, to design the system around it correctly, and to know what to build.
The gap between AI tool users and AI system builders is real and widening. The 84% statistic about AI tool adoption among students, set against the 18% who feel professionally prepared, describes a population that has learned to use outputs without understanding how to shape them. That is a workable position today. It becomes a liability as the systems grow more complex and the decisions made around them carry greater consequence.
A curriculum that requires building backpropagation, attention, tokenization, and agent loops from mathematical first principles before touching a framework is not making things unnecessarily hard. It is ensuring that the engineer who finishes it actually understands what they are deploying.
Conclusion
The AI Engineering From Scratch curriculum offers something that is genuinely scarce in technical education: a complete, structured path from mathematical foundations to production autonomous systems, where every abstraction is earned by building the layer beneath it first. The 473 lessons, 20 phases, and approximately 320 hours of work are substantial, but the structure is honest about what depth of understanding requires.
The combination of free access, open-source licensing, four-language coverage, immediate artifact production at every lesson, and a rigorous quality control pipeline makes this curriculum a serious resource for engineers who want to build AI systems they truly understand. The placement system and phase-based entry points mean that the curriculum is accessible to learners at very different starting points without requiring anyone to wade through material they have already mastered.
For developers who have spent time on the surface of AI without understanding what is underneath it, or for those preparing to work on systems where that understanding genuinely matters, this curriculum represents one of the most complete freely available paths from foundational mathematics to production-grade agent engineering.
The repository is available at: https://github.com/rohitg00/ai-engineering-from-scratch
메타데이터
- post_id
- 3c2d851fc32b
- slug
- from-zero-to-autonomous-ai-systems-the-open-source-curriculum-that-builds-real-engineers-not-just-3c2d851fc32b
- url
- https://medium.com/open-intelligence/from-zero-to-autonomous-ai-systems-the-open-source-curriculum-that-builds-real-engineers-not-just-3c2d851fc32b
- canonical_url
- https://medium.com/open-intelligence/from-zero-to-autonomous-ai-systems-the-open-source-curriculum-that-builds-real-engineers-not-just-3c2d851fc32b
- author_url
- https://medium.com/@eng.fadishaar
- status
- ok
- fetched_at
- 2026-06-09 15:37:30