Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 3 min read

What 623 measured memories say belongs in a CLAUDE.md

Most advice about CLAUDE.md is advice: keep it short, put the commands in, leave out what changes. I wanted to know what a record says instead, so I measured my own. The setup I build small apps alone, mostly

Most advice about CLAUDE.md is advice: keep it short, put the commands in,
leave out what changes. I wanted to know what a record says instead, so I
measured my own.

The setup

I build small apps alone, mostly with Claude Code. For months I kept a
CLAUDE.md by hand. Every line in it came from something that had already gone
wrong once, and the file was always a little behind me.

So I built a tool that reads what I had already written (Claude Code
sessions, commits, notes) and turns it into memories about how I work. Each
memory records the messages it grew from, and when new messages last
confirmed it. That second part is what makes the numbers below possible.

On 8 November 2026 I read my own database. The engine had turned 27,530
messages, commits and notes into memories. For the 623 memories that formed
before October, I counted how many were still being confirmed by new messages
30 days or more after they formed.

The numbers

Kind of memory Example Formed before October Still confirmed after 30+ days
Values "Finish the main task before polishing" 48 83%
Working patterns "Plan in a few lines before touching several files" 198 79%
Voice "Short answers, no closing sentence" 41 78%
Preferences "Ask before deleting files" 259 65%
Current state "Preparing the launch of project X" 77 18%

The examples are illustrative; the counts are not.

What it says about the file

Leave project status out. Statements about what is happening now stopped
being confirmed within weeks, as the projects moved on. Four out of five were
no longer confirmed after a month. That is the usual advice, but here it comes from a
record: a CLAUDE.md line like "we're migrating to X" is the line most likely
to be wrong by the time the model reads it.

Write how you work, not what you like. Values and working patterns held
for months. Preferences held less well (65%): they are more specific, so they
are more often overtaken by a newer, more specific one.

Start where the volume is. Among the 599 lasting memories, the most
common subjects were interface and UX (108), architecture (68), workflow (65),
testing (46) and problem solving (37). If you are writing a CLAUDE.md from
scratch, those are the sections that will keep paying off.

Why keeping it true is the hard part

The first version is easy: you write what is on your mind. The rules that
matter most are the ones that were not. You discover them when something goes
wrong, and at that moment you are fixing the problem, not editing a file.

Then it drifts. A preference from last spring keeps being obeyed after you
changed your mind. Two lines quietly contradict each other and the model
picks one. Claude Code's /doctor prompt-audit (v2.1.283 and later) now looks
for outdated and conflicting instructions, but it reads the file, not your
history, so it cannot tell which lines are still true of you.

A habit that works without any tool: when you correct Claude, ask whether the
correction is a rule. When you open the file, delete one line that no longer
applies.

The caveats

This is one person, working mostly in Turkish, measured by my own tool's
engine, and nobody outside has audited it. A memory also stops being
confirmed when the work that would confirm it stops, and the data cannot tell
that apart from a preference that changed. Treat the percentages as a shape,
not a law.

The tool is Coredence. It keeps the memory in one
SQLite file on your machine and serves it to Claude Code, Cursor and other
MCP clients read-only. The full guide this post comes from is
here.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.