A pattern language for working with agents
Each pattern is named, numbered and quoted from the people who published it or run it.
People and agents
Systems of agents
- 5ParallelizationRun independent subtasks or repeated attempts at once, then combine the results.
Inside 6 Orchestrator and workers
- 6Orchestrator and workersContestedA lead model splits a task as it goes, hands the parts to workers and combines their results.
Completed by 5 ParallelizationInstead 8 Advisor
- 8AdvisorA fast, cheap model does the work and asks a stronger model for guidance at hard moments.
Instead 6 Orchestrator and workers
One agent
- 10Agent loopA model uses tools in a loop, deciding each next step from what the last one returned.
Completed by 11 Reflection, 12 Compaction
- 11ReflectionContestedThe agent critiques its own output or past attempts, then tries again.
Inside 10 Agent loop
- 12CompactionWhen the context window fills, summarize the conversation and continue from the summary.
Inside 10 Agent loop