Colophon

Every chapter opens with a cover drawing and carries one or two more in the body. They share one look: thin wobbly pen lines, dot eyes, no shading, a lot of white space, and a single soft accent color per image. None has a caption.

Each one was made the same way. A scene is written out as a prompt — a fixed template in which only the description and the accent color change — and rendered by Recraft’s1 V4.1 raster model, one candidate at a time, at 3:2. Most ideas took several passes before the pose or the composition read correctly.

When an image was nearly right, it was repaired rather than regenerated. Small edits that had to preserve the rest of the drawing — remove a hand, move a tail, recolor a mouth, wash a background gray — went to Gemini’s image editor, Nano Banana,2 with instructions to change one thing and leave everything else alone. Purely geometric work — recoloring a single stroke, drawing a diagram, thickening a frame — was done locally with ImageMagick,3 which is more precise than any prompt.

Files are normalized to real PNGs on the way in (the CDN occasionally returns WEBP wearing a .png extension, which HTML tolerates and LaTeX does not), embedded with empty alt text so no caption is generated, and logged in a registry that records each chapter’s drawing along with every version that was rejected. The rejects are kept.

The cover design pays tribute to Lisp in Small Pieces and Thinking in Java. More clumsily, the writing does too: both books explain hard things plainly, and this one keeps trying to do the same.

Versions

Every claim in this book about how LangGraph behaves — the default recursion_limit, the two tables a SqliteSaver writes, what a reducer does to a parallel write — was measured, not read, and measured against one frozen set of packages: langgraph 1.2.19, langchain-core 1.6.9, langchain 1.4.4, langchain-openai 1.7.0, with the rest pinned in the companion repository’s requirements.txt. That set was frozen on 2026-11-01 for this edition. Where the book reports a behaviour the documentation describes differently, or leans on something the library does not promise, it says so in place; the companion’s COMPATIBILITY.md collects those notes and records what later releases changed. Every external link in the text was checked on 2026-10-08.

The text is set in Crimson Text, headings in Open Sans Condensed, code in Ubuntu Mono. Diagrams are Mermaid and Lucidchart MCP. The book is written in Quarto4 and built to HTML and PDF from one source.

About the author

Zhao Han has been a professional programmer for more than twenty years, working on mobile apps, backend systems, security products, and developer tools. Most recently he built and evaluated AI agents for enterprise products.


  1. Image generation API: https://www.recraft.ai.↩︎

  2. Google’s conversational image editing model: https://ai.google.dev/gemini-api/docs/image-generation.↩︎

  3. Command-line image manipulation: https://imagemagick.org.↩︎

  4. Open-source scientific and technical publishing system: https://quarto.org.↩︎