Agents & Tools
Agent Architectures
10 min+100 XPStep 1/10
Workflow first, agent when justified
Two patterns get conflated. A workflow runs LLMs on fixed code paths you wrote — retrieve, then summarize, then classify. An agent hands the model the loop: it decides the next step at runtime.
Default to workflows. Every step you hardcode is a failure mode you deleted. Reach for an agent only when the sequence of steps genuinely can't be known in advance — open-ended research, debugging, multi-source synthesis.
insight
The best production 'agent' is usually a workflow with one well-placed LLM call. Boring ships.