Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Which task most clearly needs an autonomous loop?

Choose one answer

Check yourself · 3 of 5

Why does the cost of an agent loop grow faster than its number of turns?

Choose one answer

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?

Choose one answer

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?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. 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

Helps to know first

110 questions · last verified 2026-12