Skip to content
LinkedInX

The AI Agent Stack

Target audience: Those who want to make sense of AI agent terminology (RAG, MCP, Memory, Skills, Hooks, and more), those who want to see where each technology fits in practice
Prerequisites: Basic understanding of Prompt Engineering, Context Engineering, Harness Engineering, and Loop Engineering

The AI agent stack is the set of representative building blocks (layers) needed to turn a generative AI model into an AI agent that works in practice. Terms like RAG, Memory, Tools, MCP, Skills, and Hooks show up constantly across AI agent articles — this page organizes them into a single map.

Why an Overview Matters

There are many terms related to AI agents. Learning each one in isolation, without understanding what problem it solves, makes it easy to lose the overall picture. The four-layer structure covered in Prompt Engineering, Context Engineering, Harness Engineering, and Loop Engineering — instructions, information, execution environment, and repeat structure — can be broken down further into twelve elements commonly used in practice.

The 12 Elements of the AI Agent Stack

#ElementRoleDetails
1RAGPulls in outside knowledge before answeringWhat Is RAG?
2ContextEverything the model can see right nowContext Engineering
3MemoryWhat’s remembered across turns and sessionsWhat Is Memory
4AgentAn AI that acts, not just answersWhat Is an AI Agent?
5Agentic AISystems that plan, decide, and self-correctWhat Is Agentic AI
6ToolsExternal functions the agent can callWhat Is Tool Use
7MCPOne open standard to connect tools and dataWhat Is MCP?
8SkillsReusable know-how loaded on demandWhat Are Skills
9HooksTriggers that run logic at set pointsWhat Are Hooks
10SubagentsHelpers the main agent hands work toWhat Are Subagents
11OrchestrationCoordinates the whole multi-step workflowWhat Is Orchestration
12EvalMeasures whether the system actually worksWhat Is AI Evaluation?
This table scrolls horizontally. Keyboard users can focus the table and use the left and right arrow keys.

How the Layers Relate

graph TD
    RAG["RAG\nPull in outside knowledge"] --> Context["Context\nWhat's visible right now"]
    Memory["Memory\nPersists across sessions"] --> Context
    Context --> Agent["Agent / Agentic AI\nDecide and act"]
    Skills["Skills\nReusable procedures"] --> Agent
    Agent --> Tools["Tools\nCall external functions"]
    Tools --> MCP["MCP\nStandard connection"]
    Agent --> Subagents["Subagents"]
    Subagents --> Orchestration["Orchestration\nCoordinate the workflow"]
    Hooks["Hooks\nAutomatic triggers"] -.-> Agent
    Orchestration --> Eval["Eval\nMeasure the outcome"]
  • RAG, Context, and Memory are input-side layers that determine what the agent knows
  • Agent, Agentic AI, Tools, MCP, and Skills are execution-side layers that determine what the agent can do
  • Hooks insert automatic processing at key points in execution
  • Subagents and Orchestration handle how work is divided and coordinated across multiple units
  • Eval verifies whether all of the above is actually working

Summary

  • The AI agent stack maps out the twelve representative layers that make up an AI agent
  • It breaks down into input (RAG, Context, Memory), execution (Agent, Tools, MCP, Skills), control (Hooks, Subagents, Orchestration), and verification (Eval)
  • No single element works in isolation — together they form one AI agent
Quiz