The first agent demo is always impressive. It is also why so many organizations underestimate what follows. The model call is a small box in a much larger diagram, and almost every cost, risk and delay lives in the boxes around it. These are the lessons we apply in every agent engagement.
Ask three questions before you approve an agent
Who will own it in eighteen months? What is it allowed to do without human confirmation? What does it cost per thousand runs? If those questions have no answers, you are not designing an agent yet. You are prototyping one.
Give every agent a hard budget
Token spend grows with usage and with autonomy, and an agent stuck in a loop is expensive in a way ordinary code is not. Set a maximum number of steps, tokens and wall clock time, plus a circuit breaker on repeated failure.
Enforce limits in the platform, not in each agent's prompt. A prompt is a request. A platform limit is a guarantee.
Treat prompts as code
Prompts embedded in application code are configuration pretending to be logic. A prompt change can alter behaviour as much as a code change, so it deserves the same version control, review, rollback path and evaluation gate.
Write behaviour as test cases
Design the agent's persona and its evaluation cases together. If you cannot express a behavioural requirement as a test case, it is not specific enough to build, and you will find out later at a worse moment.
Choose the least autonomy that works
Not every problem needs an autonomous agent. A fixed chain of prompts or a simple router is cheaper, faster and easier to test. Add planning and delegation only when the problem genuinely requires it.
Fix grounding and engineering first
Most disappointing agent behaviour is a grounding problem in disguise: the agent lacks the right context. And if your organization struggled with microservices, it will struggle with agents for the same reasons. Deployment automation, clear contracts and real observability make the agentic layer a much smaller step.
Key takeaways
- Know the owner, the permissions and the cost per run.
- Enforce budgets for steps, tokens and time in the platform.
- Version, review and test prompts like code.
- Start with the least autonomy that solves the problem.