Skip to content
anythingai.space
Agentic Systemsintermediate14 min · 9 steps

Agent Memory and State

The four memory tiers an agent uses, where each fact belongs, when to curate it — and how memory poisons, rots or even hurts reasoning.

context discardedsame broken selectorLOST AT SESSION END.price selector failsuser prefers JSONTuesday sessionlearned 2 thingsWednesday sessionsame mistakesTarget siteselector .price
errordataheavy workresponse
1 / 9
ProblemStep 1 of 9

Every session starts from zero

On Tuesday the agent failed to scrape a site with a broken selector, and the user said they prefer JSON output. On Wednesday a new session starts with an empty context window.

So it tries the same failing selector and answers in prose. The context window is working memory only — it's lost when the session ends.

Watch outA context window is not a memory system. It forgets at the session boundary.

Lesson 5 of 15 in Agentic Systems