From business problem to a tested, running agent · Anthropic, OpenAI, OWASP and NIST guidance

AI agent engineering framework

Pick the simplest architecture that reliably gets the result. Write down what it may know, decide, access and change. Then show it works, before release and after. The simplest system that works reliably wins, not the most autonomous one.

Start with the pattern chooser →

Layer AProblemWhat outcome, from what baseline?
Layer APatternWhich architecture solves it?
Layer BContractWhat it may know, decide, access, change and remember
Layer CBuildSmallest working version
Layer CEvidenceTests against agreed thresholds
Layer COperateMonitor, improve, roll back
A · Select the architecture

Seven patterns. Five are architectures; two are configurations you add to them.

B · Define the design contract

Eight design dimensions, recorded on one Agent Build Card.

C · Build, evaluate, operate

Five delivery stages, each with a deliverable and an exit check.

Across every layer: security, governance and business value. Check them at every stage, not at the end.

1 · Pick a pattern

Start at question 1 and stop at the first yes. Each step down costs more, runs slower and is harder to test, so only move on when the answer really is no.

  1. 1

    Can fixed rules or ordinary automation do the job reliably: a form, a spreadsheet formula, a report, or a workflow tool with no AI step?

    YesNo AI needed. Build that.
  2. 2

    Can one well-prompted call, with the right documents or data attached, do the job?

  3. 3

    Are the steps known in advance, so code can fix the order?

  4. 4

    Is the job short: a handful of tool calls, done in one sitting, no written plan needed?

  5. 5

    Is a single planning agent still failing after you have simplified it? Its context overflows, it keeps picking the wrong tool even after you have tested and trimmed its toolset, or independent parts should run in parallel.

Then, separately: does a schedule or an event start each run, rather than a person? Add P6 Event-driven. Memory between runs is a different decision, whatever starts the run: record it under state and memory. Does it span agents deployed and owned by different teams or systems? Add P7 Distributed. These are configurations of P1–P5, not alternatives to them.

Both of Anthropic's guides make the same point: start with the simplest thing that works and add complexity only when you can show it helps (Building effective agents; When to use multi-agent systems). A long tool list is a reason to test how well the agent picks tools and to trim or merge them first. Splitting into several agents comes after that.

2 · The seven patterns

Treat these as teaching labels, not mutually exclusive types. A real system has one main architecture (P1–P5) and may add one or both configurations (P6, P7).

P1

Augmented assistant

Ladder L0–L1

Answers, drafts or analyses using the context it's given: documents, search results, perhaps a read-only lookup.

Use when
One response does the job and a person acts on it
Example
HR policy assistant
Watch for
Stale or missing source documents
Term
Anthropic: augmented LLM
P2

Structured AI workflow

Ladder L2

Code runs fixed steps and calls AI at chosen points. Covers chaining, routing, parallel checks and draft-then-review loops.

Use when
You can draw the flowchart before you start
Example
Proposal drafting pipeline
Watch for
Mistakes in early steps carrying through
Term
Anthropic: workflow
P3

Tool-using agent

Ladder L3

The model picks tools as it goes and loops (gather context, act, check) until the goal is met or a stop rule kicks in.

Use when
The next step depends on what was just found
Example
CRM research and enrichment
Watch for
Loops with no stop rule; unsafe write actions
Term
Anthropic: agent; OpenAI: single-agent loop
P4

Planning & execution agent

Ladder L3

Breaks a goal into a written plan, works through it, checks each piece and keeps progress in files so the work survives long runs.

Use when
Many steps, or more than one session
Example
Competitor research and report
Watch for
Calling it done too early; drifting from the plan
Term
Anthropic: long-running harness
P5

Specialist multi-agent system

Ladder L4

A lead agent hands bounded subtasks to specialists, each with its own context window, and combines what they return.

Use when
Context overload, or work that can run in parallel. 15–20+ tools is a cue to test tool choice and simplify the toolset first, not to split.
Example
Researcher, analyst and reviewer
Watch for
3–10× the tokens; context lost at handoffs
Term
Anthropic: orchestrator-subagent; OpenAI: manager pattern
P6

Event-driven agent

Configuration

Any of P1–P5, started by a schedule, an event or a monitoring check instead of a person. Whether it remembers anything between runs is a separate decision (B3).

Use when
A schedule or event, not a person, starts each run
Example
Lead qualification, risk monitoring
Watch for
Duplicate runs; nobody reading the output
Term
Anthropic: message bus (for many agents)
P7

Distributed agent system

Configuration

Agents deployed separately, often owned by different teams, that coordinate across systems through shared records, messages or agent-to-agent protocols.

Use when
A process really does cross departments or systems
Example
Order-to-cash across sales, finance and logistics
Watch for
Trust between agents; one failure setting off others
Term
OWASP risks ASI07, ASI08

Ladder levels refer to the control ladder in the engineering reference. For platforms and tutorials that fit each pattern, see Agent resources.

3 · Fill the Agent Build Card

Every project starts with this card, so sponsors, builders and reviewers are judging the same thing. Simple cases get short answers, but every field gets an answer. The card is pre-filled with the proposal example. Edit it, then copy it as Markdown. Your edits are kept in this browser only. If the card is open in two tabs, changes to different fields are merged; if both tabs change the same field, you choose which version to keep.

Autonomy and authority
Data access
Production extensions

4 · Deliver in five stages

Don't start a stage until the previous stage's exit check is met.

  1. S1DiscoverFind the workflow, the current baseline, the business outcome and the risks.Use Case & Baseline CardProblem and success criteria agreed
  2. S2DesignPick the pattern; set tools, context, autonomy and controls.Agent Build CardDesign and permissions reviewed
  3. S3BuildSmallest working system, on synthetic or approved data.Working prototype and test casesThe normal case works end to end
  4. S4ValidateTest normal, edge, adversarial and failure cases.Evaluation scorecard and risk registerAcceptance thresholds met
  5. S5Deploy & improveRelease with an owner, monitoring, procedures and a way back.Runbook and performance dashboardBusiness outcome shown in monitoring

5 · Test checklist

Write these test cases before building (S2–S3), then run them all at S4. Ticks are just for you and aren't saved.

Check the result in the real system (was the record actually updated?), the tool calls and decisions along the way, and how much human effort it took. Not only whether the final answer reads well.

Three worked cases

All three could be sold as "AI agents". They are three different designs.

ScenarioArchitectureAutonomyWhat to evaluate
Marketing proposal preparationP2 Structured workflow: retrieval, structured draft, pricing checkDrafts automatically; a person approves before sendingTotal staff time per accepted proposal (preparation, review and rework), factual and pricing accuracy, completeness
Customer complaint handlingP3 Tool-using agent with case stateClassifies and routes on its own; approval before refunds or other commitmentsCorrect routing, inappropriate actions, resolution time
Market intelligence monitoringP4 + P6 Scheduled planning agent; P5 only if one agent can't copeResearches on its own; a person approves anything sent outside the teamSource quality, coverage, accuracy, false alerts, cost per run

The proposal system doesn't need a planner, long-term memory or a separate reviewer agent. A fixed workflow with retrieval, structured output and an approval step will likely be more accurate, cheaper and easier to run. Market research is different. Independent research threads can justify a lead agent with parallel workers, as in Anthropic's own research system, along with the coordination and testing problems that come with it.

To prototype the proposal case, start with the no-code automation tools. For the market monitoring case, look at the general-purpose agents or, if you are writing code, the developer frameworks.