deep · 5 min
When shouldn't you use an agent?
Why a fixed workflow is usually the better choice than an agent, and the signs that a task really needs the model to pick its own steps.
updated 29 Sept 2026
In 2024 a group of researchers took some published coding agents, the kind with planning, reflection and debugging steps, and ran them next to something much simpler. Ask the model for code. Run the tests. If they fail, ask again, nudging the temperature up a little each time, up to five tries.
The simple loop matched the best agent's accuracy. The agents cost anywhere from about 50% more to over 50 times more for the same result.
Hold on to that loop, because we'll come back to it. First, the general question. An agent lets the model choose its own next step. That freedom has a price. So when is it worth paying?
What the freedom costs
Let's be concrete about the bill.
Money and time, first. Every turn of an agent resends the whole history, and the model decides how many turns to take. A fixed workflow has a cost you know up front. An agent's isn't.
Errors stack. Each step builds on the last, so one misread tool result sends the next steps off course, with no fixed checkpoint to catch it.
Testing gets harder. A workflow takes the same path every time, so we can test each step on its own, and a bad output points to one step. An agent can take a different path every run, so we test whole runs and read traces to find what broke.
And it's less predictable. The more the model decides, the less we can say in advance about what it'll do. That's the point of an agent, and also the risk.
None of that is a problem when the task needs it. Anthropic's way of putting it: agents trade cost and latency for better results. On tasks that don't need the freedom, we pay and get nothing back.
Four questions to ask first
So how do we tell? Here's a rough path.
Can you write down the steps? If you can draw the flow chart, build the flow chart. Agents are for open-ended problems where you can't predict how many steps it takes. Fixing an unknown bug is like that: one edit or ten, you won't know until you look. Summarizing a document isn't.
Do rules really fail here? OpenAI's guide gives three signs a task has beaten normal automation: decisions full of judgment and exceptions (like approving refunds), rule sets so big they've become a pain to maintain, and heavy reliance on unstructured text like documents or conversations. If none of those clearly apply, the guide's own advice is that a deterministic solution may be enough.
Can the agent tell if it's working? Agents do best where there's a clear success test and the path takes trial and error: make the failing tests pass, shrink the container image, upgrade a dependency without breaking the build. Simon Willison's signal is the moment you think "ugh, I'm going to have to try a lot of variations here". With no check, the agent can't correct itself, and its "done" is only a guess.
Is it worth the extra cost? An agent that does a bit better at many times the price only makes sense if the result is worth that much.
Climb one rung at a time
Anthropic and OpenAI give the same advice here: start simple, and add complexity only when it clearly helps. That turns into a ladder. One model call with good retrieval and a few examples, which is often enough. Then a workflow, a few calls wired together by our code, like prompt chaining or routing. Then a single agent with a few tools, a turn limit and a budget. And only then several agents.
Move up a rung when your evals say the rung below can't get there. Without a score for the simpler version, there's no way to know whether the agent is better or just more expensive.
And it's rarely all or nothing. LangChain's observation is that nearly every "agentic system" they see in production mixes the two. A support bot might route every message with a fixed classifier, handle common cases with a workflow, and hand only the odd ones to an agent. So a better question than "should this be an agent?" is "which step needs the model to choose what happens next?" Keep that step small and everything around it fixed.
Things that blur the line
The word "agent" gets stretched. By OpenAI's own definition, a chatbot, a single model call or a sentiment classifier isn't one, because the model doesn't control the flow. When something is sold as an agent, check whether the model really picks the next step.
Frameworks push the other way. An agent framework makes the loop the default, so it's easy to build an agent where a workflow would do, and the extra layers hide the prompts you'd need to debug it. Writing the first version against the API shows you how simple the fixed version could be.
The vendors also frame this differently, and each sells tools that fit its framing. Anthropic draws a hard line between workflows and agents. LangChain treats it as a spectrum, and argues the hard part is giving the model the right context at each step, since that's where most failed steps come from. That's an argument for keeping control of the flow in your own code.
How sure is any of this? Not very. Nobody has published a study that builds the same production feature both ways and reports quality and cost side by side. Most of the advice comes from vendors' experience with customers, with no numbers. The one hard result is that HumanEval study, on 2024 models and a benchmark with tests built in. A new model can move the line either way, so rerun your own comparison when you switch.
Which brings us back to that retry loop. Look at what it is: a fixed path, run the tests, try again. It's a workflow with a check in it. The model never chose a step. When a cheap, reliable check exists, a loop like that often gets most of what the agent would have, and that's worth building first.
Further reading
- Building effective agents, Erik Schluntz and Barry Zhang (Anthropic), 2024. The "find the simplest solution" post. If you read one thing on this, read this.
- A practical guide to building agents, OpenAI, 2025. The three signs a task suits an agent.
- AI Agents That Matter, Sayash Kapoor et al., 2024. The retry loop against published agents, with cost counted.
- How the agent loop works, Anthropic, Claude Agent SDK docs. Why an agent's cost grows every turn, and the budget setting.
- Designing agentic loops, Simon Willison, 2025. Which problems suit an agent, with good examples.
- How to think about agent frameworks, Harrison Chase (LangChain), 2025. Workflows and agents as a spectrum, and an argument with OpenAI's guide.