Design patterns carried over from software engineering to agent systems
Michael Ryan opens the lecture by noting that design patterns are a long-established part of software engineering and are not new to agent systems. He refers to a textbook listing about 22 or 23 software design patterns, such as the singleton, which describe ways to write extensible code that others can read, use, and build on.
He argues that agent systems need design patterns too, because building one involves many design decisions. He quotes a line to frame the lecture: "Patterns are half-baked, meaning you always have to finish them yourself and adapt them to your own environment." In his view, patterns are useful for thinking about how to build agents, but a builder should not depend on them rigidly and should be creative in adapting them.
The lecture's learning objectives are to define common design patterns for workflows and agents, compare context-management patterns, and analyze the design decisions in a production agent harness, Pi, which he describes as highly extensible and used as a base by many open-source agents.


