🧠 Concepts
Overview

Core Concepts

Core Concepts Deep Dive
A 3-minute overview of Models, Agents, Harnesses, Memory, and Tools β€” the building blocks of AI agents

Before building with agents, it helps to have clear mental models for the key pieces. Think of these concepts like understanding the parts of a car before you learn to drive.

Understanding these concepts lets you:

  • Choose the right tool for a given problem instead of guessing
  • Debug faster β€” when something breaks, you'll know which layer to look at
  • Compose systems confidently β€” knowing how pieces fit together makes you a better architect
  • Communicate clearly with teammates, docs, and AI assistants

The five core concepts


Concept map β€” how they relate

Every agent system is built from these five pieces, each playing a distinct role:

ConceptRoleAnalogy
ModelReasons and generates textThe brain
AgentModel + goals + decision loopThe person
HarnessOrchestrates the agent in a workflowThe job description
MemoryStores and retrieves contextThe notebook
ToolsLets the agent act on the worldThe hands

A minimal agent needs only a model and a goal. As you add memory and tools, the agent becomes more capable. The harness is what ties it all together into something you can actually ship.


The three-layer mental model

Every AI agent system has three layers:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         YOUR APPLICATION        β”‚  ← What users see and interact with
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚         AGENT HARNESS           β”‚  ← Orchestration, memory, tools, routing
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚         AI MODEL                β”‚  ← The reasoning engine (Claude, GPT, etc.)
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

You don't have to build all three yourself β€” that's what the tools in this cookbook are for. But understanding what lives at each layer makes you dramatically better at both using and building agent systems.


Where to start

If you're new to agents, read the concepts in this order:

  1. Models β€” understand what the model actually does
  2. Agents β€” see how a model becomes an agent
  3. Tools β€” learn how agents take action
  4. Memory β€” learn how agents maintain context
  5. Harnesses β€” see how it all gets wired together

Once you have a feel for these building blocks, head to the Recipes section to see them in action.