- 01.The five structural components every agent is built from -- perception, reasoning, action, memory, and the loop.
- 02.Why tools (action) matter more than models (reasoning) for product differentiation -- and the PM decision ranking that follows.
- 03.How to determine which components your agent actually needs versus which ones add complexity without earning their keep.
Five Components, Three That Actually Matter
In early 2025, a healthcare technology company decided to build an "AI agent" for diagnostic assistance. The vision was ambitious: review patient records, cross-reference symptoms against medical literature, suggest differential diagnoses, and recommend next steps. They built all five agent components. It took nine months and $2.3 million.
The team they lost the contract to built something simpler. Three components: perception, reasoning, action. No persistent memory. No iterative loop. It took four months, it shipped, and physicians used it because it was fast, transparent, and didn't try to "think" more than the physician wanted it to.
The anatomy of an agent is five components. The anatomy of a GOOD agent is the minimum set of components the task actually demands.
Planner, Executor, Memory, Critic, Router
Every agent is built from five structural components that map to cognitive functions: perceive, think, act, remember, iterate.
An agent's anatomy is five components -- perception, reasoning, action, memory, and the loop -- where the PM's design decision is which components this specific agent needs, not whether to implement all five.
-- The definitionMost Need Three.
The ranking that changes product decisions. PM decisions ranked by impact on agent quality: (1) Tools -- the right tool set with a mediocre model outperforms the wrong set with a frontier model. (2) Context -- everything from Levels 1 and 2. (3) Loop duration. (4) Data access. (5) Model choice. The model is the least differentiating factor. Tool set and context quality are what separate products.
The Components You Skip Are the Ones That Bite
The "full-stack agent" fallacy. Each component adds infrastructure cost, maintenance burden, and failure surface. Memory requires storage, relevance ranking, staleness detection, and loading strategy. The loop requires iteration limits, divergence detection, and graceful termination. Each unnecessary component is engineering you maintain without product value.
Tool sprawl is feature creep for agents. Model accuracy on tool selection degrades significantly beyond 15-20 available tools. A model with 50 tools spends more reasoning effort choosing WHICH tool than executing the task. Curate the minimum tool set per task type.
The Trap
Building all five components because "that's what an agent is."
Academic definitions include all five. This creates an implicit assumption that a "real" agent needs all five. Teams implement persistent memory for stateless tasks. They build iterative loops for agents that need one well-reasoned pass.
Apply the minimum viable agent test. Can this task be accomplished with perception + reasoning + action alone? If yes, ship that. Prove users need memory or iteration before building it.The
.3M LessonTwo teams built the same clinical decision support product. One overengineered. One shipped.
Same Task. Opposite Outcomes.
Full-Stack Approach
Minimum Viable Agent
Remember This
1. Five components: perception, reasoning, action, memory, loop. Most production agents only need three. Add the other two only when the task demands them.
2. PM decision ranking by impact: tools > context > loop duration > data access > model choice. The model is least differentiating in most production systems.
3. The anatomy IS the diagnostic framework. When an agent fails, identify WHICH component failed. Fix the failing component, not the entire system.
References
1. Building Effective Agents -- Anthropic Engineering Blog
2. OpenAI Agents SDK -- OpenAI Documentation
3. Harvey AI -- Harvey AI
4. The Anatomy of an AI Agent -- Anthropic Documentation