# Memory I own

Source: https://clementrog.com/memory-i-own
TL;DR: My agents are only as good as what they know about my work. So I keep everything I've said to them in one place I own, that every agent can search. Why, and what I learned building it.
Tags: memory, context, claude-code, codex
Published: 2026-11-20

This morning I asked an agent how many people subscribe to my newsletter. The code wasn't on my branch, so it searched my past sessions and found the one from 31 October when we built it: it runs on Resend, the list is called "Notes", and we deleted the test contacts. I explained nothing, and Claude found it in 420 ms :)

My agents search my memory about 180 times on a working day. It's the most useful thing I've built for working with AI, and I want it to be mine.

## Why memory matters

Everyone gets the same model. What makes it good at your work is what it knows about your work: what you decided, what you tried and dropped, the rules you gave, what matters to you, who inspires you, and where you want to be in a few years.

> Figure
>
> The model alone gives a generic answer. The model with memory gives a tailored answer.

With memory, my agents:

- Give me the same quality of work in every tool, even with very little context
- Stop asking me a fact I gave another session 2 weeks ago, so I can leave them working alone, as I explain in [how I work with Claude and Codex](/how-i-dev)
- Don't suggest again the idea I dropped last month
- Read a pack of about 3 KB instead of opening 15 files. Over the 4,400 searches of the last 30 days, that's about 3 million tokens instead of 44 million
- Understand "we wrote a post last week, I can't find it", without 5 questions back

## Why I want to own it

### Codex should know what I told Claude

I decide something with Claude on Monday, and on Wednesday Codex reviews the code. What Claude remembers stays in Claude, so Codex never hears about it.

> Figure
>
> One memory on top feeds every agent below it: Claude, ChatGPT, Codex, Gemini and Grok, which I use, and Mistral, Perplexity and DeepSeek, which I don't use yet.

A summary isn't enough. The agent needs what I tried first, why the other option lost, and when I said it: a choice I made for one task 3 months ago isn't a rule for today, and only the dated conversation shows the difference. And I want to use whatever model is best this month, so my memory has to sit outside all of them.

### The ideas I never finished get lost

I compare 2 ways to price something, and leave it there. 6 weeks later the question comes back. An agent looks at the files and at git, and an idea we only talked about isn't there.

> Figure
>
> The agent reads the repo, with its files and git history. It never looks at the sessions, with the ideas and drafts.

The sessions don't last either: Claude Code deletes each one after 30 days without telling you, and Codex keeps its own, in its own folder and format.

### It has to go everywhere I go, and fast

I work on 2 Macs and reach both from my phone, so the memory has to be plain files I can copy, with a search that runs on my computer. [Turn](/studio/turn), my copilot for client calls, asks it during the call, and there an answer that takes 10 seconds is useless.

> Figure: Average answer time over the last 30 days: Turn 440 ms, coding agents 820 ms
>
> My memory, on my Mac, answers Turn during a call, Guichet for Slack and Notion requests, and the coding agents, whatever the model.

### I might want it for something bigger one day

My sessions are the best record of how I work: what I accept, what I send back, what I left undecided. That's what I'd need to teach a model to think like me, which I'm trying with [fine-tuning](/fine-tuning). Some of those sessions, with my client files, are already where I found the decisions behind the principles of [an agent I'm testing in shadow on a client's work requests](/fine-tuning#since-november-an-agent-in-a-clients-slack-or-notion), the ones that come in Slack or Notion when someone tags me or explicitly asks me to do or check something. And with open models like Mistral's [Large 4](https://mistral.ai/news/mistral-large-4-oss/) getting close to the best at coding, one day I might want it all private, on a model running on my own computer.

This isn't about hiding my work from OpenAI or Anthropic, since they see what I send them anyway. It's about who keeps the memory, for how long, and which agents can read it.

## What I learned keeping the conversations

The memory in ChatGPT, Claude and Claude Code stays in their app. Tools like Mem0, Letta or Zep keep facts like "the user prefers X", and every time you sum something up, you lose something. I want the exact sentence I typed.

So I save every Claude Code and Codex session on my computer, with the exports of my chat apps, and any agent can search them. It took months. 3 things made the difference.

**Send back a pack, not a list.** At first a search gave the agent a long list of old messages, and the agent ignored it. Now it gets a short pack of about 3 KB: past decisions, my rules and past sessions, each with where it came from. The real one for my newsletter question:

> Figure
>
> I ask how many people get my newsletter. The agent searches the words many people subscribe newsletter live. The context pack has no decision or rule on it, and one past session from 31 October that built the newsletter on Resend, with a list called Notes and double opt-in. The agent answers that it's on Resend, in the Notes list, and counts it there.

**Know who said it.** Most of the words in a session are the agent's, so the memory could come back with "you decided X" when X was only the agent's idea. Now a result says "You said" only if my exact sentence is in a message I typed.

**Search again for each task.** Agents used to search once, at the start. Now they search again when what they have doesn't answer the question, which is what lets a session run for hours on its own.

Today the archive has 11,146 sessions, going back to January 2023, in under 600 MB, with a search index of about 3 GB.

## What I don't know

- If OpenAI and Anthropic will one day let their memory move between tools. Even then, new labs keep showing up, so I'd rather own mine
- How big the archive can get. Answers went from under a second to just over one this month, and it's still fine for now
- If it will break at some point. It might

You can build your own with everything above. Or use [the one I built](https://onadit.com) and improve every day :)
