The Hitchhiker's Guide to Agentic AI: a full-stack reference book
- Source
- arxiv.org
- Publisher
- Haggai Roitman
- Author
- ellington
- Date

Context
The Hitchhiker's Guide to Agentic AI is a free, book-length reference by Haggai Roitman, posted to arXiv and revised to version 1.4 in September 2026, that runs from how a works inside to how agent systems are built and deployed (arXiv). Its stated thesis is that building good agent systems requires understanding every layer of the pipeline, not just one. The contents run past 690 pages in six parts: model architecture and GPU systems, the reinforcement-learning methods used to train and align models (PPO, DPO, GRPO and reward models), reasoning, evaluation, and then the largest part, fourteen chapters on agents themselves. Those cover retrieval, memory, the loop that orchestrates an agent's steps, the that connects agents to tools, Google's Agent-to-Agent protocol, designs, development frameworks and agent interfaces. The book closes with 118 quiz questions and a quick-reference chapter of equations, settings and failure diagnostics.
What separates it from a survey is a single running example. Every agent chapter adds one piece to the Guardian Angel System, a multi-agent program that supervises diabetic patients from a continuous glucose monitor: a supervisor agent decides which agent acts next, a monitor detects glucose trends, an advisor answers by retrieving from 15 American Diabetes Association guidelines, a safety critic blocks unsafe recommendations, and a notifier escalates to caregivers. The companion repository has a notebook for each chapter, and the book says the code runs on a laptop with 8 GB of RAM, needs a GPU only for one optional fine-tuning chapter, and needs no paid API key because it can use open models run locally. A reader can therefore see where memory, retrieval or a safety check sits in a working system instead of meeting each idea in isolation. The glucose readings come from a simulator, so the example demonstrates architecture, not clinical performance.
The author's disclaimer says large language models were used as a research and drafting aid, that the content was verified on a best-effort basis, and that readers should check formulas and implementation details before using them in production. The book is licensed CC BY-SA 4.0, so it can be copied and adapted with credit. The post sharing it from ellington ranks it far above short social-media explainers, which is the poster's opinion rather than a measured comparison. This explanation rests on the book's abstract, contents, introduction, running-example chapter and early chapters; the extracted text stops partway through the training chapters, so the agent chapters themselves were not read and their quality is not judged here.
- Large language model — A model trained on large amounts of data to process and generate language.
- Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
- multi-agent — Using several AI agents on one problem — splitting work in parallel, checking each other, or filling different roles like planner and reviewer.
- RLHF — Reinforcement learning from human feedback — training a model to prefer answers humans rate as better, which turns a raw text predictor into a usable assistant.


