Why You Should Build Your Own Memory

Day 2 of writing content while on vacation. Today I want to talk about why, if you are using Claude Code, you should build your own memory system.
If you use Claude Code, I assume you are either a developer, or at least a tech-savvy user who is comfortable in a terminal. Either way, you are close to engineering. And what we do as engineers is build efficient systems. So this one is for you.
Why your memory should not live inside the tool
The built-in memory systems of Claude, ChatGPT, and Gemini all work fine. But they are meant for users who only use the chat. They are also meant to create stickiness. Imagine you talked to ChatGPT for a while and it has a lot of context about you — your role, your projects, how you like things explained. That context is now a switching cost. If you want to try Claude or Gemini, you basically have to re-explain all of that. You might miss things, you might phrase them differently, and then you cannot expect the same answers. Of course, they made these memory features as sticky as possible.
The thing is, whoever has the best model keeps changing. I started with ChatGPT, like probably most of you. Then Gemini, then Anthropic, now Claude Code for work. The landscape keeps shifting. Being able to point the latest new tool at your own memory is a real advantage — it also gives you an efficient way of testing new models on your actual workflows. What I do, for example, is run the same prompt in Claude Code and in Codex (OpenAI's CLI, running GPT-5), and see which answer I am happier with. That comparison only works if both tools look at the same context.


Simplicity is the feature
When I started exploring this, the key point for me as an engineer was efficiency. We do not want to use the tool just to improve the tooling. I do not want to use Claude Code to build a full-stack memory orchestration system, because that takes a lot of time to build and even more time to maintain. Edge cases you did not consider, stuff you left out, abstractions that looked clean on day one and feel heavy on day 30. As an engineer, you learn that for most things, simplicity is the thing.
That is what I feel is missing in a lot of the memory systems other people have built. A lot of moving parts, a lot of configuration, a lot of "you need this database and this server and this MCP". That is the opposite of what I wanted.
What I liked (and didn't) about Andrej Karpathy's Obsidian idea
I actually liked Andrej Karpathy's idea of using Obsidian for memory. I understand why he picked it, and I understand why that went viral — it is visually pleasing. The graph view is nice to look at, and the way it shows references between notes is satisfying in the "human" sense.
But it is not necessarily the best version for AI. So I did what any engineer would do: I had a deep conversation with Claude Code about it. Some small benchmarks, some trade-offs. The criteria came out like this:
- Fast retrieval. You do not want to wait 30 turns before you get an answer.
- Token efficient. You do not want the agent to read through 200 files just to produce a 2-line answer.
- Simple setup. It should work on a fresh machine in minutes, not days.
Obsidian markdown fits the simplicity part. I liked the graph view too. But at some point I had to admit that this memory system is not meant for me to read or to look at — it is meant to be maximum efficient for agents and for whatever tool comes next. Once I framed it that way, the graph view stopped being a feature.
Plain markdown + frontmatter summaries
So I ended up with plain markdown files and standard relative paths for linking between them. No wiki links, no resolver, no special tooling. [like this](path/to/file.md) works everywhere — in Claude Code, in ChatGPT, in Cursor, in a text editor on a fresh laptop.
If you want to make it even more token efficient, you can push a bit further: keep a short summary in the frontmatter of every file. That way the agent does not have to read the full file to decide whether it is relevant. It reads the frontmatter of 10 files, picks the two that look useful, and only then opens the full content.
---
name: overnight-agents-setup
description: Mac Mini + tmux + git worktrees setup for running 3-5 agents in parallel. Includes the `mini` shell function.
type: reference
---
(full content below)
It is basically what you do in a library. You want to read something about giraffes. You go to the biology section. You find the animal shelves. You look around the G. You pick a book, open the first page, skim the summary. If it looks right, you read it. You do not start by reading 20 books and then saying "ah, okay, one of them was about giraffes".
What this gives you
The point of all of this is that when you start a new session — in any tool — your memory is already there. Last week's decisions, yesterday's half-finished thread, the project you have been working on for three months. The next session starts warm.
And when a new model drops next quarter, you don't migrate anything. You point it at the same folder and see how it does.
That's it.