Skip to content
AI Agents
The AI Agents Book

Index

Chapters

Web fragments for chapters 0–10—read in order or jump to a topic. Pairs with the book home.

Numbered fragments (0–10) aligned with the book. The full linear narrative remains on the home page. For news and short tutorials, see howaiagentswork.com.

Chapters (0–10)

11 chapters

  1. Vision This chapter sets the stage: what “agent systems” are, why the paradigm exists, and what you will build as you go. What you will do (preview) Understand how components interact (model, loop, tools, memory) Build locally using open-source components (no paid agent APIs required)

  2. What this chapter will cover Basic concepts of AI, why LLMs became the dominant approach, and the mental model you will use throughout the book. Planned outcomes Build intuition for tokens/probability without heavy math Understand limitations: hallucinations, context windows, and evaluation

  3. First-principles explanation This chapter explains how LLMs transform text into predictions: tokens, probabilities, and the practical implications for reliability. Why this matters for agents Agents depend on the model’s output distribution. Understanding “what the model is doing” is the foundation for tool-use, planning, and evaluation.

  4. How components fit together Model, loop, tools, memory, planning, and evaluation are not separate “modules” in practice—they interact continuously. This chapter will provide a clear reference architecture and show how to wire it together locally.

  5. Practical local setup You will set up the environment to run models locally (or on your private VM), configure dependencies, and keep everything reproducible. What you will be able to do Install the core Python stack Run an agent loop locally end-to-end

  6. How iteration creates intelligence over time This chapter focuses on the “loop” that turns single-shot model outputs into multi-step behaviors: think, act, observe, reflect. Key idea Agents get better through repeated cycles, guided by constraints and evaluation—not just by larger prompts.

  7. Current state Tool-use is powerful, but it is also where agents can fail in subtle ways (inconsistent depth, wrong assumptions, brittle tool calls). This chapter is partially written and will be rewritten for clarity and robustness.

  8. Scaling beyond context When the conversation grows, agents need selection and compression strategies to stay useful. This chapter explains how to retrieve the right information and how to represent memory so it works reliably.

  9. Direction and structure over time This chapter explains how agents use planning and decomposition to turn ambiguous goals into executable steps. What you will learn When to plan How to decompose How to evaluate plans as the loop progresses

  10. Collaboration patterns Multi-agent systems can outperform single agents when you have clear roles, interfaces, and evaluation methods. This chapter will map the main patterns and show how to reason about the trade-offs.

  11. From prototype to production Production systems require orchestration, evaluation, safety controls, and robust deployment practices. This chapter will connect architecture decisions to real-world constraints.

How to use this list

Open chapters 0 → 10 for the full arc, or use any entry as a standalone note. Status badges come from the content files (editorial hints only).

Chapters on this site

theaiagentsbook.com/en/chapters/

Index →