filesnfolders.com Est. 2006 · Still just text
Claude Code memory

Should You Turn Off Claude Code Memory? (Here's What I Do Instead)

Should you turn off Claude Code memory? No, you don't have to. I leave mine on. But the notes are never the boss. My work lives in 1 folder, and I show that folder being built in the free 1 Folder AI OS training.

A member named Anthony asked me the best Claude Code question I've received all month.

He asked "Do you leave the project memory turned on in Claude Code or turn it off?"

Then he asked what happens if he starts using Codex next month. Does he lose what he built?

Short answer. No, you don't have to turn Claude Code memory off. And no, you don't lose what you built.

I'm a jarhead & a sales closer. I can't write a line of code. So I keep this simple.

13 minutes. The 5 places your Claude's memory can live, and the test I ran with Codex before I said the answer on camera.

Why does Claude Code forget you every new chat?

Your AI doesn't remember anything between chats. Your AI starts empty every time.

Think of every chat as a desk. Every message you send is 1 more paper on that desk. The desk does not get any bigger.

When the desk is full, papers start falling off the edge. The oldest stuff goes first.

A brand new chat is a desk that got wiped clean.

You may hear that desk called context. It means everything your AI can see right now. I wrote more about how big that desk is.

So the real question is what gets put on the desk when a new chat starts. There are 5 places to know about.

Place 1: the global CLAUDE.md

Claude Code reads a file named CLAUDE.md at the start of every session. CLAUDE.md is a plain text file of instructions. You're the 1 who writes that file.

You can keep 1 of those files in your user folder on your computer, outside of any project. You may hear that file called the global CLAUDE.md. It means Claude Code reads that 1 file in every folder you open.

Claude's own help page on memory says that file is for "Only you (all projects)".

I have a global file. Mine holds a handful of rules about me. Plain English. Numbered steps when I have to do something.

The rules about my business don't go there. The global file lives on 1 computer. A rule that lives only in the global file is a rule your 2nd computer has never heard of.

Place 2: the map at the top of your 1 folder

The rules about my business go in a 2nd CLAUDE.md. This 1 sits at the top of my 1 Folder AI OS.

I call that file the map. The map tells my Claude where everything lives & what my rules are. Here's what goes in a CLAUDE.md file.

Claude Code memory in 1 folder: the OathDriven folder tree with CLAUDE.md lit and tagged THE MAP, CONTEXT.md under it, then the filesnfolders and bmc folders each holding a CONTEXT.md

Think of the 1 Folder AI OS as a building. The map tells your Claude which room to walk to.

The map is inside the folder. So my rules go wherever the folder goes. My 2nd computer gets the same rules, because my 2nd computer gets the same folder.

Claude's help page says to "target under 200 lines per CLAUDE.md file". The reason it gives is "Longer files consume more context and reduce adherence".

That means a long map gets followed less. So my map points my Claude to the right room. The detail lives in a file inside that room.

I built mine on camera. Here's how I built a Claude Code AI operating system in 1 folder.

Place 3: CONTEXT.md, the notebook

Every business in my 1 folder has a file called CONTEXT.md.

CONTEXT.md holds where things stand, what's next & a log of what got done. Think of CONTEXT.md as a notebook for that project.

The same folder tree with the CONTEXT.md inside filesnfolders and the CONTEXT.md inside bmc lit, under the line Every business in my 1 folder has a file called CONTEXT.md

Nothing fires by magic. My Claude doesn't know my day is over until I say so.

So at the end of the day I tell my Claude that I'm done for the day. Then my Claude writes 3 things in the notebook. What got done. What I decided. What's next.

The next morning I open a brand new chat. I ask "where were we?"

In the video I close the program I run Claude Code in. I open the program again. I ask Fred what we're doing right now. Fred is what I named my Claude.

Fred answered from my files, not from a memory. Fred named every file he read. That's the fix when Claude forgot what you were doing.

Place 4: auto memory. On or off?

Claude Code also keeps its own notes on you. You may hear those notes called auto memory.

Claude's help page calls auto memory "notes Claude writes itself based on your corrections and preferences". The same page says "Auto memory is on by default in local sessions".

So should you turn Claude Code memory off?

I leave mine on. But the notes are never the boss.

"When a note and a file disagree, the file wins."

Here's why, straight off Claude's own help page.

The page says "Auto memory is machine-local". It says "Files are not shared across machines or cloud environments". So the notes stay on 1 computer. My 1 folder goes to both of my computers.

The page says only "the first 200 lines or 25KB" of the notes list load when a session starts. So the notes are a short list. My business isn't a short list. My business is files.

The page says Claude treats CLAUDE.md files & auto memory "as context". It says "They aren't enforced configuration". That means a note is a request. Your Claude tries to follow a request.

Instructions are a request. A hook is a rule. A hook is a check that runs by itself every time. That same help page says to use a hook when a rule has to hold no matter what.

If you still want the notes off, type /memory inside Claude Code. Then flip the auto memory switch.

The people saying turn the memory notes off aren't wrong either. If you want 1 source, your files are that 1 source. I go deeper on the notes in my post on Claude Code memory.

Place 5: what happens when you add Codex?

Codex is OpenAI's AI that works inside a folder, the same way Claude Code does.

Codex doesn't look for a file named CLAUDE.md. Codex looks for a file named AGENTS.md. Same job, different name.

I didn't want to guess on camera. So Fred & I ran a test that same day.

We made practice folders for a made up owner named Dale. The map in each folder held 1 line nobody could guess. A code word.

Then we asked Claude Code & Codex for the code word, without letting either 1 open a file. A right answer proves the AI was handed the map the second the chat started.

CLAUDE.md vs AGENTS.md test table for Claude Code and Codex: only a CLAUDE.md, Claude knew and Codex did not. Only an AGENTS.md, Codex knew. The map in AGENTS.md plus 1 line in CLAUDE.md, both knew

With only a CLAUDE.md in the folder, my Claude knew the code word. Codex didn't.

With only an AGENTS.md in the folder, Codex knew the code word.

With the map inside AGENTS.md & 1 line in CLAUDE.md that says @AGENTS.md, both of them knew the code word.

You may hear that 1 line called an import. It means "read that other file as if the words were written here". Claude's own help page shows that same fix.

That was 1 Windows laptop on 1 morning. Run the same test on your own computer before you trust my answer.

How I use another AI in my own business

Claude is my 1 agent. Codex is a tool that my Claude picks up for certain jobs.

That's 1 agent, 1 desk & 1 map. It's well-structured files n' folders.

So my map keeps the name CLAUDE.md. I don't have to change a thing.

You may hear this way of working called Interpretable Context Methodology, or ICM. Jake Van Clief & David McDermott wrote the ICM paper.

So should you turn off Claude Code memory?

Leave the notes on or turn the notes off. Either way, don't make the notes the place your business lives.

The real memory is the folder.

Whatever is written in your files today is what your Claude knows tomorrow.

Questions about Claude Code memory

Should you turn off Claude Code memory?

You don't have to. I leave auto memory on. When a note and a file disagree, the file wins.

How do you turn off Claude Code auto memory?

Type /memory inside Claude Code. Then flip the auto memory switch.

Does Claude Code memory move to a 2nd computer?

The auto memory notes don't. Claude's help page says "Auto memory is machine-local". A CLAUDE.md inside your folder goes wherever the folder goes.

Does Codex read CLAUDE.md?

On my test it didn't. Codex looks for a file named AGENTS.md. With the map in AGENTS.md & 1 line in CLAUDE.md that says @AGENTS.md, both Claude Code & Codex knew the code word.

Where should your rules live?

Rules about you go in the global CLAUDE.md. Rules about your business go in the CLAUDE.md at the top of your 1 folder, so the rules go wherever the folder goes.

Watch the 1 Folder AI OS being built

I have a 49 minute free training. It shows how I built my AI operating system in 1 folder.

Every ICM Folder System I have built, the free ones and the ones people paid for, is on 1 page.

The 1 Folder AI Operating System, free

Watch me build an AI operating system in 1 folder that remembers everything. The 49 minute training, the 32 lesson free course & the playbook are free.

Watch the free training

Semper Fi,

RyMac

Ryan “RyMac” McKinney · USMC Veteran · more about me