Building with Generative AI
The shift underway is from writing prompts to designing the systems that prompt. These pages cover the patterns we use when we build with agents, and the failure modes each one is guarding against.
Loop Engineering: Design the Loop, Not Every Prompt
A single prompt cannot fix a bug it has never seen run. Loop engineering is the practice of building the harness that lets an agent act, observe, reason and retry until a testable condition is met.
6 min readAnatomy of a Good Agent Loop
Five things every well-built agent loop needs — and the specific failure each one prevents. If it cannot tell done from not-done, it is not a loop.
7 min readGraph Engineering: Coordinating Specialized Agents
When one agent is not enough, the question becomes who does what, in what order, and what happens when a step fails. Graph engineering is how that gets specified.
6 min readLoops vs Graphs: How the Two Patterns Nest
One agent iterating and many agents passing work are different things at different levels. Holding the distinction makes architecture conversations much shorter.
5 min read