What Does an AI Agent Actually Remember?
Less than most people assume. The model inside an agent remembers nothing from one call to the next. Everything the agent "remembers" is text its software saved and sends back to the model each time.
AI agent memory comes in three layers.
The context window. The text the model can see on this one call. When it fills up, older text gets dropped or summarized.
The conversation history. Saved messages and tool results, sent back to the model so it can follow along.
The run state. Which steps of the job already finished, and what each one returned.
Most talk about agent memory is about the first two. I think the third matters most once an agent does real work, because it's what tells the agent, after a restart, that it already sent the invoice.
The fair objection is that frameworks already save the conversation. Diagrid's page on the Claude Agent SDK draws the line well. The SDK's sessions write every message, tool call and tool result to disk, but the SDK "persists conversation state but not execution position." It "doesn't know whether an issued tool call actually completed," so a resumed run can call the same tool again.
https://www.diagrid.io/learn/claude-agent-sdk-durable-execution
Put one question to your framework's docs: after a restart, how does the agent know which tool calls already finished?
原文:https://www.a8q9.cn/en/article/what-does-an-ai-agent-actually-remember-1840ba.html