Workflow vs Agent: Choosing the Right Architecture
The definitions and workflow-vs-agent trade-offs are in lessons/ccdv-f/core/CCDV-F-13-Agent-Architecture/ and task decomposition. This note is the decision procedure.
The autonomy spectrum (design guidance)
single prompt -> prompt chain -> router -> parallel workflow -> orchestrator-workers -> autonomous agent
Each step right buys flexibility and costs predictability, latency, spend and debuggability. Anthropic's guidance: prefer the simplest design that meets the need, and add autonomy only when simpler designs fail.
Decision criteria
| Question | If yes, lean toward |
|---|---|
| Are the steps known in advance and stable? | Workflow |
| Must results be reproducible and auditable step by step? | Workflow |
| Is the path genuinely unpredictable (research, debugging, open-ended coding)? | Agent |
| Can you cheaply verify results (tests, validators)? | Agent becomes safer |
| Are mistakes costly or irreversible? | Workflow, or agent behind approval gates |
| Is latency or cost tightly bounded? | Workflow |
| Do you need to explain exactly why each step happened? | Workflow |
Hybrids are normal
A deterministic workflow whose individual steps are agentic (a fixed intake, an agent that investigates, a fixed validation and approval stage) combines predictability where it matters with flexibility where it helps.
Risk controls scale with autonomy
More autonomy needs stronger controls (verified mechanisms): bounded loops (max_turns, budgets), PreToolUse hooks for deny/ask/defer, least-privilege tool sets, sandboxing, monitoring, and human approval for high-impact actions. See D5.1 and D5.2.
Model behaviour to account for
Newer Claude models orchestrate subagents natively and can over-delegate; if you see unnecessary subagents, add explicit guidance on when delegation is and is not warranted. Anthropic's prompt guidance also covers overeagerness (doing more than asked) in agentic coding.
Exam traps
- "Agent" as the default because it sounds advanced.
- A workflow for a problem whose steps cannot be listed.
- High autonomy with no verification or limits.
- Ignoring that cost and latency compound across agent turns.
References
- Prompting best practices — checked Oct 16, 2026
- Subagents in the SDK — checked Oct 16, 2026
Check your understanding
Monthly invoice processing with fixed stages and audit needs. Pick?Show answerHide answer
Answer
Workflow.Triage and fix unknown production bugs across a large codebase. Pick?Show answerHide answer
Answer
Agent, with tests as verification and permission controls.What makes a higher-autonomy design acceptable?Show answerHide answer
Answer
Bounded loops, least privilege, verification, monitoring and approval gates for high-impact actions.