On a wooden scaffold high on the monument, the kneeling Ghost, a stone android, holds a great curved stone segment of a ring steady while the Gopher, on the top plank, taps it into place with a mallet beside a hanging lantern.

Section

Build

Designing an agent once the loop runs: its shape, its tools, its replies, its context, and what it knows.

Each design page names the problem, shows the design in Go, and says what the design cost in tokens, money, and turns across the book’s recorded runs, with a short list of when to reach for it and when to leave it out. Where a page uses goroutines, channels, or iterators, it explains them in a line, and the deeper passages sit in collapsible “Under the hood” panels you can skip on a first read.

Browse every guide by stage