Back to Blog

How I Upgraded My AI Memory System (And What the Claude Code Creators Taught Me)

How I added a diary layer to my AI knowledge base after learning from Claude Code creators. Memory systems need to separate capture from commitment.

Anna Evans
Anna EvansMarketing Director, 15+ years B2B
How I Upgraded My AI Memory System (And What the Claude Code Creators Taught Me)
TL;DR

Memory systems need an intermediate layer between capture and commitment. Add a diary layer that holds session insights temporarily, then only promote patterns that prove themselves over time. Solve the "make button pink" problem.

You know that moment when you realize someone else has already solved the problem you've been working on? I was listening to a podcast with the creators of Claude Code (Boris and Cat from Anthropic) and they casually mentioned how their power users build memory systems. And I thought: wait, that's exactly what I've been trying to figure out.

I'd built a knowledge base for my AI workflows. It was working, sort of. I'd already built a feedback loop for capturing friction and turning it into fixes. But something felt off. Every time I ran my /learn command to capture a pattern from a session, I had this nagging question: Is this actually worth saving forever, or is it just relevant today?


The Context Gap

Here's what I realized: my memory system had no filter. Every insight went straight to permanent storage. That sounds efficient until you think about what it means.

If I told Claude "make the button pink" during one session, and then ran /learn, that instruction could become a permanent pattern. But I didn't want all buttons to be pink forever. I wanted that button pink for that project.

The Claude Code creators call this the "make button pink" problem. And their solution revealed something I'd been missing in my own context architecture.

The insight: Memory systems need an intermediate layer. Capture everything, but only promote patterns that prove themselves over time.


What I Built

The fix was surprisingly simple once I saw it: add a diary layer between session capture and permanent storage.

Instead of this:

Session → /learn → permanent knowledge base

I built this:

Session → /learn → diary entry → accumulates
                                      ↓
Weekly: /synthesize → patterns (3+ times) → promoted to knowledge base

The diary entries capture everything: what I did, what I tried, what worked, what didn't. But they don't become permanent patterns until they appear at least three times across different sessions.

What's in my context layer now:

  • Session diaries folder: intermediate storage with structured format (What I Did / What I Tried / What Worked / Potential Pattern)
  • Updated /learn command: now writes diary entries first, not directly to KB
  • New /synthesize command: weekly review that promotes recurring patterns and archives old diaries
  • Frequency threshold: patterns need 3+ appearances before promotion

The whole system took about 45 minutes to build. Most of that was extracting other insights from the same podcast episode.


How It Actually Works

Last week I noticed myself doing something three sessions in a row: building a quick prototype without a plan just to discover what I actually wanted, then throwing it away and writing a proper spec.

In the old system, I might have captured that pattern on day one — or never, because it felt too obvious to document.

With the diary system, each session got its own entry. By the third session, /synthesize flagged it: "This pattern has appeared 3 times. Ready for promotion?"

Now it's a permanent entry called "Throwaway Prototyping for Requirements Clarity." And I trust it because it proved itself across different contexts before I committed to remembering it.

The unexpected benefit: the diary entries themselves are valuable. When I'm stuck, I can scan recent diaries for approaches I've tried. The "What I Tried (that didn't work)" section is often more useful than the success patterns.


The Context Layer Lesson

This wasn't just about memory architecture. It revealed a broader principle about how context systems should work.

Separate capture from commitment. Writing something down doesn't mean you believe it forever. Your context layer should have zones: things you're exploring, things you've tested, things you've proven. Moving between zones should require evidence.

Frequency filters signal from noise. In a world where AI makes it easy to generate insights, the scarce resource is knowing which insights actually matter. Time and repetition are natural filters. If a pattern keeps showing up across different projects and different weeks, it's probably real.

The journey is context too. My diary entries capture what didn't work, not just what did. Future me — and future AI sessions — benefit from knowing which paths were dead ends. That's context that a pure "lessons learned" document would lose.


Try This Yourself

You don't need to build the exact system I built. But you can apply the principle immediately.

Next time you learn something working with AI, don't add it straight to your permanent instructions. Instead, write it in a scratch file. Date it. At the end of the week, look at what you wrote down. If the same insight appears multiple times in different contexts, that's your signal to promote it.

The power users the Claude Code creators talked about? They're doing exactly this. Daily diary entries. Weekly synthesis. Patterns emerge from the noise.

Start here: Create a file called session-diary.md. After your next significant AI session, write three things: What you did, what you tried that didn't work, and one pattern you might want to remember. Do this for a week. See what repeats.


Questions You Might Have

Isn't this just more work? I thought AI was supposed to save time.

It's about five minutes at the end of a session, and maybe fifteen minutes weekly for synthesis. The payoff is a context layer that actually improves over time instead of accumulating noise. Think of it as compound interest: small deposits, big returns later.

What if I capture something important but it only happens once?

You still have the diary entry. It's not deleted, just not promoted to permanent status. If it turns out to be important, you can always promote it manually. The threshold is a default, not a prison.

Does this work for teams, or just individuals?

Teams can share the synthesis step. Imagine multiple people writing session diaries, then a weekly review where you look for patterns across everyone's entries. The patterns that appear across different people and different projects are probably your most robust learnings. (I wrote about sharing AI context with teams. It requires thinking about architecture, not just files.)

How is this different from just keeping notes?

Structure. The diary format forces you to capture the journey (what didn't work) alongside the outcome (what did). And the synthesis step forces a review. Most note-taking systems are write-only. They get added to but never read. This system has reading built in.

How does this connect to the broader context layer approach?

This is context architecture in action. You're not just saving information. You're designing how information flows through your system, what gets elevated, and what stays provisional. The architecture matters more than any individual piece of content you save.


Building context that compounds.

Written by
Anna Evans
Anna Evans

Marketing leader building AI systems that actually remember.

Marketing Director, 15+ years B2BAI Workflow Architect