Lesson 9 of 9 · 22m
When Not to Build an Agent
Choose scripts, deterministic workflows, retrieval, or human review when autonomy adds cost and risk without adding judgment.
The most valuable sentence in applied AI engineering is often "don't build an agent for that." I know it costs you a demo. It may also save you six months of eval theater and one memorable incident call. Agents are justified when the task requires context-sensitive judgment under uncertainty. They are not a universal replacement for software.
Use the right boring tool
Choose an agent only when simpler designs cannot handle the decision structure:
fixed sequence, known inputs script or workflow
search plus summarization retrieval-augmented generation
classification with stable labels classifier or constrained model call
rare irreversible judgment human workflow with AI assistance
open-ended diagnosis and tool use possible agent fitA deterministic workflow is not a failure of imagination. It is often the product.
The agency test
Ask what the model is genuinely needed to decide. If you can enumerate the branches, write the branches. If every run follows the same sequence with different parameters, you have automation wearing a costume. Agency is useful when the next step depends on ambiguous observations and the cost of pre-enumerating every path is high.
Cost is more than tokens
Agents introduce ongoing costs:
evaluation maintenance
trace inspection and debugging
tool permission design
prompt/model/version regression management
human escalation operations
incident response and rollback complexity
user trust repair after unpredictable behaviorA workflow engine has failure modes too, but they are usually inspectable. An agent can fail semantically while every infrastructure dashboard is green.
Human-in-the-loop is often the correct product
For high-stakes, low-volume work, the best system may draft, gather evidence, compare options, and prepare a decision — then stop. That is not a lesser agent. It is a well-scoped decision-support system.
agent gathers account state
agent identifies three plausible causes
agent drafts remediation and expected side effects
human chooses action
system executes through narrow audited toolsThis design preserves judgment where judgment is legally, financially, or ethically important.
Progressive autonomy
If autonomy is justified, earn it gradually:
read-only copilot -> proposed actions -> constrained execution -> expanded authorityPromote only after scenario evals, shadow-mode comparison, production traces, and override analysis support it. Autonomy should be a consequence of evidence, not a launch requirement.
A useful litmus test
If removing the model and replacing it with a rules engine makes the system safer, cheaper, and no worse for users, the rules engine was the correct design. The point of engineering is solving the problem, not maximizing the amount of agent in the solution.
Field notes
- "Users expect AI" is not a permission architecture or a control loop design.
- If a task is high-volume and repetitive, deterministic automation usually wins on cost and auditability.
- If a task is low-volume but catastrophic when wrong, bias toward human confirmation.
- You can still use models heavily inside non-agent systems. Rejecting agency is not rejecting AI.
Was this lesson helpful?