cd /news/ai-agents/what-does-an-ai-agent-actually-remem… · home › topics › ai-agents › article
[ARTICLE · art-181302] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

What Does an AI Agent Actually Remember?

A developer argues that AI agent memory is really just text the software saves and resends to the model, and that the most important layer is run state — which steps of a job already finished — rather than the context window or conversation history. Citing Diagrid's documentation on the Claude Agent SDK, the developer notes that the SDK "persists conversation state but not execution position" and "doesn't know whether an issued tool call actually completed," so a resumed run can repeat a tool call. The developer recommends asking any agent framework how it knows, after a restart, which tool calls already finished.

recommendation

Persist run state — which steps finished and what each returned — separately from conversation history, and check it on resume so a restarted agent doesn't re-issue completed tool calls.

more in playbook: Designing agent systems
by read1 min views13 publishedDec 3, 2026

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?

── more in #ai-agents 4 stories · sorted by recency
── more on @diagrid 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/what-does-an-ai-agen…] indexed:0 read:1min 2026-12-03 · —