Workflow, agent or subagents?
Read a task's structure (are the steps known in advance, does the path depend on what is found, can parts run in isolation) and pick a workflow, a single agent or a supervisor with subagents to match.
Scenario
Two requests land on your team in the same sprint.
Request 1. Every new product listing on a marketplace (about 3,000 a day) should get its specs extracted from the seller's notes, a 120-word description written from those specs, and the description translated into German.
Request 2. When a nightly data import fails, find out why: the cause could be a schema change, an expired credential, a full disk or a bad upstream file, and each one leaves different traces.
A colleague proposes one autonomous agent with every tool for both. Before you agree, try to say what is different about the two tasks.
Explanation
Anthropic draws one line between two kinds of agentic system:
- A workflow runs the model and tools along predefined code paths. Your code decides the order; the model does the work inside each step.
- An agent lets the model direct its own process and tool use: it calls a tool, reads the result, and decides the next step, in a loop, until the task is done or a stopping condition (such as a maximum number of iterations) is hit.
What you found in Explore is the deciding property: can you write the path down before the run?
| Task property | Design | Common shapes |
|---|---|---|
| Steps known and fixed | Workflow | Prompt chaining (step by step, with checks between); routing (classify, then a fixed path per category); parallelization (fixed independent sections at once) |
| Number and order of steps depend on what is found | Single agent | Model plus tools in a loop, with a step limit |
| Independent parts, each needing its own large context, and the split depends on what is found | Supervisor (lead agent) with subagents | Lead plans and delegates; each subagent works in a fresh context and returns a short summary |
Start with the simplest option. Agentic systems trade latency and cost for better results, and for many applications one well-built call with retrieval and examples is enough. Workflows give predictability and consistency for well-defined tasks; agents give flexibility where the path is open. An agent's autonomy also brings higher cost and the chance of compounding errors.
Subagents earn their cost only in some tasks. Each subagent starts with a fresh context, does its own exploration, and returns only its final message, so the lead's context stays small. In Anthropic's research system, multi-agent runs used about 15 times the tokens of a chat. They pay off for valuable work that splits into parallel parts or exceeds one context window. When the parts are known before the run, parallel calls from your own code (sectioning) give each part its own context without a lead agent. They fit badly when every part needs the same context or depends on the others, which is true of most coding tasks.
Back to the Engage: Request 1 is a three-step prompt chain in code. Request 2 is an agent, because each finding decides the next check.