02Chapter 2 of 5
Free course8 min read

The four parts of an agent.

Every agent is built from the same 4 layers: brain, playbook, hands, notebook. Once you can name them, you can evaluate any AI tool, and describe what you need without an engineer in the room.


Every agent, no matter how simple or sophisticated, is built from the same 4 parts. Once you can name them and say what each one does, you can evaluate any AI tool someone tries to sell you, and you can describe what you need without requiring an engineer in the room. This chapter walks through all 4 parts using Mia's Beans and Books inbox agent as the thread.

02.0

The four parts, in one picture

The easiest way to understand the 4 parts is to think of the agent as a person doing a job. A person doing a job well has a brain to think with, a set of instructions that tells them the goal and the rules, hands they can use to interact with the world, and a notebook where they write things down so they do not have to remember everything from scratch each time. An AI agent has exactly the same 4 components, with different names: the model, the instructions, the tools, and the memory.

The four parts of an agent
Tier 1The Brain:ModelAI ModelTier 2The Playbook:InstructionsGoalRulesEscalationTier 3The Hands:ToolsGmailOrder logSlackTier 4The Notebook:MemoryThis jobPast jobs
Every agent has these four layers. The model does the thinking; the instructions set the goals and rules; the tools are how it acts on real systems; the memory is what it carries from one job to the next.

None of the 4 parts does much on its own. The model is a brain with no instructions, so it will think about whatever you point it at but will not know what Mia's shop cares about. The instructions have a goal but no ability to act. The tools are connections to real systems that do nothing until something calls them. Memory is a notebook that has to be written to before it can be read from. They work because they are connected. The model reads the instructions, uses the tools to act, and writes to memory so the next run can build on what happened before.

02.1

Part 1: The model (the brain)

The model is the AI reasoning engine at the center of the agent. It is what reads an email in Mia's inbox, figures out what the customer is asking, and decides what the right response looks like. When people talk about "ChatGPT," "Claude," or "GPT-4," they are usually talking about a model.

A model does not come with knowledge about Mia's shop built in. It comes with a general ability to read and reason, the way a new hire arrives with literacy and common sense but without knowing the menu, the regulars, or the supplier relationships. Those specifics get loaded in through the instructions. The model just supplies the intelligence that can apply those specifics to each new situation.

Different models have different strengths. Some are faster and cheaper. Some are better at following long, detailed instructions without drifting. Some are better at very precise reasoning about numbers. For most small-business agent work, the practical differences between the top-tier options are smaller than you might expect. The quality of the instructions you give the model matters more than which model you pick.

Pro tip
Most agent platforms let you swap the model with a single config change. If the agent feels too dumb for a job, try a more capable model BEFORE you rewrite the instructions. The instructions usually deserve the blame, but the model swap is the cheap experiment that tells you for sure.
02.2

Part 2: The instructions (the playbook)

The instructions are the playbook you hand to the agent before it starts. They tell the model what goal it is working toward, what rules it must follow, what tone to use when communicating, and which situations require it to hand off to a human instead of acting on its own. Without good instructions, even a powerful model produces generic, off-brand, or just wrong results.

For Mia's inbox agent, the instructions might read something like this: your job is to read incoming customer emails for Beans and Books and draft a reply for each one. Use a warm, personal tone. If an email is a complaint or mentions a refund, do not send the reply automatically; flag it for Mia to review first. If a wholesale inquiry comes in, forward it to the manager inbox and send the sender a brief acknowledgment.

Notice that those instructions do not try to cover every possible type of email. They set the goal ("draft a reply for each one"), a few firm rules ("don't auto-send complaints"), and the escalation path ("flag for Mia"). Then they trust the model to apply judgment to everything else. That is exactly the point of using an agent instead of a plain automation. A plain automation needs a rule for every case. An agent needs a clear goal and a clear boundary.

What good instructions include
  1. The goal: what the agent is trying to accomplish.
  2. The constraints: what it is not allowed to do on its own.
  3. The voice and persona: how it should communicate on your behalf.
  4. The escalation path: when to stop and hand off to a human.
  5. Any business context it needs to do the job: your hours, key contacts, policies, pricing.
02.3

Part 3: The tools (the hands)

Tools are the connections that let the agent interact with real systems. Without tools, the model is thinking in a box. It can reason about what Mia's inbox needs all day, but it cannot actually read the emails, draft a reply into Gmail, or send a Slack message to Mia when something needs her attention. Tools are what translate reasoning into action.

For Mia's inbox agent, the tools are: Gmail (to read incoming emails and send or draft replies), an order history spreadsheet (to look up context if a customer references a past order), and Slack (to ping Mia directly when an email needs her review). That is a short list. The agent does not need access to everything in the business, just the tools required to do the specific job it was given.

How Mia's inbox agent uses its 3 tools
Gmail Inboxreads new emailsreads new emailsAgentreasons + decidesreasons + decidesOrder Logcontext lookupcontext lookupGmail Sendreply or draftreply or draftSlackflags for Miaflags for Miaincoming emailorder lookupdraft replyescalation alert
The agent reads from Gmail, checks the order log if a customer references a past visit, sends a reply or draft, and notifies Mia via Slack for anything that needs her review.

A detail worth noting: the agent only calls a tool when the job actually requires it. If an email is a simple question about hours, the agent reads it, writes the reply, and sends it. It does not check the order log (there is no order to look up) and it does not ping Slack (nothing needs Mia's attention). The tools are available; the agent decides when to use them based on what the email calls for.

Pro tip
The tools an agent has access to define how much it can do and how much damage it can cause if something goes wrong. An agent with read-only access to your inbox is very different from one with permission to send emails on your behalf. Start with the smallest set of tool access the job actually requires, and expand only after you have watched the agent work for a while and trust its judgment on the specific task.
02.4

Part 4: The memory (the notebook)

Memory is what lets the agent build on what it has already encountered instead of starting from zero every time it runs. There are 2 kinds that are worth understanding for a small-business context.

The first is in-context memory, which is the agent's working memory during a single job. When Mia's inbox agent is processing one email, it holds the text of that email, the instructions, and any information it looked up all at once in its working space. When the job is done and the email is handled, this working space clears. The agent does not automatically remember anything from one email to the next unless something is written to persistent memory.

The second is persistent memory, which is a record the agent can write to and read from across multiple runs. For Mia's shop, this might mean the agent keeps a note that a particular customer submitted a complaint last month, so that when they write again the agent can acknowledge the prior interaction and flag the email for Mia. Or it might mean the agent tracks which topics keep coming up in customer emails, so Mia can see at a weekly glance what her customers are asking about most.

Persistent memory is more powerful but also more complex to set up well and to keep accurate. Most small-business agents start without it. You run the core task reliably first, build confidence in the agent's basic judgment, and add persistent memory as a second step once the foundation is solid.

Critical
Most "why didn't the agent learn from last time?" complaints trace back to missing or misconfigured persistent memory. Without it the agent literally cannot carry knowledge from one job to the next. That is not a bug in the model. It is a design choice the agent's owner makes. Add memory deliberately when the cost of forgetting starts to bite.
KEY TAKEAWAYS
  1. Every agent has 4 parts: a model (the brain), instructions (the playbook), tools (the hands), and memory (the notebook).
  2. The model provides reasoning ability but needs instructions to know what your business cares about.
  3. Good instructions set a goal, clear rules, a voice, and an escalation path; they do not try to cover every possible case.
  4. Tools are the connections that let the agent read from and write to real systems like Gmail and Slack.
  5. Give the agent the smallest set of tool access the job requires; expand only after building trust.
  6. In-context memory lasts for one job; persistent memory carries knowledge across multiple runs.
  7. Start without persistent memory, get the core task running reliably, and add it as a second step.

End · Chapter 2 of 5

Mark it complete and it’s ticked off on your route.

Rivet, the product security agent for software teams, free to start. Human-led pentests and design review when you need them. AI agents are our specialty.

or get a free Rivet scan

BASEDChicago, IL · remote

FIELD NOTES

ONE SHORT EMAIL A MONTH

© 2026 ROUTEWORK — ALL RIGHTS RESERVED

Claude and Mythos are trademarks of Anthropic. RouteWork is not affiliated with Anthropic.