AI Agent Handbook Cover

BY MICHAEL BRENNDOERFER

AI Agent Handbook

Learn how to build reliable AI agents with reasoning, memory, tools, evaluation, and production safeguards

Read in order, or browse the contents to find the topic you need.

638 pages across 44 chapters
Browse contents

Read AI Agent Handbook free online

The AI Agent Handbook shows how the parts of an agent work together in production. We cover reasoning loops, memory, tools, evaluation, safety controls, multi-agent coordination, and observability, with a focus on reliability.

Explore the chapters

Browse the parts and chapters of AI Agent Handbook. Read from the beginning, or choose the topic you need.

44 published chapters · Free to read online

Start at chapter one

Part I

Introduction to AI Agents

2 chapters

Part II

Language Models - The Brain of the Agent

3 chapters

Part III

Prompting - Communicating with Your AI

3 chapters

Part IV

Reasoning - Teaching the Agent to Think

3 chapters

Part V

Tool Use - Extending the Agent's Abilities

3 chapters

Part VI

Memory and Retrieval - How Agents Remember

3 chapters

Part VII

Agent State and Architecture - Putting It All Together

3 chapters

Part VIII

Environment and Interaction - The Agent's World

3 chapters

Part IX

Planning - Agents with a Plan

3 chapters

Part X

Multi-Agent Systems - Teamwork Among AIs

3 chapters

Part XI

Evaluation - Measuring Your Agent's Performance

3 chapters

Part XII

Observability and Debugging - Peering Inside the Agent

3 chapters

Part XIII

Safety and Governance - Keeping the Agent Aligned

3 chapters

Part XIV

Deployment and Operations - From Prototype to Production

3 chapters

Part XV

Performance and Cost Optimization - Doing More with Less

3 chapters
Contents · 44 chapters

More about the book

Starting from first principles, you'll learn what makes an agent more than just a chatbot. Discover how to architect systems that combine language models with persistent memory, external tools, and sophisticated reasoning chains. Understand the critical difference between agents that demo well and agents that operate reliably at scale. Every concept is illustrated with a running example: a personal assistant that grows in capability chapter by chapter.

The challenges of agent development go far beyond prompt engineering. How do you evaluate an agent that can take many valid paths to a goal? How do you debug reasoning that happens across multiple tool calls? How do you deploy agents safely when they can take real-world actions? This handbook addresses the full stack, from the language model brain to memory architectures, from tool integration patterns to observability and governance frameworks.

Whether you're an AI engineer building your first agent, a product manager scoping an agentic feature, or a researcher pushing the boundaries of what autonomous systems can do, this comprehensive guide provides the conceptual frameworks, practical patterns, and operational wisdom you need to succeed in the age of AI agents.

Own the book

The whole book, beautifully typeset, yours forever.

Reading online is free, and always will be. The paid edition is the book you keep: a carefully typeset PDF, and every future update included.
  • All ~638 pages as one beautifully typeset PDF

  • A downloadable PDF edition for durable offline reading

  • All future expansions, updates, and errata, free, forever

  • Downloadable editions for durable offline reading

$24

one-time
AI Agent Handbook Cover
5.0 from 12 readers

Secure checkout via Stripe · Individual PDF links delivered to your inbox

Reader verdict

5.0

out of 5

12 five-star reader reviews

Genuine feedback, with names abbreviated for privacy.

Meet the community
“Thanks so much for establishing such an amazing community. I appreciate the opportunity to be a learner and a contributor to the community.”
Cyrille L.AI/ML Engineer
“I would like to thank you for your work. Specifically, the chapter: 'LIME Explainability: Complete Guide to Local Interpretable Model-Agnostic Explanations' was extremely helpful for me in understanding LIME and communicating to colleagues. Your work is inspiring and valuable. Thank you for doing it.”
Will G.Data Scientist
“I am enjoying reading your writings. I appreciate the effort you put into it. I want to drop a note of thanks. Thank you!”
Krishnan S.Researcher
“I came across your collection of online handbooks covering quantitative finance, AI, and machine learning. I wanted to reach out and thank you for making such high-quality material openly available. They are incredibly helpful for my CFA Level II review and for brushing up ahead of ML interviews.”
Karim Z.Reader
“Thanks for putting cool stuff out into the world.”
Charlie B.Applied AI
“Really appreciate the way you have explained the concepts. Simple to understand, yet builds up knowledge exponentially, all while reinforcing it with examples repeatedly. I've read the last two chapters `74.Self-attention & 75.Q,K,V` and I've to admit, my concepts have never been clearer. You really are doing an amazing job breaking down maths and complex concepts like a story!”
Muhammad H.AI/ML Engineer
“Thank you Michael. It's top!”
David X.Data Scientist
“I read a few of your blogs on NLP and oh WOW, they really are something, now I exactly know how all of the terms Entropy, Cross-entropy and how it is connected to Perplexity, will definitely read more of your blogs.”
Kanishk K.Reader
“Your writing feels like a treasure trove of great material. So, thank you for compiling everything on your website!”
Griffin P.Quantitative Researcher
“I just came across your website where your books are available for free to read. Thank you so much for making this available to the public. This will help a lot of people.”
Vikas C.AI/ML Engineer
“I found your book Language AI Handbook's explanations of Transformer architectures and production deployment strategies to be exceptionally clear and insightful”
San Z.Researcher
“I came across one of your books, Language AI Handbook, and man, I'm loving it. I've read many books but have never found such a comprehensive book on large models that covers everything from start to finish with such depth.”
Uon L.Reader
Read all 12 reader reviews
“I would like to thank you for your work. Specifically, the chapter: 'LIME Explainability: Complete Guide to Local Interpretable Model-Agnostic Explanations' was extremely helpful for me in understanding LIME and communicating to colleagues. Your work is inspiring and valuable. Thank you for doing it.”
Will G.Data Scientist
“Really appreciate the way you have explained the concepts. Simple to understand, yet builds up knowledge exponentially, all while reinforcing it with examples repeatedly. I've read the last two chapters `74.Self-attention & 75.Q,K,V` and I've to admit, my concepts have never been clearer. You really are doing an amazing job breaking down maths and complex concepts like a story!”
Muhammad H.AI/ML Engineer
“Thanks so much for establishing such an amazing community. I appreciate the opportunity to be a learner and a contributor to the community.”
Cyrille L.AI/ML Engineer
“I just came across your website where your books are available for free to read. Thank you so much for making this available to the public. This will help a lot of people.”
Vikas C.AI/ML Engineer
“I am enjoying reading your writings. I appreciate the effort you put into it. I want to drop a note of thanks. Thank you!”
Krishnan S.Researcher
“Thank you Michael. It's top!”
David X.Data Scientist
“Thanks for putting cool stuff out into the world.”
Charlie B.Applied AI
“I found your book Language AI Handbook's explanations of Transformer architectures and production deployment strategies to be exceptionally clear and insightful”
San Z.Researcher
“Your writing feels like a treasure trove of great material. So, thank you for compiling everything on your website!”
Griffin P.Quantitative Researcher
“I came across your collection of online handbooks covering quantitative finance, AI, and machine learning. I wanted to reach out and thank you for making such high-quality material openly available. They are incredibly helpful for my CFA Level II review and for brushing up ahead of ML interviews.”
Karim Z.Reader
“I read a few of your blogs on NLP and oh WOW, they really are something, now I exactly know how all of the terms Entropy, Cross-entropy and how it is connected to Perplexity, will definitely read more of your blogs.”
Kanishk K.Reader
“I came across one of your books, Language AI Handbook, and man, I'm loving it. I've read many books but have never found such a comprehensive book on large models that covers everything from start to finish with such depth.”
Uon L.Reader

Author and edition details

About the author and this edition

Michael Brenndoerfer, author of AI Agent Handbook

Michael Brenndoerfer

Michael has spent more than a decade working across software engineering, data, AI, and business. He writes to understand difficult ideas more deeply and to share what he learns in a clear, practical way.

Edition
First edition
Published
Last reviewed

Version history

Kept current, not frozen in time

Each PDF purchase includes future editions. When the book changes, the updated copy appears in My books at no extra cost.

Current release

Edition 2026.08.2

Editorial improvements.

Earlier releases2
  1. 2026.08.1

    Editorial improvements throughout the book, with clearer explanations, refined presentation, and improved plots and visualizations.

  2. 2026.08.0

    Initial complete PDF release covering the full 44-chapter handbook.

Cite this book

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@book{brenndoerfer2025aiagenthandbook, author = {Michael Brenndoerfer}, title = {AI Agent Handbook}, year = {2025}, url = {https://mbrenndoerfer.com/books/ai-agent-handbook}, publisher = {mbrenndoerfer.com}, note = {Accessed: 2026-11-13} }
APAAcademic
Michael Brenndoerfer (2025). AI Agent Handbook. Retrieved from https://mbrenndoerfer.com/books/ai-agent-handbook
MLAAcademic
Michael Brenndoerfer. "AI Agent Handbook." 2026. Web. November 13, 2026. <https://mbrenndoerfer.com/books/ai-agent-handbook>.
CHICAGOAcademic
Michael Brenndoerfer. "AI Agent Handbook." Accessed November 13, 2026. https://mbrenndoerfer.com/books/ai-agent-handbook.
HARVARDAcademic
Michael Brenndoerfer (2025) 'AI Agent Handbook'. Available at: https://mbrenndoerfer.com/books/ai-agent-handbook (Accessed: November 13, 2026).
SimpleBasic
Michael Brenndoerfer (2025). AI Agent Handbook. https://mbrenndoerfer.com/books/ai-agent-handbook