Agent patterns
after an agent-patterns poster
6 agent patterns for AI engineers explained with usage
1. Prompt chaining
a failed gate stops the chain
input
step 1
gate
step 2
output
fixed steps, each checks the last
2. Routing
input
route
cheap modelstrong modeltool call
out
classify first, then specialise
3. Parallelization
input
call 1call 2call 3
merge or vote
run at once, merge or vote
4. Orchestrator
orchestrator
worker 1worker 2worker 3
synthesis
subtasks decided at runtime
5. Evaluator loop
rejected, back with the notes
generate
evaluate
accept
write, grade, repeat until it passes
6. Autonomous
agent
act
environmentfeedback
stop
no fixed path, it decides when done