# AI agent memory: the types, what breaks, and how to manage it > AI agent memory is not one thing. The four kinds in plain language, what goes wrong when it fails, and how a person should keep an agent's memory in shape. - URL: https://www.smith.seattlecompute.com/blog/ai-agent-memory - Published: 2026-11-06 - Type: guide - Topics: ai agent memory, long term memory ai agent, ai agent context, agent memory types - Publisher: The Seattle Compute Company (Smith, https://www.smith.seattlecompute.com/) > AI agent memory is what an agent carries from one step to the next: its written role, the context of the current task, saved skills, and records of past work. People use "memory" for several different things when they talk about agents, and that is why the conversation gets muddy. An agent that "remembers" your tone is doing something quite different from one that remembers where a task stood yesterday. This page splits memory into plain parts, shows where each one fails, and says what you, the person, should do about it. If you are new to the basics, start with [what an AI agent is](/blog/what-is-an-ai-agent). For the longer-running kind, see [autonomous AI agents](/blog/autonomous-ai-agent). ## The four kinds of memory Here is the split that is most useful in practice. The names are ours, not an industry standard, and different tools draw the lines in different places. | Memory type | Plain meaning | How long it lasts | Example | | :-- | :-- | :-- | :-- | | The role | Written instructions: what the agent is for, how it should behave, what is off limits | Until a person edits it | "You handle candidate research. Ask before emailing anyone outside the company." | | Working context | The thread of the job in front of it: messages so far, what it has tried, what is left | A task, or several days across turns | "I checked 12 of 30 sites; the rest are still open." | | Saved skills | A flow that was worked out once and written down so it does not get worked out again | Until changed or removed | The steps for pulling a weekly report from a dashboard | | Records of past work | Notes and logs of what was done, for whom, and what came of it | Long term | "Sent the follow-up on the 3rd; no reply yet." | ### The role This is the most reliable memory because a person wrote it. It is read at the start every time, so it does not drift. Smith agents work from a written role, and it is the first place to look when behavior is off. ### Working context This is what people usually mean by "ai agent context". It is the live picture of the current job. Smith agents keep context across turns, so a request like "follow up with the ones who haven't replied" still means something a few days later. Working context is also the memory that decays fastest, because there is only so much a model can hold in view at once. ### Saved skills When an agent works out how to do something that took effort, like getting through an awkward site or filling a form in a particular order, it helps to save that flow so the next run starts from the answer. In Smith, flows that were worked out can be saved as skills. This is the closest thing to learning on the job, and it is easy to explain: the agent writes down how it did it. ### Records of past work A log of what happened is memory too. It lets the agent (and you) check what was already sent or tried, so work is not repeated or contradicted. It is also what you read when you want to know why something happened. ## What goes wrong **Stale facts.** The agent holds on to something that was true in March. A contact changed jobs, a price moved, a process was replaced. Nothing flags it, so the agent acts on it with full confidence. **Forgotten handoffs.** You said "wait until legal replies," then the thread got long and that condition fell out of view. Or a task passed between you and the agent and the status never got written down. Anything that matters should live somewhere durable, not only in the middle of a conversation. **Bloat.** Notes pile up, skills overlap, and the role grows to three pages of exceptions. More memory is not better memory. Contradictory or cluttered notes make an agent slower to decide and more likely to pick the wrong one. **Private details in the wrong place.** Anything written into memory can resurface later. Keep passwords and sensitive details out of the role and notes, and use proper credential handling instead. See [AI agent governance](/blog/ai-agent-governance) for the wider picture. ## How a person should manage it You do not need to micromanage this. A short routine goes a long way. 1. **Write the role clearly and keep it short.** Say what the job is, what done looks like, and where the agent must stop and ask. Edit it when behavior surprises you. 2. **Put anything important in writing.** A decision, a deadline, a "do not contact this person." If it only exists in chat, treat it as fragile. 3. **Save skills deliberately.** When a flow works and will repeat, save it. When it was a one-off, do not. 4. **Correct stale facts when you see them.** Tell the agent plainly what changed, and check the correction stuck. 5. **Prune now and then.** Every few weeks, skim the role and skills. Delete what no longer applies and merge what overlaps. When something does go wrong, ask which kind of memory failed. A missing rule is a role problem. A reworked flow is a skill problem. An old fact is a records problem. Fixing the right layer is quicker than adding more notes everywhere. For a look at jobs that make good first assignments, see [AI agent examples](/blog/ai-agent-examples). For a setup where each agent has its own handle, email and computer, see [AI agents for small teams](/ai-agents-for-small-teams). ## FAQ **What is AI agent memory?** Whatever an agent can draw on beyond the message in front of it. That includes its instructions, the thread of the current job, steps it has saved for reuse, and notes on what it did before. **What is long term memory for an AI agent?** Anything that survives after a task ends: the written role, saved skills and records of past work. It lets an agent pick up on Thursday what you started on Monday. **Does a bigger context window mean better memory?** Not by itself. A context window is how much the model can look at in one go. Memory is what gets kept, and a long pile of stale notes can make an agent worse, not better. **How do I fix an agent that keeps forgetting things?** Work out which kind of memory failed. If the rule is missing, add it to the role. If a flow keeps getting reworked, save it as a skill. If a fact is old, correct it. --- Site index for LLMs: https://www.smith.seattlecompute.com/llms.txt