Part I: The Brain

In these opening chapters, you’ll build the skeleton of an agent: a while loop that talks to Claude via raw HTTP. By Chapter 4, you’ll support multiple LLM providers through the Adapter Pattern—and understand that an “AI agent” is just a loop, a brain, and a list of messages.