TL;DR: Every step can go to a person, an agent, or deterministic automation, and choosing deliberately protects both quality and cost.
- Use deterministic automation for bounded, repeatable, well-specified work like tests and policy checks.
- Use an agent where the work needs judgment over context and the output is checkable.
- Keep a person on high-stakes, hard-to-reverse decisions that carry accountability.
- An agent's cost is variable and hidden, so route the cheapest method that meets the bar.
When a workflow has been reshaped and it’s time to put tools to work, the instinct is to reach for an agent at every step. That is rarely the right call. Some steps are better handled by deterministic automation that has existed for years, some by an agent, and some by a person, and the difference shows up in both quality and cost. This page is about making that choice one step at a time.
A step can go to a person, an agent, or automation
Any step in a workflow can be handled three ways: by a person, by an agent, or by deterministic automation that follows fixed rules. They suit different kinds of work, and reaching for an agent everywhere spends money and adds variability where a simpler, more reliable option would do the job better. The goal is to match the method to the work, rather than default to the newest tool.1 Choosing where AI can improve delivery in GitLab Well Architected walks through a similar comparison, starting from a delivery problem and weighing assistance, delegation, and conventional automation.
Where deterministic automation fits
Bounded, repeatable, well-specified work is the home of deterministic automation: tests, static analysis, policy checks, formatting, and the like. For this kind of work deterministic automation outperforms both an agent and a person, often by a wide margin, because it runs the same way every time, costs the same whether it runs once or ten thousand times, and produces a record as a byproduct. Where a check is objective, running it deterministically frees human and agent attention for the judgment calls that actually need it.12
Watch for agents doing a script’s job
Teams often send work to an agent that a script would do more cheaply and consistently, partly because a new tool is appealing. The signal to watch for is an agent run that starts generating code. When it does, extract a script for next time. One team noticed its code review agent writing the same Python script on every review, so they added the script to the skill. The saving per run is small, but adds up over hundreds of runs.
The same pattern applies to testing. Use an agent to explore and find a new test case, then make that case deterministic. Re-running the same agent checks indefinitely works like an expensive scheduled job. Agents also lower the cost of deterministic tooling. Techniques that once rarely justified the effort, such as fuzz testing, now take one request to an agent.
Where an agent fits
An agent earns its place where the work needs reasoning over context or judgment within bounds that a fixed rule can’t capture: interpreting an ambiguous request, drafting against messy inputs, or navigating an unfamiliar system. What makes this safe is that the output is checkable and a mistake is recoverable, so the agent’s variability gets caught before it ships rather than after.1
Where a person is required
Some steps should stay with a person: decisions that are high-stakes, hard to reverse, or that carry accountability someone has to own. This is the same stakes-and-reversibility test that governs the split between people and agents, applied here as one option among three. Decide where human judgment stays covers this topic in more depth.1
Agent costs are variable and easy to miss
The cost of these options differs in a way that’s easy to miss. A person’s cost is visible and roughly predictable. Deterministic automation is cheap and fixed. An agent’s cost is variable and accumulates out of sight: every retry, handoff, and tool call adds to it, and two identical requests can cost different amounts depending on the path the agent takes. So route the cheapest method that meets the bar for a step, and reserve agents for the work only they can do. Where agents run at volume, sending each request to the cheapest capable option rather than the most powerful one is often the difference between affordable and not.13
Treat model choice as a per-task decision. When a model gives you 90% of what you need, ask whether the last 10% is worth twice the cost. Check the opposite case too. When a default model changes silently, answers can turn shallow with no visible sign. One engineer fixing flaky tests in a large monorepo found that switching back to a higher-reasoning model surfaced a feature that would have saved months of work. Hosted agent services can also move users to a free-tier model without notice, so confirm which model is running before you judge the result.
Fast, small models suit other jobs. They work well for grouping and de-duplicating large sets of exploratory scenarios, where redundant paths can be collapsed into one, and less well for pass-or-fail verdicts on a test case.
In practice: Automated testing in place of manual acceptance testing
In one organization,4 auditors believed acceptance testing required a person to click through every change by hand before it shipped. The team kept manual testing only where it had no alternative, on systems that couldn’t be scripted, and moved everything else to automated tests that run on every change and leave a record of what was verified. The human method stayed where the work genuinely required it, and deterministic automation took over the rest, running more often and more reliably than a person clicking through screens ever could.
The lesson for this page is that the same task, confirming a change is acceptable, had two right answers depending on the step, and choosing by fit rather than habit was what made it work.
Try this. Take one reshaped workflow and label each step with the method it uses today. For any step handled by a person out of habit, ask whether a deterministic check or an agent would do it as well or better. For any step you would hand to an agent, ask whether a fixed rule would be cheaper and more reliable.
Related
- Find the real bottleneck and Rework the workflow around agents come first: know which workflow to change and reshape it before placing tools into it.
- Verify what agents produce picks up the deterministic-checks idea in depth, as part of a layered verification approach.
- For the wider case that redesigning the work beats accelerating it, see the Redesigning the work topic page.
