Urgent.News

What's breaking now, across thousands of outlets.

AI

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

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…

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.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Anthropic’s Claude Text Watermark: What It Means for SEO and Content Workflows

Anthropic has rolled out an invisible watermark for Claude-generated text , positioning the feature as part of its AI transparency and EU AI Act compliance work.

  • Claude AI model introduces hidden watermark for text generation.
  • Watermark supports transparency, EU AI Act compliance, not SEO ranking.
  • Watermark uses SynthID-Text technique, invisible to readers, no performance impact.

AI Agents: A Beginner’s Guide with Practical Examples

لم يعد الذكاء الاصطناعي مجرد نافذة محادثة نكتب فيها سؤالًا فنحصل على إجابة. خلال العامين الأخيرين ظهر جيل جديد من الأنظمة يسمى "وكلاء الذكاء الاصطناعي" أو AI Agents، وهي أنظمة لا تكتفي بالرد، بل تخطط…

How to Get Machine Learning Clients With No Portfolio

The first client who ever asked to see my portfolio watched me open my laptop, stare at a folder of Kaggle notebooks, and close it again.

  • Begin with a proof project solving a business problem
  • Deploy a single system with target, metric, and story
  • Make project open source for permanent record and collaboration

More from Saturday 26 September →