1. Conduid
  2. Agents
  3. AI Engineering From Scratch
MCP server · Agents

AI Engineering From Scratch

Learn it. Build it. Ship it for others.

59Fair

Scored 6 months ago · breakdown

About AI Engineering From Scratch

AI Engineering From Scratch is an MCP server in the Agents category: learn it. Build it. Ship it for others.

Install

From source
git clone https://github.com/rohitg00/ai-engineering-from-scratch

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about AI Engineering From Scratch

Powered by Claude · Grounded in docs

I know everything about AI Engineering From Scratch. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

🧠 AI Engineering from Scratch

From linear algebra to autonomous agent swarms. learn AI with AI, then ship the tools.

PRs Welcome Lessons Phases Hours Stars

Python TypeScript Rust Julia PyTorch JAX Claude Code MCP

🧭 Quick Navigation

🚀 Get Started  ·  🤖 AI-Native  ·  🗺️ The Journey  ·  🧰 Toolkit  ·  📚 Glossary  ·  🛣️ Roadmap  ·  🤝 Contribute  ·  🌐 Website


💬 "84% of students already use AI tools. Only 18% feel prepared to use them professionally.

This course closes that gap."

283+ lessons. 20 phases. ~320 hours. From linear algebra to autonomous agent swarms. Python, TypeScript, Rust, Julia. Every lesson produces something reusable: prompts, skills, agents, and MCP servers.

You don't just learn AI. You learn AI with AI. Then you build real things. Then you ship tools others can use.

🆚 Why This Course?


🤖 AI-Native Learning

This isn't a course you watch. It's a course you use with your AI coding agent.

🎯 Learn with AI, not just about AI

# 🧪 Find where to start based on what you already know
/find-your-level

# ✅ Quiz yourself after completing a phase
/check-understanding 3

# 📦 Every lesson produces a reusable artifact
ls phases/03-deep-learning-core/05-loss-functions/outputs/
# ├── prompt-loss-function-selector.md
# └── prompt-loss-debugger.md

🛠️ Built-in Claude Code Skills

🎴 Skill ⚡ What it does
find-your-level 🧭 10-question quiz that maps your knowledge to a starting phase and builds a personalized path with hour estimates
check-understanding 📝 Per-phase quiz (8 questions) with feedback and specific lessons to review

🚢 Every Lesson Ships Something

Other courses end with "congratulations, you learned X." Our lessons end with a reusable tool:

📝Prompts Paste into any AI assistant for expert-level help

🎴Skills Install into Claude Code, Cursor, or any agent

🤖Agents Deploy as autonomous workers

🔌MCP Servers Plug into any MCP-compatible AI app

277-term searchable glossary. Full lesson catalog. ~306 hours of content with per-lesson time estimates. 🌐 Browse the website →


🗺️ The Journey

20 phases · 283+ lessons · click any phase to expand

Phase 0 Phase 1 Phase 2 Phase 3 Phase 4 Phase 5 Phase 6 Phase 7 Phase 8 Phase 9 Phase 10 Phase 11 Phase 12 Phase 13 Phase 14 Phase 15 Phase 16 Phase 17 Phase 18 Phase 19

Legend: Build hands-on implementation  ·  Learn concept + intuition

12 lessons

🛠️ Get your environment ready for everything that follows.

# Lesson Type Lang
01 Dev Environment Build 🐍 🟦 🦀
02 Git & Collaboration Learn —
03 GPU Setup & Cloud Build 🐍
04 APIs & Keys Build 🐍 🟦
05 Jupyter Notebooks Build 🐍
06 Python Environments Build 🐍
07 Docker for AI Build 🐍
08 Editor Setup Build —
09 Data Management Build 🐍
10 Terminal & Shell Learn —
11 Linux for AI Learn —
12 Debugging & Profiling Build 🐍
# Lesson Type Lang
01 Linear Algebra Intuition Learn 🐍 🟣
02 Vectors, Matrices & Operations Build 🐍 🟣
03 Matrix Transformations & Eigenvalues Build 🐍 🟣
04 Calculus for ML: Derivatives & Gradients Learn 🐍
05 Chain Rule & Automatic Differentiation Build 🐍
06 Probability & Distributions Learn 🐍
07 Bayes' Theorem & Statistical Thinking Build 🐍
08 Optimization: Gradient Descent Family Build 🐍
09 Information Theory: Entropy, KL Divergence Learn 🐍
10 Dimensionality Reduction: PCA, t-SNE, UMAP Build 🐍
11 Singular Value Decomposition Build 🐍 🟣
12 Tensor Operations Build 🐍
13 Numerical Stability Build 🐍
14 Norms & Distances Build 🐍
15 Statistics for ML Build 🐍
16 Sampling Methods Build 🐍
17 Linear Systems Build 🐍
18 Convex Optimization Build 🐍
19 Complex Numbers for AI Learn 🐍
20 The Fourier Transform Build 🐍
21 Graph Theory for ML Build 🐍
22 Stochastic Processes Learn 🐍
# Lesson Type Lang
01 What Is Machine Learning Learn 🐍
02 Linear Regression from Scratch Build 🐍
03 Logistic Regression & Classification Build 🐍
04 Decision Trees & Random Forests Build 🐍
05 Support Vector Machines Build 🐍
06 KNN & Distance Metrics Build 🐍
07 Unsupervised Learning: K-Means, DBSCAN Build 🐍
08 Feature Engineering & Selection Build 🐍
09 Model Evaluation: Metrics, Cross-Validation Build 🐍
10 Bias, Variance & the Learning Curve Learn 🐍
11 Ensemble Methods: Boosting, Bagging, Stacking Build 🐍
12 Hyperparameter Tuning Build 🐍
13 ML Pipelines & Experiment Tracking Build 🐍
14 Naive Bayes Build 🐍
15 Time Series Fundamentals Build 🐍
16 Anomaly Detection Build 🐍
17 Handling Imbalanced Data Build 🐍
18 Feature Selection Build 🐍
# Lesson Type Lang
01 The Perceptron: Where It All Started Build 🐍
02 Multi-Layer Networks & Forward Pass Build 🐍
03 Backpropagation from Scratch Build 🐍
04 Activation Functions: ReLU, Sigmoid, GELU & Why Build 🐍
05 Loss Functions: MSE, Cross-Entropy, Contrastive Build 🐍
06 Optimizers: SGD, Momentum, Adam, AdamW Build 🐍
07 Regularization: Dropout, Weight Decay, BatchNorm Build 🐍
08 Weight Initialization & Training Stability Build 🐍
09 Learning Rate Schedules & Warmup Build 🐍
10 Build Your Own Mini Framework Build 🐍
11 Introduction to PyTorch Build 🐍
12 Introduction to JAX Build 🐍
13 Debugging Neural Networks Build 🐍
# Lesson Type Lang
01 Image Fundamentals: Pixels, Channels, Color Spaces Learn 🐍
02 Convolutions from Scratch Build 🐍
03 CNNs: LeNet to ResNet Build 🐍
04 Image Classification Build 🐍
05 Transfer Learning & Fine-Tuning Build 🐍
06 Object Detection — YOLO from Scratch Build 🐍
07 Semantic Segmentation — U-Net Build 🐍
08 Instance Segmentation — Mask R-CNN Build 🐍
09 Image Generation — GANs Build 🐍
10 Image Generation — Diffusion Models Build 🐍
11 Stable Diffusion — Architecture & Fine-Tuning Build 🐍
12 Video Understanding — Temporal Modeling Build 🐍
13 3D Vision: Point Clouds, NeRFs Build 🐍
14 Vision Transformers (ViT) Build 🐍
15 Real-Time Vision: Edge Deployment Build 🐍 🦀
16 Build a Complete Vision Pipeline Build 🐍
17 Self-Supervised Vision — SimCLR, DINO, MAE Build 🐍
18 Open-Vocabulary Vision — CLIP Build 🐍
19 OCR & Document Understanding Build 🐍
20 Image Retrieval & Metric Learning Build 🐍
21 Keypoint Detection & Pose Estimation Build 🐍
22 3D Gaussian Splatting from Scratch Build 🐍
23 Diffusion Transformers & Rectified Flow Build 🐍
24 SAM 3 & Open-Vocabulary Segmentation Build 🐍
25 Vision-Language Models (ViT-MLP-LLM) Build 🐍
26 Monocular Depth & Geometry Estimation Build 🐍
27 Multi-Object Tracking & Video Memory Build 🐍
28 World Models & Video Diffusion Build 🐍
# Lesson Type Lang
01 Text Processing: Tokenization, Stemming, Lemmatization Build 🐍
02 Bag of Words, TF-IDF & Text Representation Build 🐍
03 Word Embeddings: Word2Vec from Scratch Build 🐍
04 GloVe, FastText & Subword Embeddings Build 🐍
05 Sentiment Analysis Build 🐍
06 Named Entity Recognition (NER) Build 🐍
07 POS Tagging & Syntactic Parsing Build 🐍
08 Text Classification — CNNs & RNNs for Text Build 🐍
09 Sequence-to-Sequence Models Build 🐍
10 Attention Mechanism — The Breakthrough Build 🐍
11 Machine Translation Build 🐍
12 Text Summarization Build 🐍
13 Question Answering Systems Build 🐍
14 Information Retrieval & Search Build 🐍
15 Topic Modeling: LDA, BERTopic Build 🐍
16 Text Generation Build 🐍
17 Chatbots: Rule-Based to Neural Build 🐍
18 Multilingual NLP Build 🐍
19 Subword Tokenization: BPE, WordPiece, Unigram, SentencePiece Learn 🐍
20 Structured Outputs & Constrained Decoding Build 🐍
21 NLI & Textual Entailment Learn 🐍
22 Embedding Models Deep Dive Learn 🐍
23 Chunking Strategies for RAG Build 🐍
24 Coreference Resolution Learn 🐍
25 Entity Linking & Disambiguation Build 🐍
26 Relation Extraction & Knowledge Graph Construction Build 🐍
27 LLM Evaluation: RAGAS, DeepEval, G-Eval Build 🐍
28 Long-Context Evaluation: NIAH, RULER, LongBench, MRCR Learn 🐍
29 Dialogue State Tracking Build 🐍
# Lesson Type Lang
01 Audio Fundamentals: Waveforms, Sampling, FFT Learn 🐍
02 Spectrograms, Mel Scale & Audio Features Build 🐍
03 Audio Classification Build 🐍
04 Speech Recognition (ASR) Build 🐍
05 Whisper: Architecture & Fine-Tuning Build 🐍
06 Speaker Recognition & Verification Build 🐍
07 Text-to-Speech (TTS) Build 🐍
08 Voice Cloning & Voice Conversion Build 🐍
09 Music Generation Build 🐍
10 Audio-Language Models Build 🐍
11 Real-Time Audio Processing Build 🐍 🦀
12 Build a Voice Assistant Pipeline Build 🐍
13 Neural Audio Codecs — EnCodec, SNAC, Mimi, DAC Learn 🐍
14 Voice Activity Detection & Turn-Taking Build 🐍
15 Streaming Speech-to-Speech — Moshi, Hibiki Learn 🐍
16 Voice Anti-Spoofing & Audio Watermarking Build 🐍
17 Audio Evaluation — WER, MOS, MMAU, Leaderboards Learn 🐍
# Lesson Type Lang
01 Why Transformers: The Problems with RNNs Learn 🐍
02 Self-Attention from Scratch Build 🐍
03 Multi-Head Attention Build 🐍
04 Positional Encoding: Sinusoidal, RoPE, ALiBi Build 🐍
05 The Full Transformer: Encoder + Decoder Build 🐍
06 BERT — Masked Language Modeling Build 🐍
07 GPT — Causal Language Modeling Build 🐍
08 T5, BART — Encoder-Decoder Models Learn 🐍
09 Vision Transformers (ViT) Build 🐍
10 Audio Transformers — Whisper Architecture Learn 🐍
11 Mixture of Experts (MoE) Build 🐍
12 KV Cache, Flash Attention & Inference Optimization Build 🐍
13 Scaling Laws Learn 🐍
14 Build a Transformer from Scratch Build 🐍
# Lesson Type Lang
01 Generative Models: Taxonomy & History Learn 🐍
02 Autoencoders & VAE Build 🐍
03 GANs: Generator vs Discriminator Build 🐍
04 Conditional GANs & Pix2Pix Build 🐍
05 StyleGAN Build 🐍
06 Diffusion Models — DDPM from Scratch Build 🐍
07 Latent Diffusion & Stable Diffusion Build 🐍
08 ControlNet, LoRA & Conditioning Build 🐍
09 Inpainting, Outpainting & Editing Build 🐍
10 Video Generation Build 🐍
11 Audio Generation Build 🐍
12 3D Generation Build 🐍
13 Flow Matching & Rectified Flows Build 🐍
14 Evaluation: FID, CLIP Score Build 🐍
# Lesson Type Lang
01 MDPs, States, Actions & Rewards Learn 🐍
02 Dynamic Programming Build 🐍
03 Monte Carlo Methods Build 🐍
04 Q-Learning, SARSA Build 🐍
05 Deep Q-Networks (DQN) Build 🐍
06 Policy Gradients — REINFORCE Build 🐍
07 Actor-Critic — A2C, A3C Build 🐍
08 PPO Build 🐍
09 Reward Modeling & RLHF Build 🐍
10 Multi-Agent RL Build 🐍
11 Sim-to-Real Transfer Build 🐍
12 RL for Games Build 🐍
# Lesson Type Lang
01 Tokenizers: BPE, WordPiece, SentencePiece Build 🐍
02 Building a Tokenizer from Scratch Build 🐍
03 Data Pipelines for Pre-Training Build 🐍
04 Pre-Training a Mini GPT (124M) Build 🐍
05 Distributed Training, FSDP, DeepSpeed Build 🐍
06 Instruction Tuning — SFT Build 🐍
07 RLHF — Reward Model + PPO Build 🐍
08 DPO — Direct Preference Optimization Build 🐍
09 Constitutional AI & Self-Improvement Build 🐍
10 Evaluation — Benchmarks, Evals Build 🐍
11 Quantization: INT8, GPTQ, AWQ, GGUF Build 🐍 🦀
12 Inference Optimization Build 🐍
13 Building a Complete LLM Pipeline Build 🐍
14 Open Models: Architecture Walkthroughs Learn 🐍
15 Speculative Decoding and EAGLE-3 Build 🐍
16 Differential Attention (V2) Build 🐍
17 Native Sparse Attention (DeepSeek NSA) Build 🐍
18 Multi-Token Prediction (MTP) Build 🐍
19 DualPipe Parallelism Learn 🐍
20 DeepSeek-V3 Architecture Walkthrough Learn 🐍
21 Jamba — Hybrid SSM-Transformer Learn 🐍
22 Async and Hogwild! Inference Build 🐍
# Lesson Type Lang
01 Prompt Engineering: Techniques & Patterns Build 🐍
02 Few-Shot, CoT, Tree-of-Thought Build 🐍
03 Structured Outputs Build 🐍 🟦
04 Embeddings & Vector Representations Build 🐍
05 Context Engineering Build 🐍 🟦
06 RAG: Retrieval-Augmented Generation Build 🐍 🟦
07 Advanced RAG: Chunking, Reranking Build 🐍
08 Fine-Tuning with LoRA & QLoRA Build 🐍
09 Function Calling & Tool Use Build 🐍
10 Evaluation & Testing Build 🐍
11 Caching, Rate Limiting & Cost Build 🐍
12 Guardrails & Safety Build 🐍
13 Building a Production LLM App Build 🐍
14 Model Context Protocol (MCP) Build 🐍
15 Prompt Caching & Context Caching Build 🐍
# Lesson Type Lang
01 Vision Transformers and the Patch-Token Primitive Learn 🐍
02 CLIP and Contrastive Vision-Language Pretraining Build 🐍
03 BLIP-2 Q-Former as Modality Bridge Build 🐍
04 Flamingo and Gated Cross-Attention Learn 🐍
05 LLaVA and Visual Instruction Tuning Build 🐍
06 Any-Resolution Vision — Patch-n'-Pack and NaFlex Build 🐍
07 Open-Weight VLM Recipes: What Actually Matters Learn 🐍
08 LLaVA-OneVision: Single, Multi, Video Build 🐍
09 Qwen-VL Family and Dynamic-FPS Video Learn 🐍
10 InternVL3 Native Multimodal Pretraining Learn 🐍
11 Chameleon Early-Fusion Token-Only Build 🐍
12 Emu3 Next-Token Prediction for Generation Learn 🐍
13 Transfusion Autoregressive + Diffusion Build 🐍
14 Show-o Discrete-Diffusion Unified Learn 🐍
15 Janus-Pro Decoupled Encoders Build 🐍
16 MIO Any-to-Any Streaming Learn 🐍
17 Video-Language Temporal Grounding Build 🐍
18 Long-Video at Million-Token Context Build 🐍
19 Audio-Language Models: Whisper to AF3 Build 🐍
20 Omni Models: Thinker-Talker Streaming Build 🐍
21 Embodied VLAs: RT-2, OpenVLA, π0, GR00T Learn 🐍
22 Document and Diagram Understanding Build 🐍
23 ColPali Vision-Native Document RAG Build 🐍
24 Multimodal RAG and Cross-Modal Retrieval Build 🐍
25 Multimodal Agents and Computer-Use (Capstone) Build 🐍
# Lesson Type Lang
01 The Tool Interface Learn 🐍
02 Function Calling Deep Dive Build 🐍
03 Parallel and Streaming Tool Calls Build 🐍
04 Structured Output Build 🐍
05 Tool Schema Design Learn 🐍
06 MCP Fundamentals Learn 🐍
07 Building an MCP Server Build 🐍
08 Building an MCP Client Build 🐍
09 MCP Transports Learn 🐍
10 MCP Resources and Prompts Build 🐍
11 MCP Sampling Build 🐍
12 MCP Roots and Elicitation Build 🐍
13 MCP Async Tasks Build 🐍
14 MCP Apps Build 🐍
15 MCP Security I — Tool Poisoning Learn 🐍
16 MCP Security II — OAuth 2.1 Build 🐍
17 MCP Gateways and Registries Learn 🐍
18 MCP Auth in Production — DCR + JWKS on iii Build 🐍
19 A2A Protocol Build 🐍
20 OpenTelemetry GenAI Build 🐍
21 LLM Routing Layer Learn 🐍
22 Skills and Agent SDKs Learn 🐍
23 Capstone — Tool Ecosystem Build 🐍
# Lesson Type Lang
01 The Agent Loop Build 🐍
02 ReWOO and Plan-and-Execute Build 🐍
03 Reflexion and Verbal Reinforcement Learning Build 🐍
04 Tree of Thoughts and LATS Build 🐍
05 Self-Refine and CRITIC Build 🐍
06 Tool Use and Function Calling Build 🐍
07 Memory — Virtual Context and MemGPT Build 🐍
08 Memory Blocks and Sleep-Time Compute Build 🐍
09 Hybrid Memory — Mem0 Vector + Graph + KV Build 🐍
10 Skill Libraries and Lifelong Learning — Voyager Build 🐍
11 Planning with HTN and Evolutionary Search Build 🐍
12 Anthropic's Workflow Patterns Build 🐍
13 LangGraph — Stateful Graphs and Durable Execution Build 🐍
14 AutoGen v0.4 — Actor Model Build 🐍
15 CrewAI — Role-Based Crews and Flows Build 🐍
16 OpenAI Agents SDK — Handoffs, Guardrails, Tracing Build 🐍
17 Claude Agent SDK — Subagents and Session Store Build 🐍
18 Agno and Mastra — Production Runtimes Learn 🐍 🟦
19 Benchmarks — SWE-bench, GAIA, AgentBench Learn 🐍
20 Benchmarks — WebArena and OSWorld Learn 🐍
21 Computer Use — Claude, OpenAI CUA, Gemini Build 🐍
22 Voice Agents — Pipecat and LiveKit Build 🐍
23 OpenTelemetry GenAI Semantic Conventions Build 🐍
24 Agent Observability — Langfuse, Phoenix, Opik Learn 🐍
25 Multi-Agent Debate and Collaboration Build 🐍
26 Failure Modes — Why Agents Break Build 🐍
27 Prompt Injection and the PVE Defense Build 🐍
28 Orchestration Patterns — Supervisor, Swarm, Hierarchical Build 🐍
29 Production Runtimes — Queue, Event, Cron Learn 🐍
30 Eval-Driven Agent Development Build 🐍
# Lesson Type Lang
01 From Chatbots to Long-Horizon Agents (METR) Learn 🐍
02 STaR, V-STaR, Quiet-STaR: Self-Taught Reasoning Learn 🐍
03 AlphaEvolve: Evolutionary Coding Agents Learn 🐍
04 Darwin Gödel Machine: Self-Modifying Agents Learn 🐍
05 AI Scientist v2: Workshop-Level Research Learn 🐍
06 Automated Alignment Research (Anthropic AAR) Learn 🐍
07 Recursive Self-Improvement: Capability vs Alignment Learn 🐍
08 Bounded Self-Improvement Designs Learn 🐍
09 Autonomous Coding Agent Landscape (SWE-bench, CodeAct) Learn 🐍
10 Claude Code Permission Modes and Auto Mode Learn 🐍
11 Browser Agents and Indirect Prompt Injection Learn 🐍
12 Durable Execution for Long-Running Agents Learn 🐍
13 Action Budgets, Iteration Caps, Cost Governors Learn 🐍
14 Kill Switches, Circuit Breakers, Canary Tokens Learn 🐍
15 HITL: Propose-Then-Commit Learn 🐍
16 Checkpoints and Rollback Learn 🐍
17 Constitutional AI and Rule Overrides Learn 🐍
18 Llama Guard and Input/Output Classification Learn 🐍
19 Anthropic Responsible Scaling Policy v3.0 Learn 🐍
20 OpenAI Preparedness Framework and DeepMind FSF Learn 🐍
21 METR Time Horizons and External Evaluation Learn 🐍
22 CAIS, CAISI, and Societal-Scale Risk Learn 🐍
# Lesson Type Lang
01 Why Multi-Agent Learn 🟦
02 FIPA-ACL Heritage and Speech Acts Learn 🐍
03 Communication Protocols Build 🟦
04 The Multi-Agent Primitive Model Learn 🐍
05 Supervisor / Orchestrator-Worker Pattern Build 🐍
06 Hierarchical Architecture and Decomposition Drift Learn 🐍
07 Society of Mind and Multi-Agent Debate Build 🐍
08 Role Specialization — Planner / Critic / Executor / Verifier Build 🐍
09 Parallel Swarm and Networked Architectures Build 🐍
10 Group Chat and Speaker Selection Build 🐍
11 Handoffs and Routines (Stateless Orchestration) Build 🐍
12 A2A — The Agent-to-Agent Protocol Build 🐍
13 Shared Memory and Blackboard Patterns Build 🐍
14 Consensus and Byzantine Fault Tolerance Build 🐍
15 Voting, Self-Consistency, and Debate Topology Build 🐍
16 Negotiation and Bargaining Build 🐍
17 Generative Agents and Emergent Simulation Build 🐍
18 Theory of Mind and Emergent Coordination Build 🐍
19 Swarm Optimization (PSO, ACO) Build 🐍
20 MARL — MADDPG, QMIX, MAPPO Learn 🐍
21 Agent Economies, Token Incentives, Reputation Learn 🐍
22 Production Scaling — Queues, Checkpoints, Durability Build 🐍
23 Failure Modes — MAST, Groupthink, Monoculture Learn 🐍
24 Evaluation and Coordination Benchmarks Learn 🐍
25 Case Studies and 2026 State of the Art Learn 🐍
# Lesson Type Lang
01 Managed LLM Platforms — Bedrock, Azure OpenAI, Vertex AI Learn 🐍
02 Inference Platform Economics — Fireworks, Together, Baseten, Modal Learn 🐍
03 GPU Autoscaling on Kubernetes — Karpenter, KAI Scheduler Learn 🐍
04 vLLM Serving Internals — PagedAttention, Continuous Batching, Chunked Prefill Learn 🐍
05 EAGLE-3 Speculative Decoding in Production Learn 🐍
06 SGLang and RadixAttention for Prefix-Heavy Workloads Learn 🐍
07 TensorRT-LLM on Blackwell with FP8 and NVFP4 Learn 🐍
08 Inference Metrics — TTFT, TPOT, ITL, Goodput, P99 Learn 🐍
09 Production Quantization — AWQ, GPTQ, GGUF, FP8, NVFP4 Learn 🐍
10 Cold Start Mitigation for Serverless LLMs Learn 🐍
11 Multi-Region LLM Serving and KV Cache Locality Learn 🐍
12 Edge Inference — ANE, Hexagon, WebGPU, Jetson Learn 🐍
13 LLM Observability Stack Selection Learn 🐍
14 Prompt Caching and Semantic Caching Economics Learn 🐍
15 Batch APIs — the 50% Discount as Industry Standard Learn 🐍
16 Model Routing as a Cost-Reduction Primitive Learn 🐍
17 Disaggregated Prefill/Decode — NVIDIA Dynamo and llm-d Learn 🐍
18 vLLM Production Stack with LMCache KV Offloading Learn 🐍
19 AI Gateways — LiteLLM, Portkey, Kong, Bifrost Learn 🐍
20 Shadow, Canary, and Progressive Deployment Learn 🐍
21 A/B Testing LLM Features — GrowthBook and Statsig Learn 🐍
22 Load Testing LLM APIs — k6, LLMPerf, GenAI-Perf Build 🐍
23 SRE for AI — Multi-Agent Incident Response Learn 🐍
24 Chaos Engineering for LLM Production Learn 🐍
25 Security — Secrets, PII Scrubbing, Audit Logs Learn 🐍
26 Compliance — SOC 2, HIPAA, GDPR, EU AI Act, ISO 42001 Learn 🐍
27 FinOps for LLMs — Unit Economics and Multi-Tenant Attribution Learn 🐍
28 Self-Hosted Serving Selection — llama.cpp, Ollama, TGI, vLLM, SGLang Learn 🐍
# Lesson Type Lang
01 Instruction-Following as Alignment Signal Learn 🐍
02 Reward Hacking & Goodhart's Law Learn 🐍
03 Direct Preference Optimization Family Learn 🐍
04 Sycophancy as RLHF Amplification Learn 🐍
05 Constitutional AI & RLAIF Learn 🐍
06 Mesa-Optimization & Deceptive Alignment Learn 🐍
07 Sleeper Agents — Persistent Deception Learn 🐍
08 In-Context Scheming in Frontier Models Learn 🐍
09 Alignment Faking Learn 🐍
10 AI Control — Safety Despite Subversion Learn 🐍
11 Scalable Oversight & Weak-to-Strong Learn 🐍
12 Red-Teaming: PAIR & Automated Attacks Build 🐍
13 Many-Shot Jailbreaking Learn 🐍
14 ASCII Art & Visual Jailbreaks Build 🐍
15 Indirect Prompt Injection Build 🐍
16 Red-Team Tooling: Garak, Llama Guard, PyRIT Build 🐍
17 WMDP & Dual-Use Capability Evaluation Learn 🐍
18 Frontier Safety Frameworks — RSP, PF, FSF Learn —
19 Model Welfare Research Learn 🐍
20 Bias & Representational Harm Build 🐍
21 Fairness Criteria: Group, Individual, Counterfactual Learn 🐍
22 Differential Privacy for LLMs Build 🐍
23 Watermarking: SynthID, Stable Signature, C2PA Build 🐍
24 Regulatory Frameworks: EU, US, UK, Korea Learn —
25 EchoLeak & CVEs for AI Learn 🐍
26 Model, System & Dataset Cards Build 🐍
27 Data Provenance & Training-Data Governance Learn 🐍
28 Alignment Research Ecosystem: MATS, Redwood, Apollo, METR Learn —
29 Moderation Systems: OpenAI, Perspective, Llama Guard Build 🐍
30 Dual-Use Risk: Cyber, Bio, Chem, Nuclear Learn —
# Project Combines Lang
01 Terminal-Native Coding Agent P0 P5 P7 P10 P11 P13 P14 P15 P17 P18 🟦 🐍
02 RAG over Codebase (Cross-Repo Semantic Search) P5 P7 P11 P13 P17 🐍 🟦
03 Real-Time Voice Assistant (ASR → LLM → TTS) P6 P7 P11 P13 P14 P17 🐍 🟦
04 Multimodal Document QA (Vision-First) P4 P5 P7 P11 P12 P17 🐍 🟦
05 Autonomous Research Agent (AI-Scientist Class) P0 P2 P3 P7 P10 P14 P15 P16 P18 🐍
06 DevOps Troubleshooting Agent for Kubernetes P11 P13 P14 P15 P17 P18 🐍 🟦
07 End-to-End Fine-Tuning Pipeline P2 P3 P7 P10 P11 P17 P18 🐍
08 Production RAG Chatbot (Regulated Vertical) P5 P7 P11 P12 P17 P18 🐍 🟦
09 Code Migration Agent (Repo-Level Upgrade) P5 P7 P11 P13 P14 P15 P17 🐍 🟦
10 Multi-Agent Software Engineering Team P11 P13 P14 P15 P16 P17 🐍 🟦
11 LLM Observability & Eval Dashboard P11 P13 P17 P18 🟦 🐍
12 Video Understanding Pipeline (Scene → QA) P4 P6 P7 P11 P12 P17 🐍 🟦
13 MCP Server with Registry and Governance P11 P13 P14 P17 P18 🐍 🟦
14 Speculative-Decoding Inference Server P3 P7 P10 P17 🐍
15 Constitutional Safety Harness + Red-Team Range P10 P11 P13 P14 P18 🐍
16 GitHub Issue-to-PR Autonomous Agent P11 P13 P14 P15 P17 🐍 🟦
17 Personal AI Tutor (Adaptive, Multimodal) P5 P6 P11 P12 P14 P17 P18 🐍 🟦

🧰 Course Output: The Toolkit

Other courses give you a certificate. This one gives you a toolkit.

Every lesson produces a reusable artifact — a prompt, skill, agent, or MCP server you can install and use immediately. By the end of the course you have:

outputs/
├── 📝 prompts/         Prompt templates for every AI task
├── 🎴 skills/          SKILL.md files for AI coding agents
├── 🤖 agents/          Agent definitions ready to deploy
└── 🔌 mcp-servers/     MCP servers you built during the course

💡 Install them with SkillKit. Plug them into Claude Code, Cursor, or any AI agent. These are real tools, not homework.


📐 How Each Lesson Works

phases/XX-phase-name/NN-lesson-name/
├── 💻 code/           Runnable implementations (Python, TS, Rust, Julia)
├── 📖 docs/
│   └── en.md          Lesson documentation
└── 📦 outputs/        Prompts, skills, agents produced by this lesson

🔄 Every lesson follows 6 steps

Step What happens
🎯 Motto One-line core idea that sticks
❓ Problem A concrete scenario where not knowing this hurts
🧠 Concept Mermaid diagrams and intuition — no code yet
🔨 Build It Implement from scratch in pure Python. No frameworks.
⚙️ Use It Same thing with PyTorch, sklearn, or the real tool
🚢 Ship It The prompt, skill, or agent this lesson produces

🔑 The Build It / Use It split is the key. You understand what the framework does because you built it yourself first.


🚀 Getting Started

🅰️ Option A — Just start reading

Pick any completed lesson from the website or expand any phase above.

🅱️ Option B — Clone and run

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

🅲 Option C — Find your level (recommended) ⭐

If you already know some ML/DL, don't start from Phase 1. Use the built-in assessment:

# In Claude Code:
/find-your-level

This 10-question quiz maps your knowledge to a starting phase and builds a personalized path with hour estimates.

✅ Prerequisites

  • You can write code (Python or any language)
  • You want to understand how AI actually works, not just call APIs

👤 Who This Is For

🧑‍💻 You are... 🚪 Start at... ⏱️ Time to complete
🌱 New to programming + AI Phase 0 (Setup) ~306 hours
🐍 Know Python, new to ML Phase 1 (Math) ~270 hours
📊 Know ML, new to DL Phase 3 (Deep Learning) ~200 hours
🧠 Know DL, want LLMs/agents Phase 10 (LLMs from Scratch) ~100 hours
🚀 Senior eng, want agents only Phase 14 (Agent Engineering) ~60 hours

📰 Why This Matters Now

📈 The Industry Signal

"The hottest new programming language is English." — Andrej Karpathy (tweet)

"Software engineering is being remade in front of our eyes." — Boris Cherny, creator of Claude Code

"Models will keep getting better. The skill that compounds is knowing what to build." — Industry consensus, 2026

📚 Foundational Papers Covered

  • 📄 Attention Is All You Need (Vaswani et al., 2017) → Phase 7
  • 📄 GPT-3: Language Models are Few-Shot Learners → Phase 10
  • 📄 Denoising Diffusion Probabilistic Models → Phase 8
  • 📄 InstructGPT / RLHF → Phase 10
  • 📄 Direct Preference Optimization (DPO) → Phase 10
  • 📄 Chain-of-Thought Prompting → Phase 11
  • 📄 ReAct: Reasoning + Acting in LLMs → Phase 14
  • 📄 MCP: Model Context Protocol (Anthropic) → Phase 13

🤝 Contributing

We welcome contributions of all kinds — new lessons, translations, fixes, and outputs.

📋 Want to... 👉 Read
Contribute a lesson or fix CONTRIBUTING.md
Fork for your team or school FORKING.md
See the lesson template LESSON_TEMPLATE.md
Track progress ROADMAP.md
Code of conduct CODE_OF_CONDUCT.md

⭐ Star History

Star History Chart

🌟 If this helped you, please star the repo! It keeps the project alive.

💚 Built with care by Rohit Ghumare and the community.

Twitter Follow Website

📜 MIT License — Use it however you want. Fork it. Teach it. Sell it. Ship it.

✨ From linear algebra to autonomous agent swarms — one lesson at a time. ✨

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About AI Engineering From Scratch

How do I install AI Engineering From Scratch?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is AI Engineering From Scratch safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is AI Engineering From Scratch still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.