The Hitchhiker's Guide to Agentic AI: From Foundations to Systems
by Haggai Roitman (arXiv)
A free 570-page book that walks the agent stack from transformers and GRPO up to MCP, A2A, evals and production deployment, with runnable notebooks.
Overview
The Hitchhiker's Guide to Agentic AI: From Foundations to Systems is a single-author book by Haggai Roitman, posted to arXiv as 2606.24937 on June 22, 2026 and revised on July 27 and September 29, 2026 (the current v3 is labelled version 1.4, CC BY-SA 4.0). A reading group running it chapter by chapter describes it as more than 570 pages. The first half is the substrate under an agent: transformer architecture, GPU systems, training and fine-tuning (SFT, LoRA, mixture of experts), compression and inference optimization, then alignment and reasoning with RLHF, PPO, DPO and its variants, GRPO, reward modelling and test-time scaling. The second half is about agents themselves: trajectory-based agentic RL, RAG and agentic RAG, memory systems, harness design and loop engineering, graph-based orchestration, a catalogue of design patterns that includes red teaming and gateways, inter-agent coordination through MCP, agent skills and the A2A protocol, and centralized, decentralized and hierarchical multi-agent topologies. It closes with agent frameworks, agentic UI, evaluation methodology, production deployment and regulation (the EU AI Act and California SB 942). The MIT-licensed companion repo has one self-contained notebook per chapter. Each notebook adds a piece to the Guardian Angel System, a five-agent capstone for supervising diabetic patients, built with LangChain, LangGraph, CrewAI, AutoGen, Qdrant, Redis and an MCP tool server, running on Ollama with qwen2.5:7b or an OpenAI key.
At a Glance
- Topic
- Agentic
- Level
- Intermediate
- Format
- Book
- Cost
- Free
- Duration
- ~570-page book, several weeks of reading; 28 companion notebooks plus a capstone
- Provider
- Haggai Roitman (arXiv)
- Hands-on
- Yes — code/exercises
- Certificate
- None
What You’ll Learn
- ✓Frame LLM interaction as a Markov decision process with policies and value functions
- ✓Implement PPO with clipping and a KL penalty, then compare it against DPO and GRPO
- ✓Build a reward model and recognise reward hacking in preference-based training
- ✓Build a RAG pipeline with dense retrieval, re-ranking and Qdrant collections tuned with HNSW and quantisation
- ✓Give agents episodic, semantic and working memory through a shared Redis layer
- ✓Wire stateful supervisor graphs in LangGraph with conditional routing, checkpoints and human approval gates
- ✓Expose agent tools to any model through a Model Context Protocol server
- ✓Evaluate agent answers with LLM-as-judge, G-Eval, RAGAS and FactScore, and red-team them against prompt injection
- ✓Deploy agents as Dockerised FastAPI microservices with health checks, tracing and Redis Streams queues
Highlights
- •One author covers the whole stack, from GPU systems and RLHF to MCP, A2A and the EU AI Act, so the vocabulary stays consistent across 570+ pages
- •Every chapter notebook adds a part to one running capstone, a five-agent Guardian Angel System, so the code accumulates instead of resetting each chapter
- •The notebooks run locally on Ollama with qwen2.5:7b, fall back to an OpenAI key, and have a mock mode for CI; only the QLoRA chapter needs a GPU
- •Actively revised: three arXiv versions between June and September 2026, a Hugging Face paper page with 22 upvotes, and a community reading group working through it chapter by chapter
Who It’s For
Best For
- ✓Software engineers moving into agent engineering who want one reference instead of fifty blog posts
- ✓ML engineers who know training but have not built tool use, memory or multi-agent orchestration
- ✓Study groups and team leads planning a multi-week agent curriculum
- ✓Practitioners comparing LangGraph, CrewAI and AutoGen on the same problem
Prerequisites
- •Comfortable Python and Jupyter notebooks
- •Basic machine learning and linear algebra; the RL chapters assume you can read loss functions
- •Docker, 16 GB RAM (32 GB recommended) and either Ollama or an OpenAI API key for the notebooks
FAQ
What is The Hitchhiker's Guide to Agentic AI: From Foundations to Systems?
The Hitchhiker's Guide to Agentic AI is a free, book-length practitioner reference on arXiv for engineers who build autonomous agents. It covers LLM foundations, alignment and reasoning, RAG, memory, orchestration, MCP and A2A, evaluation and deployment. Its companion notebooks build one multi-agent system, so by the end you have written retrieval, memory, tool servers, evals and a Dockerised deployment.
Is The Hitchhiker's Guide to Agentic AI: From Foundations to Systems free?
The Hitchhiker's Guide to Agentic AI: From Foundations to Systems is free to access.
What level is The Hitchhiker's Guide to Agentic AI: From Foundations to Systems for?
The Hitchhiker's Guide to Agentic AI: From Foundations to Systems is aimed at a intermediate audience. Recommended background: Comfortable Python and Jupyter notebooks, Basic machine learning and linear algebra; the RL chapters assume you can read loss functions, Docker, 16 GB RAM (32 GB recommended) and either Ollama or an OpenAI API key for the notebooks.
How long does The Hitchhiker's Guide to Agentic AI: From Foundations to Systems take?
Expect roughly ~570-page book, several weeks of reading; 28 companion notebooks plus a capstone. Most learners work through it at their own pace.
What will I learn from The Hitchhiker's Guide to Agentic AI: From Foundations to Systems?
You'll learn: Frame LLM interaction as a Markov decision process with policies and value functions; Implement PPO with clipping and a KL penalty, then compare it against DPO and GRPO; Build a reward model and recognise reward hacking in preference-based training; Build a RAG pipeline with dense retrieval, re-ranking and Qdrant collections tuned with HNSW and quantisation; Give agents episodic, semantic and working memory through a shared Redis layer; Wire stateful supervisor graphs in LangGraph with conditional routing, checkpoints and human approval gates; Expose agent tools to any model through a Model Context Protocol server; Evaluate agent answers with LLM-as-judge, G-Eval, RAGAS and FactScore, and red-team them against prompt injection; Deploy agents as Dockerised FastAPI microservices with health checks, tracing and Redis Streams queues.
Topics
Sources
This page was written from 5 sources, 4 on domains other than arxiv.org.