An open-source book

AI Agents
in Depth.

Design principles.
Engineering practice.

For developers and curious builders learning how AI agents work.

Basic programming helps with the experiments. Chapter 1 introduces the concepts.

By Bojie Li and the open-source community

THE AGENT LOOPCONCEPTUAL MODEL

Decide. Act.
Observe what changed.

Context informs the model. Tools act on the world.

10 chapters, from foundations to systems15 language editionsOpen source. Open to everyone.

A path from understanding to building

Inside the book.

Start with the fundamentals.
Follow your curiosity from there.

Ideas become clearer when you run them

Read it. Then build it.

Explore the companion experiments, inspect the code, and make it your own.

Chapter 1 experiments