<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniela Salgado Vizcaino</title>
    <description>The latest articles on DEV Community by Daniela Salgado Vizcaino (@danielasalgadov).</description>
    <link>https://dev.to/danielasalgadov</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4284999%2Fa3c88b28-f13a-43a4-a377-81ef88c806dd.jpg</url>
      <title>DEV Community: Daniela Salgado Vizcaino</title>
      <link>https://dev.to/danielasalgadov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danielasalgadov"/>
    <language>en</language>
    <item>
      <title>Claude Code doesn't forget. It just never wrote anything down.</title>
      <dc:creator>Daniela Salgado Vizcaino</dc:creator>
      <pubDate>Sat, 05 Dec 2026 15:22:52 +0000</pubDate>
      <link>https://dev.to/danielasalgadov/claude-code-doesnt-forget-it-just-never-wrote-anything-down-2bl0</link>
      <guid>https://dev.to/danielasalgadov/claude-code-doesnt-forget-it-just-never-wrote-anything-down-2bl0</guid>
      <description>&lt;p&gt;Every Claude Code session starts empty. Anthropic's documentation says it plainly: "each Claude Code session begins with a fresh context window."&lt;/p&gt;

&lt;p&gt;So when people tell me "Claude forgot what we agreed yesterday," the honest answer is: it never knew. Nothing was written down. Claude's memory isn't a faculty, it's a file.&lt;/p&gt;

&lt;p&gt;I run a small AI studio in Mérida, Mexico, and I work in Claude Code every day. This is how memory actually works, and how I keep mine from rotting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two files, two authors
&lt;/h2&gt;

&lt;p&gt;Claude Code has two memory systems, and both load at the start of every session:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;CLAUDE.md&lt;/th&gt;
&lt;th&gt;Auto memory&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who writes it&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What goes in&lt;/td&gt;
&lt;td&gt;Instructions and rules&lt;/td&gt;
&lt;td&gt;What Claude learned: your role, your corrections, ongoing work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it lives&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;, &lt;code&gt;./CLAUDE.md&lt;/code&gt;, &lt;code&gt;./CLAUDE.local.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/projects/&amp;lt;project&amp;gt;/memory/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How much loads&lt;/td&gt;
&lt;td&gt;The whole file&lt;/td&gt;
&lt;td&gt;The first 200 lines or 25KB of the index&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One nuance worth knowing: Claude treats both "as context, not enforced configuration." If something must &lt;em&gt;always&lt;/em&gt; happen, that's a hook, not a line in CLAUDE.md.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where CLAUDE.md goes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;: your preferences, across every project.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;./CLAUDE.md&lt;/code&gt;: the project's rules, committed and shared with the team.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;./CLAUDE.local.md&lt;/code&gt;: your personal notes for one project. Add it to &lt;code&gt;.gitignore&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude reads every CLAUDE.md from the folder you start in up to the root, and concatenates them. Nothing overrides; the closest file is read last.&lt;/p&gt;

&lt;p&gt;Don't know where to start? Run &lt;code&gt;/init&lt;/code&gt;. It drafts a CLAUDE.md from your project, and if one exists it suggests changes instead of overwriting it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule that matters most: under 200 lines
&lt;/h2&gt;

&lt;p&gt;Anthropic's guidance is under 200 lines per file, because "longer files consume more context and reduce adherence."&lt;/p&gt;

&lt;p&gt;That second half is the one people miss. A long CLAUDE.md isn't just expensive, it's &lt;em&gt;less obeyed&lt;/em&gt;. Every rule you add dilutes the others.&lt;/p&gt;

&lt;p&gt;What I do when a file grows:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Write only what Claude can't guess.&lt;/strong&gt; How we name things, decisions already made, what must not be touched. Not "write clean code."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Move specifics out.&lt;/strong&gt; Rules that apply to one kind of task go into a skill that loads only for that task.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Imports organize, they don't save.&lt;/strong&gt; &lt;code&gt;@path/to/file&lt;/code&gt; pulls another file in, but it still loads every session.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Auto memory: let Claude take notes
&lt;/h2&gt;

&lt;p&gt;As you work, Claude saves four kinds of notes: &lt;strong&gt;user&lt;/strong&gt; (your role), &lt;strong&gt;feedback&lt;/strong&gt; (corrections you gave), &lt;strong&gt;project&lt;/strong&gt; (ongoing work and decisions) and &lt;strong&gt;reference&lt;/strong&gt; (where things live). Each note is a file, with a &lt;code&gt;MEMORY.md&lt;/code&gt; index that loads every session. You can toggle it from &lt;code&gt;/memory&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;My setup on top of that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One fact per file.&lt;/strong&gt; A note that mixes three topics is impossible to update cleanly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The index is an index.&lt;/strong&gt; I cap mine at 120 lines, one line per memory. When something new comes in, the oldest resolved entry goes to an archive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every correction gets a "why."&lt;/strong&gt; "Don't do X" gets ignored at the edges. "Don't do X, because last time it broke Y" generalizes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Memory rots. Maintain it.
&lt;/h2&gt;

&lt;p&gt;Anthropic's data team measured what happens to documentation nobody updates: their analytics accuracy drifted from about 95% to about 65% in a month. That was their data, not personal memory, but the mechanism is the same: a stale rule still loads in every session, and Claude still follows it.&lt;/p&gt;

&lt;p&gt;Three habits that keep mine honest:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read the index once a week&lt;/strong&gt; and delete what's resolved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Correct in the file, not only in the chat.&lt;/strong&gt; A correction in the chat dies with the session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One rule, one place.&lt;/strong&gt; Two copies of the same instruction will eventually contradict each other.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;That's the whole system: files you write, files Claude writes, and the discipline to keep both short and current.&lt;/p&gt;

&lt;p&gt;I'm Daniela Salgado, founder of Menteorama® (with an "e", from the Spanish &lt;em&gt;mente&lt;/em&gt;, mind). We build Brain Kit®, which sets this kind of memory, skills and rules up for Claude Code, Codex and Antigravity. The full answer with sources is on &lt;a href="https://studio.menteorama.co/en/journal/how-to-give-claude-memory" rel="noopener noreferrer"&gt;our journal&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Anthropic, "How Claude remembers your project," Claude Code docs. &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/memory&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic, "Effective context engineering for AI agents," Sept 29, 2025. &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic, "How Anthropic enables self-service data analytics with Claude," June 3, 2026. &lt;a href="https://claude.com/blog/how-anthropic-enables-self-service-data-analytics-with-claude" rel="noopener noreferrer"&gt;https://claude.com/blog/how-anthropic-enables-self-service-data-analytics-with-claude&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
