Workflow or agent?
For engineers
Fixed code paths with LLM steps versus autonomous loops, what each costs, and how to pick the simplest design that works
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
In a workflow, what decides the order of the steps?
Check yourself · 2 of 5
Which task most clearly needs an autonomous loop?
Check yourself · 3 of 5
Why does the cost of an agent loop grow faster than its number of turns?
Check yourself · 4 of 5
You need to turn a long email thread into a short summary. What is the right first design to try?
Check yourself · 5 of 5
A support-email workflow classifies each email into billing, bug, account or other. What check belongs right after that step?
Topics
- Fixed workflows with LLM steps5 min read · Code-defined paths where the model fills in steps: predictable, testable and cheap, but brittle on unexpected inputs
- Autonomous loops for open-ended tasks5 min read · When the number and order of steps cannot be known up front and the model must decide what to do next from feedback
- Cost, latency and risk of autonomy5 min read · How loops multiply tokens, wall-clock time and compounding errors, and what each extra degree of freedom costs
- Choosing between single call, workflow and agent5 min read · A decision guide: start with one call, add a workflow, reach for an agent only when the task demands it, and when hybrids win
Start here
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Defines workflows versus agents and says to find the simplest solution first; the source of this skill's framing.
- A practical guide to building agents (OpenAI) (opens in a new tab)DocsFree
A second vendor's view on when a use case justifies an agent and how to design the loop.
- Workflows and agents (LangGraph docs) (opens in a new tab)DocsFree
Code-level side-by-side of fixed workflows and agent loops, with runnable examples.
Scenarios
Helps to know first
110 questions · last verified 2026-12