AI Agents & Orchestration

Memory Systems for Agents

Last updated 2026-09-22

What's new

2026-09-22
  • Codex (a tool by OpenAI that helps you do tasks with AI, like writing, designing, or coding) can be used to build skills, create branded deliverables, and even automate tasks, all without needing a technical background.
  • The Codex desktop app (a program you download to use Codex easily) is recommended for a consistent experience, and it uses the same subscription as ChatGPT (a popular AI chatbot), so you won't need a new account.
  • Codex is more powerful than Work (a tool for non-technical knowledge work) and can do everything Work can do, plus more, making it a better investment for learning and using in the long run.
  • The course will teach you how to use Codex effectively with natural language (regular English, not code) and explain core concepts simply, helping you become a pro AI builder.
2026-09-19
  • You can build automations (repetitive tasks done by software) using Codeex (an AI tool) but they use up your subscription limit, so it's better to use a separate service called trigger.dev (a tool that runs code on a schedule or when something happens).
  • Trigger.dev can run your automations using code (instructions for a computer) that Codeex creates, and you can store this code in GitHub (a website that stores code).
  • One type of automation is a scheduled one, which runs at a specific time, like a daily morning routine that checks your Google calendar (a tool for scheduling events) and sends a summary to ClickUp (a task management tool).
  • You can also set limits on how much research (gathering information) the automation can do, and where it can get information from, like public websites.
2026-09-16
  • Mike Chambers, a senior AI specialist at Amazon AWS, discusses two types of AI agents: those we use (like Claude Code, Cursor, and Kirao for productivity and coding) and those we build (custom agents for specific audiences).
  • A "harness" in AI is like a set of straps controlling an animal, but for AI models; it's the non-model parts of an agent, including memory, skills, and tools (like documentation servers).
  • AWS offers a free Agent Toolkit on GitHub to help deploy and manage AI agents, aiming to reduce "slop ops" (messy, inefficient operations) in cloud development.
2026-09-10
  • LinkedIn uses coding agents (AI tools that help write and debug code) like Cloud Code or GitHub Copilot (AI tools that assist with coding tasks) to quickly find and fix errors in their services, saving hours of manual work.
  • These agents use a system called contextual agent playbooks and tools to understand LinkedIn's internal systems and code, preventing them from making mistakes or "hallucinating" incorrect information.
  • LinkedIn built their own internal MCP (Machine Code Processor, a system that helps agents understand and use internal tools) and added tools like code search, docs, Jira (a project management tool), Slack (a communication tool), and more to help agents work better.
  • By connecting these tools, engineers can give the coding agent various context like product requirement documents, design docs, and Jira tasks to automate or assist with their coding.
2026-09-01
  • Grockbot (a single AI assistant) lets you create specialized bots, each with a unique job, like an animator or researcher, to handle specific tasks.
  • You can share and import other people's Grockbots (pre-made AI assistants) to expand your own collection, saving time and effort.
  • Grockbots have both global and individual memories, meaning they can share some information but also have unique knowledge from their specific tasks.
  • Context and memory in Grockbots help them understand and retain information, similar to how humans learn and remember, but it's important to manage this to avoid confusion.
2026-08-31
  • Grockbot is a new AI tool (artificial intelligence software) that lets you create AI teammates (virtual workers) to handle tasks, even while you're not working, and it's designed to be easy for anyone to use.
  • These AI teammates can work together, like a leadership team, to make decisions and help you plan, such as figuring out business strategies for the next quarter.
  • You can create many AI teammates, each with a specific job, and they can communicate and delegate tasks among themselves to avoid confusion and duplication.
  • Grockbot provides a simple interface (a chat-style workspace) to interact with and manage your AI teammates, making it user-friendly for beginners.
2026-08-28
  • WebMCP (a new tool from Google and Microsoft) lets websites communicate directly with AI agents (computer programs that can perform tasks), making it easier for them to browse, search, and buy.
  • Websites using WebMCP can offer specific actions (like search, book, or buy) to AI agents, making the process more efficient than the old way of scanning and clicking.
  • WebMCP could be a big opportunity for businesses, as it can help AI agents make purchases and could lead to billions of dollars changing hands.
  • One potential use for WebMCP is in online shops, where AI agents could help customers find products that fit their needs, like espresso machines with specific features.

Key points

What it is

  • Memory systems for AI agents (tools that act on your behalf) help them remember useful information across tasks, acting like the agent's brain.
  • They store important details, like emails or meeting notes, and don't need to be perfect—just remember key parts and keep full versions on your system.
  • There are two main types: short-term (current conversation) and long-term (persistent knowledge across sessions).
  • Memory enables self-improvement through a process called "dreaming," where agents extract new insights from stored memories.

How to use it

  • Start with a simple file-based memory system, like a `memories.md` file, to store facts about you and your preferences.
  • Separate short-term memory (current conversation) from long-term memory (persistent knowledge) and organize long-term memory like a knowledge graph (a structured map of connected facts).
  • Use a "lessons" file to record mistakes and fixes, and during dreaming, the agent extracts new insights to refine its knowledge.
  • Study memory packs (bundled objects and rules) to change agent behavior without rebuilding, and use a memory harness to test retrieval accuracy.

Watch out for

  • Memory systems fail when you must repeat yourself; the fix is to save successful approaches as reusable lessons.
  • Avoid storing entire files in memory; instead, remember only the important parts and keep the full version in your file system.
  • When multiple agents share state, expect stale reads (outdated information) and conflicting updates; layer safety and keep observability for debugging.
  • More autonomy requires more accountability; you must be able to inspect memory before the agent acts.

Lesson 1: What is Memory Systems for Agents and why it matters

Memory systems for agents are how AI remembers useful information across tasks. Without them, a model responds to each prompt in isolation, forcing you to re-explain everything every time. Memory is one of the four core parts of an AI agent, alongside its tools and reasoning engine. It can hold emails you sent last year, meeting notes, or expert knowledge—acting as the agent's brain.

A key insight is that memory doesn't need to be perfect. You don't need to store entire files; just remember the important parts and keep the full version on your file system. This "non-lossy" fallback saves space while keeping details accessible.

Memory comes in two main forms: short-term and long-term. Short-term captures what's happening right now, while long-term (persistent memory) survives across sessions. This is crucial for consistency. In creative projects, working memory retains world-building details so the agent stays consistent over a series, avoiding "drift" where things slowly change. For business agents, persistent memory means a competitor-intelligence agent remembers past research each time it runs.

Memory also enables self-improvement. Through a process called "dreaming," agents periodically process stored memories, extract new insights, and edit their own memory structures. This makes future sessions automatically smarter without retraining. For teams, shared memory needs careful design—teammates must share information without exposing everything to everyone.

When multiple agents share state, classic problems appear: stale reads or conflicting updates. Tracking memory lookups and state transitions becomes vital for debugging. Memory is one of the most underestimated challenges in building reliable agents that operate over long time horizons.

Sources

Lesson 2: How to use Memory Systems for Agents: step-by-step

How to Use Memory Systems for Agents

To help an agent remember you, start with a simple file-based memory system. Create a `memories.md` file that stores facts about you and your preferences. Before every agent run, a prepare call (a setup step that runs once) fetches that file and injects it into the system prompt (the instructions the agent follows). This way, the agent reads your saved memory each session, so you don't repeat yourself.

Separate short-term memory (current conversation state) from long-term memory (persistent knowledge). Short-term covers what's happening in the active pipeline; long-term needs organized storage like a knowledge graph (a structured map of connected facts). Don't store entire files—remember key parts and keep the full version on your system for fallback.

Use a "lessons" file to help the agent improve. After each task, record mistakes and fixes as memory entries. During a dreaming process (a periodic batch update), the agent extracts new insights from stored memories and edits them to refine its knowledge. This creates a self-improving loop.

Study memory packs—bundled objects and rules you can attach to an agent. Swap one pack for another to change behavior without rebuilding. A memory harness can also test retrieval: for each task, tell the agent the correct memory to recall so you can measure accuracy.

Finally, move heavy work out of one agent into another. If context gets cluttered, delegate subtasks to specialized agents and let a coordinator manage them. This keeps memory clean and focused.

Sources

Lesson 3: Best practices and pitfalls

Memory systems for agents (AI tools that act on your behalf) fail most often when you must repeat yourself. If you ask for something twice, the memory system failed. The fix is simple: when an agent finishes a task well, skillify it (save the successful approach as a reusable lesson). Organizations that capture what they learn get smarter daily; those that don't wake up with amnesia.

A common mistake is storing entire files in memory. Instead, remember only the important parts and keep the full version in your file system, which is non-lossy (doesn't lose detail). Good memory lets the agent recall a decision from six months ago, load the right context automatically, and tell you exactly where an answer came from—or admit it doesn't know rather than inventing things.

For continuous improvement, learn from mistakes so each one happens only once. Some systems use dreaming (a periodic batch process) to extract new insights and edit memory, making future sessions smarter automatically. But more autonomy requires more accountability: you must be able to inspect memory before the agent acts. Controllable memory beats invisible memory.

When multiple agents share state, expect stale reads (outdated information) and conflicting updates; many failures are consistency problems, not reasoning failures. So layer safety: prompt controls, tool permissions, and human approvals. Also keep observability (visibility into decisions) to debug why something happened, not just what happened. Without traces of planning and memory lookups, production debugging becomes nearly impossible.

Sources