PATCHBOOK SERIES Part of the Patchbook Series

Patchbook: LLMs are just APIs

Short, simple chapters that serve as a conceptual upgrade for software engineers.

The full call: host with memory, system prompt, the API call with its context window, stateless LLM, and the response returning to host memory

The central thesis is simple: working with LLMs is ordinary software engineering. The model is a stateless engine: text in, text out, nothing kept. Your code holds the memory, writes the rules, and pays for every token. This book takes one call apart and builds the picture back up: the request, the roles, the rules, the budget, what a single call can do on its own, and the four ways it breaks. Every chapter ends with a prompt you can paste into your own chat, so you can watch each idea happen. By the last page, the ordinary parts add up to something familiar: the engine inside every coding agent you use.

Let us begin with Chapter 0: Introduction.