{
  "id": 9886481,
  "title": "Does a line in auto memory steer the next session like CLAUDE.md does? 3 of 4 runs vs 4 of 4, and 0 of 4 with neither",
  "url": "https://urgent.news/2026/09/26/does-a-line-in-auto-memory-steer-the-next-session-like-claude-md-does",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-26T02:17:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/rulestack/does-a-line-in-auto-memory-steer-the-next-session-like-claudemd-does-3-of-4-runs-vs-4-of-4-and-0-3673"
  },
  "original_language": "en",
  "account": "On a single line stored in Claude Code's auto memory, the model was successful in 3 out of 4 fresh sessions. In contrast, the same line in CLAUDE.md led to a first-attempt success in 4 out of 4 sessions. However, when neither memory system was utilized, none of the 4 sessions recovered the information. This experiment aimed to measure whether capturing a memory truly assisted later sessions, revealing a surprising result. Claude Code stores auto memory in a project-specific directory, ~/.claude/projects/project/memory/, derived from the project's git repository path. The first 200 lines of the MEMORY.md file, or the first 25KB, are loaded at the start of every conversation. Topic files, such as user_role.md or feedback_testing.md, are not loaded at startup but read on demand when needed. The experiment involved a project outside any git repository with a hidden environment variable check against a hash. A throwaway project was created, and a script was used to determine whether the PROJECT_TOKEN was valid, missing, or invalid. The measurement was based on the first line in the .attempts.log file, indicating whether the token was valid on the first attempt, after a failure, or never appearing. The results showed that a line in the project's CLAUDE.md or MEMORY.md index had different effects on Claude Code's performance, with the MEMORY.md line only being successful in the first attempt and not in subsequent sessions.",
  "summary": "A one-line fact stored in Claude Code's auto memory was applied on the first attempt in 3 of 4 fresh sessions (and after one failure in the 4th). The same line in CLAUDE.md was applied first-attempt in 4 of 4. With neither, 0 of 4 sessions recovered. Measured on Claude Code 2.1.278. A reader asked a fair question under an earlier post: \"How are you measuring whether a captured memory genuinely…",
  "key_points": [
    "Claude Code's auto memory in ~/.claude/projects/project/memory/ influences subsequent sessions",
    "Memory line in CLAUDE.md succeeded in all 4 initial attempts",
    "Without auto memory, none of the 4 sessions recovered information"
  ],
  "editors_take": "Storing a line in Claude Code's auto memory yields less consistent success across sessions compared to storing it in CLAUDE.md, indicating different utility for each in steering model behavior.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}