The Agentic AI Codex
learn.iterativeaisolutions
A → Z Interactive Learning Book

The Agentic AI Codex.
From math foundations to autonomous agents.

A single, comprehensive guidebook to take you from zero theory to shipping production AI agents. Math, statistics, machine learning, neural networks, deep learning, LLMs, prompting, RAG, LangChain / LangGraph / CrewAI, MCP, multi-agent systems, memory, deployment, safety, and a capstone path.

Authored at learn.iterativeaisolutions · 19 chapters · 150+ concepts
19
Chapters
150+
Concepts
14
Frameworks
80+
Metrics & terms
Your progress
0%

The Curriculum at a Glance

Hover any arc to inspect a topic. The inner ring shows the four learning quadrants; each outer arc is a real chapter in the book.

The 17-Chapter Roadmap

Click a card to open the chapter. Use the small ring on each card to mark a chapter complete — progress is stored locally on your machine.

CH 01

Foundations of AI

The AI / ML / DL / GenAI map. History, taxonomy, narrow vs general intelligence, and the agentic shift.

TheoryTaxonomy
CH 02

Math & Statistics for AI

Linear algebra, probability, statistics, calculus and information theory — the language of every model.

MathProbabilityCalculus
CH 03

Classical Machine Learning

Supervised, unsupervised, reinforcement. Regression, trees, ensembles, clustering, bias–variance & metrics.

AlgorithmsEvaluation
CH 04

Neural Networks

Perceptron, MLP, activations, forward / backward pass, gradient descent, regularization, optimization.

BackpropOptimization
CH 05

Deep Learning Architectures

CNNs for vision, RNN/LSTM/GRU for sequences, autoencoders, GANs, diffusion, and the Transformer.

CNNRNNTransformer
CH 06

How LLMs Really Work

Tokens, embeddings, attention, decoding strategies, pre-training, SFT, RLHF, DPO, scaling laws.

TokensAttentionRLHF
CH 07

Prompt Engineering

Zero/few-shot, role prompts, CoT, ToT, ReAct, self-consistency, structured outputs and meta-prompting.

CoTReAct
CH 08

AI Agents — Core Patterns

The agent loop, planning, reflection, tool-use, autonomy levels, and the seven agent design patterns.

PlanningReflection
CH 09

RAG & Vector Search

Embeddings, chunking, hybrid retrieval, re-ranking, vector databases, and advanced patterns (HyDE, GraphRAG).

EmbeddingsVector DB
CH 10

Agent Frameworks

LangChain, LangGraph, CrewAI, AutoGen, LlamaIndex — when to choose each, and how they compose.

LangGraphCrewAI
CH 11

Tools, Function Calling & MCP

Tool schemas, function calling, Model Context Protocol — resources, tools, prompts and the agent fabric.

MCPFunction calls
CH 12

Multi-Agent Systems & A2A

Roles, supervisors, debate, hierarchical teams, A2A (Agent-to-Agent) protocol, swarm patterns.

A2ASwarms
CH 13

Memory & Context Engineering

Working / episodic / semantic memory, summarization, hierarchical recall, and prompt-compression.

MemoryContext
CH 14

Local Models & No-Code

Ollama, vLLM, llama.cpp — and visual builders n8n, Make.com, Zapier, Flowise.

Ollaman8n
CH 15

Deployment & Observability

FastAPI / Streamlit, webhooks, secrets, evaluation harnesses, LangSmith / Langfuse tracing & cost control.

DeployEval
CH 16

Safety, Ethics & Guardrails

Hallucinations, prompt injection, jailbreaks, data privacy, regulatory landscape and red-teaming.

GuardrailsRed-team
CH 17

Career, Portfolio & Capstone

Freelancing playbook, niche selection, Upwork/Fiverr tactics, 10 capstone project blueprints.

FreelanceCapstone
CH 18

Enterprise AI Architecture & MLOps

Inference gateways, vLLM / Triton / NIM, KServe, LoRA pipelines, model registry, multi-tenant, governance & SLAs.

ArchitectureMLOpsGovernance
CH 19

Evaluation Metrics & AI Glossary

Every metric you'll be quoted (classification, RAG, agent, safety, serving) plus an A–Z glossary of AI terms.

MetricsGlossaryReference

Inside the Field — Numbers Worth Knowing

Four lenses to understand where the field is and where your time goes when building agents.

Where engineering time goes

Building an agentic product is not just prompting — most of the work is plumbing.

Skill radar for an Agentic Engineer

The seven competencies you’ll grow through this book.

Cost ladder of model choices

Relative cost per million tokens (illustrative — pick the right tool for the job).

The agentic learning curve

Capability vs. weeks of focused practice — the slope steepens once tools click.

Three Learning Paths Through This Book

Pick the path that matches your time and prior background.

FAST · 2 weeks

The Shipping Sprint

You want one working agent in your portfolio fast.

  1. Ch 06 — How LLMs work (intuition only)
  2. Ch 07 — Prompt engineering
  3. Ch 08 — Agent patterns
  4. Ch 09 — RAG basics
  5. Ch 10 — Pick one framework
  6. Ch 15 — Deploy
DEEP · 6 weeks

The Builder’s Path

You want to be the engineer teams hire to ship agents.

  1. Ch 01 → 06 — Foundations + LLM internals
  2. Ch 07 → 11 — Prompting, agents, RAG, frameworks, MCP
  3. Ch 12 → 13 — Multi-agent + memory
  4. Ch 15 → 16 — Deploy + safety
  5. Ch 17 — One full capstone
SCHOLAR · 10 weeks

The Researcher’s Path

You want to understand why things work — not just plug them in.

  1. Ch 01 → 05 — Math, ML, NN, DL in depth
  2. Ch 06 — Transformer internals + training stack
  3. Ch 07 → 13 — Build the agentic stack
  4. Ch 14 — Self-host the entire pipeline
  5. Ch 15 → 17 — Productionize and publish

How to Read This Book

1 · Theory before practice

Each chapter starts with intuition, then moves into formal definitions, then hands-on patterns.

2 · Tool-agnostic by design

Frameworks come and go. We focus on patterns that survive across LangChain, CrewAI, MCP, and whatever comes next.

3 · Quizzes & flashcards

Interactive checks live inside each chapter — your understanding compounds.

4 · Capstones unlock the most

Reading is recognition; building is the only way to make the patterns yours.

A note from Usama
This book is intentionally framework-light in early chapters and deliberately code-light in late chapters. The reason: the field changes every quarter. What stays is your understanding of tokens, context, tools, planning, memory, evaluation and safety. Learn those, and any new SDK is a 30-minute read.
Begin Chapter 1 → Jump to LLMs Jump to Agents