Agentic Memory Management
Last updated 2026-07-31What's new
- Agents (AI tools that help with tasks) are now being designed to serve groups, not just individuals, like a family or friends, which presents new challenges.
- An example agent, Judith, has been tested in group settings for 8 months, handling tasks like organizing events and preserving privacy in conversations.
- Group agents need special features, like a "guard" (security system) called Jetou, to protect against attacks and manage memory, as they interact with more data than single-user agents.
- These agents can also learn and adapt over time, like helping a child learn and tracking their progress, showing potential for long-term group use.
- ActiveGraph is a new, open-source (free, community-developed) way to build agents (AI tools that can do tasks automatically) that focuses on tracking changes to the agent itself, not just its actions.
- Instead of using messages as the core unit, ActiveGraph uses logs (records of events) to build and understand agents, making it easier to track, replay, rollback, and fork (create copies of) agents.
- Behaviors in ActiveGraph react to changes in the agent and can trigger new events, with policies (rules) determining how the agent can be modified, adding a layer of control and safety.
- ActiveGraph is a runtime (a system that runs agents) that allows you to rebuild common agent tools on top of it, with all communications happening through a shared state.
- AI tools (computer programs that use artificial intelligence) often struggle with large amounts of information, as performance can degrade after using just 25% of their context window (the amount of data they can process at once).
- Documentation (instruction manuals) for AI tools is often written for humans, not AI, making it difficult for AI to understand and use effectively without additional context engines (tools that help AI understand information better).
- In the future, AI tools may focus on creating a "fluency mode" (a smooth, easy-to-use experience) rather than a "friction mode" (making it hard for users to switch to a different tool), with skills (specialized abilities) playing a key role in this shift.
- When evaluating AI platforms, users often consider factors like security, data governance (how data is managed and protected), and integration (how well it works with other systems) capabilities.
- Hermes (a free, open-source AI assistant) gained popularity for its strong memory, allowing it to remember past conversations, unlike Claude (a paid AI assistant) which struggles with this.
- Hermes' success is due to its simple setup and better memory, with users praising its ability to recall past context, making it feel like a helpful colleague.
- However, Hermes has some issues, like occasionally overwriting good information and requiring separate setup and maintenance, which can be complicated.
- The speaker decided to create a similar memory system within Claude, keeping its benefits and fixing its issues, all without needing extra servers or subscriptions.
- AI agents (computer programs that perform tasks) can learn from experience, like humans, using a process called continual learning, which helps them improve without forgetting past lessons.
- Feedback is crucial for AI agents to learn, and it can come from benchmarks (tests) during development or from analyzing user interaction logs (records of conversations) in production, either automatically or with human experts.
- To make feedback useful, it needs to be turned into a replayable learning environment (a simulation) that allows agents to be tested and improved based on defined success criteria.
- AI agents can be improved at different layers, including the model layer (changing the AI's core understanding), the harness layer (adjusting tools, prompts, or code), and the memory layer (storing facts and skills).
Key points
What it is
- **Agentic memory management** is how AI agents (software that can perform tasks) remember and use information across different tasks and sessions, unlike simple chatbots that forget everything after a conversation.
- It involves storing useful information, avoiding mistakes, and learning from past experiences without needing to retrain the entire AI model.
- Memory is crucial for agents that use tools, open files, or run commands, as it helps them make better decisions and learn over time.
How to use it
- Start by creating a **memory file** (usually named `memories.md`), a plain text file that stores both short-term and long-term information for your agent.
- During each agent session, the agent will automatically write new memories to this file, which can then be reviewed, changed, or deleted by the team.
- To give the agent context from previous work, fetch the memory file and inject its text into the agent’s **system prompt** (the core instructions that guide the agent) during a "prepare" call (a step that runs once before every agent run).
Watch out for
- **Memory rot**: When stored information becomes stale or contradictory, leading to the "stale but confident" problem, where the agent applies outdated information as truth.
- **Memory poisoning**: When an attacker or bad document corrupts stored information, leading to repeated errors at scale. To prevent this, keep memory transparent and editable.
- **Systematic cleanup** is essential to prevent wasted time, contradictions, and expensive repeated work in your agentic system. This can involve processes like "dreaming," where the agent proposes a cleaner memory artifact by removing duplicates and reconciling old advice against new evidence.
Tools named
- Google ADK (Google's Agent Development Kit, a framework for building AI agents), Obsidian (a note-taking system).
Lesson 1: What is Agentic Memory Management and why it matters
Agentic memory management is how an AI agent stores and retrieves information across tasks and sessions. Unlike a simple chatbot that forgets everything after a conversation, an agent needs memory to remember useful information, avoid repeating mistakes, and carry lessons forward without retraining the whole model.
Memory becomes critical when an agent uses tools, opens files, runs commands, and takes actions — the model is only one part of the machine. A real agent needs several layers: the LLM (reasoning engine), memory, a context system (which decides what information to show the model), skill routing (picking the right tool at the right time), and an orchestration loop. Memory is one of the most underestimated challenges in agentic architectures. Once multiple agents share state, problems like stale reads (old data mistaken for current) and conflicting updates appear.
Persistent memory (memory that survives across sessions) lets an agent remember everything you have done in the past. Some systems use a memory graph that separates short-term memory from long-term storage. But cross-agent sharing needs boundaries — sometimes memory contains private context or role-specific assumptions, and not every agent should inherit it automatically.
Why does this matter for AI development? The AI coding race is shifting from who has the smartest model to who has the most reliable work system. Memory management directly affects reliability. Without it, production debugging becomes nearly impossible because you cannot trace why an agent made a decision. As agents handle longer tasks, organizing history, tool outputs, and goals becomes essential. Memory is the infrastructure that turns a good prompt answerer into a useful, learning system.
Sources
- 2026-06-30 — AI Shocks Again Google Post-AGI , New Claude, Microsoft 7 AI, 92 Human Robot, Fable 5 Backlash
- 2026-06-29 — Deterministic Infra for Non-Deterministic AI Agents - Nishant Gupta, Meta Superintelligence Labs
- 2026-04-08 — I Tested Claude's New Managed Agents... What You Need To Know
- 2026-05-28 — Context Graphs for Explainable, Decision-Aware AI Agents Andreas Kollegger & Zaid Zaim, Neo4j
- 2026-06-02 — How to Build an Agentic OS Your Whole Team Can Actually Use
- 2026-05-25 — Bounded Autonomy Between Free Will and Determinism Angus J. McLean, Oliver
- 2026-03-15 — Stop Learning New AI Tools
- 2026-05-19 — Hermes just got 10x better...
- 2026-05-29 — Claude's Dual Memory System Memory Files, Dreams & Conway
- 2026-05-31 — I am Switching to OpenHuman...
- 2026-05-06 — My AI Design Workflow That Doesn't Ship Slop
- 2026-05-29 — Claude 4.8 Is A Beast But Theres A Big Problem
- 2026-06-15 — Learn These 6 AI Skills Now (Before AI Replaces You)
- 2026-06-07 — Harness Engineering Is AIs New Gold Rush
- 2026-01-25 — Agentic Workflows Just Changed AI Automation Forever! (Claude Code)
Lesson 2: How to use Agentic Memory Management: step-by-step
To use agentic memory management, start with a memory file, usually a `memories.md`—a plain text markdown file (.md is just a text file format) that lives on your laptop. This file stores short-term and long-term information your agent needs. Short-term memory covers the current conversation or pipeline tasks. Long-term memory holds persistent project context, and you must organize it carefully because there’s so much.
First, create a `memories.md` file for your agent. When you run your agent, it will automatically write new memories there after each session. For example, a content-hunting agent creates its memory file after its first run. Next, in a "prepare" call (a step that runs once before every agent run), fetch that file and inject its text directly into the agent’s system prompt (the core instructions that guide the agent). This gives the agent context from previous work. Use the format `memories.md` to store what you want the agent to remember—you can tell your agent "remember this" and it writes the memory.
To manage memory, open and edit the file like any project artifact. The team can review, change, or delete entries. Tools like Google ADK (Google's Agent Development Kit) integrate with memory packages that handle this automatically. For example, the agent might store decision traces and past task details from Obsidian (a note-taking system) into its memory store. Always treat your markdown instruction files as tunable code—iterate on the memory content to improve agent behavior.
Sources
- 2026-05-29 — Why your agents need decision traces, not just documents Zach Blumenfeld, Neo4j
- 2026-05-16 — Master Claude Memory in 23 Minutes
- 2026-06-15 — How to Build 247 Claude Agents! EASILY!
- 2026-05-16 — Connecting the Dots with Context Graphs Stephen Chin, Neo4j
- 2026-05-12 — Give Your Agent a Computer Nico Albanese, Vercel
- 2026-05-06 — My AI Design Workflow That Doesn't Ship Slop
- 2026-03-12 — Build & Sell with Claude Code (10+ Hour Course)
- 2026-05-29 — Every Hermes Concept explained for Normal People
- 2026-05-29 — Claude's Dual Memory System Memory Files, Dreams & Conway
- 2026-05-05 — Hermes Agent might have just killed OpenClaw
- 2026-03-23 — Andrej Karpathy's AI Agent Blueprint! 10 Principles!
- 2026-05-11 — A Piece of Pi Embedding The OpenClaw Coding Agent In Your Product Matthias Luebken, Tavon
- 2026-05-29 — The Claude Update Everyone Missed (Dynamic Workflows)
- 2026-05-10 — Hermes Agent Zero to Personal AI Assistant (1 Hour Course)
Lesson 3: Best practices and pitfalls
Agentic memory management has distinct pitfalls and best practices. A core mistake is treating memory as fact rather than a hint. When memory rots (becomes stale or contradictory), agents can suffer from the "stale but confident" problem — applying outdated information as truth. Before any risky action, the agent must check the live environment and verify that the memory is still accurate.
Another major pitfall is "memory poisoning" — when an attacker or bad document corrupts stored information. Hidden memory is especially dangerous because a background worker with invisible assumptions can repeat errors at scale. The fix is transparent memory. Using a memory MD (a plain text markdown file on your laptop) makes memory an open artifact the team can read, change, and delete.
For Google ADK (Google's Agent Development Kit) or similar frameworks, integrate memory stores (API-native memory containers) so agents can read and update memory programmatically. Use three types of external memory: project rules for persistent instructions, specification files (written in markdown before starting), and progress journals so the next session picks up exactly where the last stopped.
Systematic cleanup is essential. "Dreaming" is a process where the agent reads memory plus up to 100 archive sessions, then proposes a cleaner memory artifact — removing duplicates, reconciling old advice against new evidence, and keeping macro patterns intact. Some systems clean memory in the background during idle time. The format (markdown) matters because it stays readable, editable, and structured. Following these best practices prevents wasted time, contradictions, and expensive repeated work in your agentic system.
Sources
- 2026-06-07 — Harness Engineering Is AIs New Gold Rush
- 2026-05-29 — Why your agents need decision traces, not just documents Zach Blumenfeld, Neo4j
- 2026-06-10 — I Built The Best Claude Memory System (Beats Hermes)
- 2026-05-29 — Claude's Dual Memory System Memory Files, Dreams & Conway
- 2026-06-29 — Deterministic Infra for Non-Deterministic AI Agents - Nishant Gupta, Meta Superintelligence Labs
- 2026-05-10 — How we solved Context Management in Agents Sally-Ann Delucia
- 2026-05-06 — My AI Design Workflow That Doesn't Ship Slop
- 2026-05-19 — Hermes just got 10x better...
- 2026-03-26 — zero memory
- 2026-05-31 — I am Switching to OpenHuman...
- 2026-05-29 — Every Hermes Concept explained for Normal People
- 2026-05-09 — Claude Dreaming, Outcomes, and Multi-Agent Orchestration How Anthropic's May 2026 Update Got Here
- 2026-04-08 — I Tested Claude's New Managed Agents... What You Need To Know