A template for designing any agent
What it is
Work through nine headings, in this order:
- Requirements: what it must do, for whom, at what volume, speed and cost; and what it must never do.
- Architecture: the simplest shape that meets them: workflow, single agent, or several.
- Tools: the few task-shaped tools, each marked read or write.
- Memory: what is kept within a task, and across tasks.
- Planning: how the work is decomposed and tracked.
- Guardrails: the worst case, and the code that prevents it.
- Evaluation: how you will know it works, before and after launch.
- Scalability: the bottleneck, and the plan for it.
- Failure handling: what happens when a step, a tool or the model fails.
Why it matters
The order matters.
- Requirements first, because 'should this be an agent at all?' is answered there.
- Tools and guardrails before prompts, because they decide what is possible and what is safe.
- Evaluation before launch, because without it no later change can be trusted.
- The same template works on a whiteboard in forty minutes and in a design document over a week.
In the real world: A design review uses these nine headings as its agenda; a proposal that cannot fill 'the worst thing it can do, and what stops it' is sent back.
Visual example
TemplateEach step constrains the next. Prompts come after all of them.
Starting with the architecture diagram. Without requirements you cannot choose between a workflow and an agent, and without the worst case you cannot place a single guardrail.