> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# 12 tips from Anthropic to give your AI agents a memory that keeps getting better
- URL: https://globalfeed.ai/en/12-tips-from-anthropic-to-give-your-ai-agents-a-memory-that-keeps-getting-better/
- Published: 2026-11-02T19:00:57.000Z
- Updated: 2026-11-02T19:00:57.000Z
- Description: We read Anthropic engineer Lamis Mukta's full talk and checked it against the docs: a practical guide from notes files and skills to versioning and dreaming.
- Author: GlobalFeed Editor
- Tags: Anthropic, Claude Code, AI Agents, memory, guide, x-anthropicai, dil-en, elle

If you work with Claude Code, Codex or an agent of your own, an agent that starts from zero every morning is the most familiar frustration there is. In a 32-minute [talk](https://www.youtube.com/watch?v=tTcxVv8HHNw&ref=globalfeed.ai) at AI Native DevCon in London, Lamis Mukta of Anthropic’s applied AI team walks through what actually works in the field to fix it. We read the full transcript, checked it against Anthropic’s docs and turned it into twelve tips you can apply tomorrow morning. All of them start small and scale up to large teams.

![Five steps from memory to dreaming](https://globalfeed.ai/content/images/2026/11/dreaming-sema-en.png)

A summary of the steps in the talk. Image: globalfeed.ai

## The basics first

**1\. Start with the simplest thing that works.** Mukta states Anthropic’s principle in the first minutes: “do the simple thing that works.” Models get smarter every month, but they don’t know your codebase, your team’s preferences or your company’s rules on their own. That context is independent of model intelligence and has to come from you. Good context multiplies its effect as models improve.

**2\. Open a single notes file.** Step one is a plain Markdown file like CLAUDE.md, read into every session. Mukta calls it “kind of unreasonably effective”. Put in notes on finding your way around the codebase, your team’s style and your preferences. Both you and the agent should be able to write to it; a simple file humans can read is the secret.

**3\. Split into skills when the file grows.** As the notes file grows, every session carries more noise. The fix is skills: separate files for processes that need to run end to end in a set order. The agent reads only a few lines of front matter and loads the body when it really needs it, so the body can hold as much detail as you like. Mukta’s image: you don’t pull the French dictionary off the shelf until someone speaks French to you.

**4\. Hand memory to the agent.** Give the agent memory tools and let it decide, mid-task, when to read and write. Autonomy works well here, she says. When the agent learns from a mistake, it should be able to write that down itself.

**5\. Treat memory as a file system.** Current best practice is to think of memory as an ordinary folder rather than a special tool. Agents search very well with tools they already know, like bash and grep. The rule: keep memories in Markdown, let them grow, index them for fast search, and give agents freedom when writing. Set this up, she says, and you will see the agent do a task better the second time.

## When the team grows

**6\. Version every change.** If an update turns out badly, you need to roll back. Also record which session and which transcript led to the change, and who made it, agent or human. In Anthropic’s [memory docs](https://platform.claude.com/docs/en/managed-agents/memory?ref=globalfeed.ai), every change creates an immutable version.

**7\. Lock concurrent writes with a fingerprint.** When thousands of agents write to the same memory, collisions are inevitable. Her solution is simple: the agent takes a hash of the file, drafts its change and checks the hash again right before writing. If they don’t match, someone changed the file in between; the agent re-reads, re-drafts and retries. In Anthropic’s docs this is the content\_sha256 precondition.

**8\. Grant permissions in layers.** Top-level knowledge, such as company goals and carefully curated codebase principles, should be read-only. You don’t want one agent rewriting the context every other agent reads; one wrong note spreads everywhere. Each agent’s own scratchpad, on the other hand, should be writable. Per the docs, up to 8 memory stores can attach to a session as read-only or read-write.

**9\. Keep memory portable.** Curating this knowledge takes effort, so make it reachable from different products and systems. Mukta recommends a portable design behind a clean API.

![Lamis Mukta at AI Native DevCon](https://globalfeed.ai/content/images/2026/11/dreaming-f1.jpg)

Lamis Mukta, AI Native DevCon London 2026\. Image: AI Native Dev, YouTube

## Closing the loop

**10\. Clean out stale knowledge regularly.** What was true yesterday may be wrong today, a note may have been written incorrectly, or someone may have used prompt injection to plant something bad. Mukta proposes a separate process called “dreaming”: agents’ transcripts and the current memory are reviewed in batch, recurring failures are found, outdated knowledge is pruned and missing knowledge is added. Every proposed change comes with example transcripts and stats on how common the issue is, and a human makes the final call. According to Anthropic’s [dreams docs](https://platform.claude.com/docs/en/managed-agents/dreams?ref=globalfeed.ai), the process can be steered with an instruction like “Focus on coding-style preferences; ignore one-off debugging notes.”

**11\. Read tool calls, not just conversations.** One of her examples is instructive: if every student answers a maths exam in radians instead of degrees, the problem is the calculator setting, not the students. For agents, that means a misconfigured tool. So look at tool calls and metadata too. Organisation-wide style problems surface the same way; in her example, “everybody is using too many dashes.”

**12\. Bake proven rules into code.** Asked “are we reinventing databases?”, Mukta gave a memorable answer: at first agents were allowed to write whatever they wanted into Markdown files; as it became clear which rules work, those get built permanently into the harness the agent runs in. Things that must be exact, like versioning and hashing, should be done in code, not left to the agent.

## Beyond coding

Mukta stresses none of this is specific to coding: she uses memory when making her own presentations, and how she likes to write and how her slides should look builds up over time. The same path works for a sales team’s proposals, an accounting office’s client notes or a support team’s common issues: a single notes file first, then skills, then regular clean-up.

The full talk is [on YouTube](https://www.youtube.com/watch?v=tTcxVv8HHNw&ref=globalfeed.ai) and an edited transcript is [on GitHub](https://github.com/AINativeDev/aidevcon-2026-ldn/tree/main/talk-lamis-context-engineering-dreaming?ref=globalfeed.ai). Her closing line sums up this article: keep thinking, keep learning and keep dreaming.

Sources: [Talk recording (YouTube)](https://www.youtube.com/watch?v=tTcxVv8HHNw&ref=globalfeed.ai), [Talk transcript](https://github.com/AINativeDev/aidevcon-2026-ldn/tree/main/talk-lamis-context-engineering-dreaming?ref=globalfeed.ai), [Memory docs](https://platform.claude.com/docs/en/managed-agents/memory?ref=globalfeed.ai), [Dreams docs](https://platform.claude.com/docs/en/managed-agents/dreams?ref=globalfeed.ai)