<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Memory and State on DATATWEETS</title><link>https://datatweets.com/courses/ai-agents/memory-and-state/</link><description>Recent content in Memory and State on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Datatweets</copyright><lastBuildDate>Sun, 28 Jun 2026 09:00:00 +0200</lastBuildDate><atom:link href="https://datatweets.com/courses/ai-agents/memory-and-state/index.xml" rel="self" type="application/rss+xml"/><item><title>Lesson 1 - The Messages List Is Memory</title><link>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-1-the-messages-list-is-memory/</link><pubDate>Fri, 09 Jan 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-1-the-messages-list-is-memory/</guid><description>An agent&amp;rsquo;s short-term memory isn&amp;rsquo;t a special feature — it&amp;rsquo;s the messages list the loop keeps appending to. Once you see that, the two memory problems become clear: the list grows past the context window, and it disappears when the session ends. This lesson frames both.</description></item><item><title>Lesson 2 - Managing Context: Truncation and Budgets</title><link>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-2-managing-context-truncation-and-budgets/</link><pubDate>Fri, 09 Jan 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-2-managing-context-truncation-and-budgets/</guid><description>The simplest fix for a growing history is truncation: keep the first message and the most recent turns, drop the rest. Learn to truncate by whole turns, measure prompt size accurately with Claude&amp;rsquo;s count_tokens, and decide what to trim against a token budget.</description></item><item><title>Lesson 3 - Summarization Memory</title><link>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-3-summarization-memory/</link><pubDate>Fri, 09 Jan 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-3-summarization-memory/</guid><description>Summarization keeps the gist of a long conversation while shrinking the messages list: fold the old turns into one summary message (written by a cheap model call) and keep the recent turns verbatim. Learn the compaction logic and when to summarize vs truncate.</description></item><item><title>Lesson 4 - Long-Term Memory with a Vector Store</title><link>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-4-long-term-memory-with-a-vector-store/</link><pubDate>Fri, 09 Jan 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-4-long-term-memory-with-a-vector-store/</guid><description>Long-term memory stores durable facts as text notes and retrieves the relevant ones by similarity. Build a small VectorMemory with add and search, run it with a dependency-free keyword embedding, then swap in sentence-transformers or chromadb for real semantic search.</description></item><item><title>Lesson 5 - Guided Project: Give Atlas Memory</title><link>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-5-guided-project-give-atlas-memory/</link><pubDate>Fri, 09 Jan 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/ai-agents/memory-and-state/lesson-5-guided-project-give-atlas-memory/</guid><description>Put the module together: give Atlas short-term memory it manages with compaction, and long-term memory in a vector store it writes traveler preferences to and searches before planning — so it remembers and respects what it has learned.</description></item></channel></rss>