Today I adopted the director pattern when working with AI. Instead of talking to an agent in a loop where I ask it to do things, it does the things, then I ask it to do something else, I told it to act as a director, and create subagents that tackle certain domain-specific tasks. I only talk to the director, and the director is responsible for coordinating the work between the subagents.
commit 96002b8