The most persuasive AI-agent demonstrations show the model at the center of the frame. It receives an objective, reasons through a plan, calls tools, writes code, and reports success. The surrounding machinery is nearly invisible. In production, that framing should be reversed. The model is a probabilistic component inside a deliberately boring system of permissions, validators, queues, logs, tests, and recovery paths.
This is not an argument against agents. It is an argument for taking them seriously as software. A model can interpret messy intent and navigate ambiguous choices remarkably well. It can also misunderstand a requirement, select the wrong tool, repeat a failed action, or produce a plausible account of work it did not complete. Prompting it to be meticulous does not create a control system.
Anthropic’s guide to building effective agents draws a useful distinction between structured workflows and agents that direct their own process. The more freedom a system receives, the more its environment must supply observable boundaries. Autonomy without instrumentation is not sophistication. It is uncertainty with API credentials.
Build the cage before choosing the animal
Teams often begin agent projects by selecting a model and crafting a system prompt. A safer sequence begins with authority. What may the system read? What may it change? Which actions are reversible? Which require approval? What budget of time, money, and tool calls may it consume? What evidence must it produce before declaring the task complete?
These questions lead to ordinary engineering artifacts: scoped credentials, typed tool interfaces, state machines, idempotency keys, sandboxed execution, and explicit approval gates. None is glamorous. Together they determine whether an agent can be trusted with work that matters.
A coding agent, for example, should not receive an undifferentiated command-line environment and an instruction to avoid damage. It should operate inside a repository boundary, see the relevant tests, work on a reviewable branch, and be prevented from exposing secrets. A database agent should propose a query before executing a mutation, enforce row and cost limits, and preserve a record of the exact operation. The model supplies judgment inside the lane; software constructs the lane.
The growing discussion of “harness engineering,” including this practical treatment from Martin Fowler’s site, gives a name to this surrounding discipline. The harness includes context, tools, architectural constraints, feedback, and cleanup mechanisms. Its purpose is not to make the model appear smarter. It is to turn variable model behavior into a system whose outcomes can be understood.
Completion needs proof
One of the most damaging agent design mistakes is allowing the actor to be the sole judge of its success. Language models are optimized to produce coherent responses, so a confident completion message is weak evidence that the external world reached the intended state.
Every consequential action should have a verification path outside the model’s narration. If an agent says it fixed a bug, run the tests and inspect the diff. If it says it booked an appointment, confirm the calendar event exists with the right participants and timezone. If it says it reconciled invoices, compare source totals, destination records, and unresolved exceptions. Prefer deterministic checks where possible and independent model review where semantic judgment is unavoidable.
This separation creates a simple architecture: propose, execute, verify. The proposer interprets intent and selects an action. The executor uses a constrained interface. The verifier inspects resulting state against explicit acceptance criteria. A human approval step can sit between any of these stages according to risk. The architecture is slower than one unconstrained loop, but speed without reliable completion is a demo metric.
Design for recovery, not perfection
No model choice will remove failures. The practical goal is to make failures cheap, visible, and recoverable. Tool calls should be idempotent so retries do not create duplicate payments or tickets. Long tasks should checkpoint progress. Mutations should carry correlation identifiers. High-impact changes should support rollback. When the agent encounters missing context, escalation should be a normal state rather than an embarrassing exception.
This also changes evaluation. A good agent test suite does not merely grade the final answer. It measures whether the system selected appropriate tools, stayed within authority, detected contradictory inputs, respected budgets, requested approval, and left the environment in a valid state. It includes broken APIs, stale documents, partial permissions, and malicious instructions embedded in retrieved content. The interesting question is not whether the happy path works. Nearly every demo proves that. The question is whether the failure path remains controlled.
There is a product lesson here too. Users do not need an agent to imitate a person at every step. They need confidence about what happened. A visible activity log, clear pending approvals, source citations, and meaningful error states often create more trust than a conversational personality. The interface should expose commitments and evidence, not simulated certainty.
The strongest agent systems may therefore look less magical over time. Their actions will be narrow, their permissions explicit, and their verification relentless. That apparent conservatism is what permits useful autonomy. The model provides flexibility where rules become brittle; the surrounding software supplies the discipline the model cannot promise. The agent is impressive, but the boring machinery is what makes it employable.
Advertisement