﻿# Maintain Claude Code auto memory as editable project notes

Curate Claude Code auto memory by separating persistent project learnings from changing task observations and checking the repository evidence behind recalled facts.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/learn-claude-auto-memory-curation/
Language: en

Claude Code can record useful learnings from work and corrections so later sessions need less repeated explanation. The benefit depends on what is remembered and whether it remains true. A migration that was unfinished yesterday may be complete today, while a stable team convention may deserve a maintained instruction rather than an incidental note.

## Understand who writes each kind of memory

The documentation distinguishes instruction files written by people from auto memory notes maintained by Claude. Both can contribute context, but they serve different purposes. A project-wide build convention should be visible to collaborators in maintained guidance. A remembered preference can reduce repetitive conversation. Keeping the distinction clear prevents a private note from becoming the only place a team’s required workflow is recorded.

## Check volatile facts before acting

Suppose memory says an integration test requires a manual fixture workaround. Before repeating it, inspect the current fixture and setup script. Another task may already have repaired the environment. The recalled note is a clue about what to investigate, not proof that the workaround remains necessary. This matters especially for temporary failures, local process state and dependency installation details that can change between sessions.

## Review memory through supported controls

Claude Code documents ways to view and edit memory, including the memory interface, and controls for enabling the feature. Use those surfaces to understand what the system retained. A correction should be specific about the outdated fact and its replacement. Broadly erasing useful notes after one stale observation can lose unrelated project knowledge without addressing the reason a temporary fact was treated as permanent.

## Account for repository sharing across worktrees

The documented auto memory scope is per repository and shared across its worktrees. A note about a worktree-local server or ignored environment file can therefore be misleading elsewhere. Include sufficient scope when recording a useful observation, and recheck local resources after changing checkout. Shared learnings should describe project behavior, while worktree-specific conditions belong to the task’s actual execution record.

## Promote stable learning into maintained guidance

If repeated investigation confirms that a generated file must never be edited directly, document the generator ownership in the repository and link the authoritative definition. Auto memory may help rediscover that rule, but collaborators should not need access to one session’s notes. This deliberate promotion gives the rule an update path when the build system changes and makes its rationale reviewable with the code.

## Documentation and further study

- [How Claude remembers your project](https://code.claude.com/docs/en/memory).

- [How Claude Code works](https://code.claude.com/docs/en/how-claude-code-works).

- [Extend Claude Code](https://code.claude.com/docs/en/features-overview).

Related engineering guides: [Reproducible inference stacks: preserving a GPU pilot’s result](/journal/software-stack-reproducibility/); [Choose a local AI stack: desktop chat, shared UI or coding agent](/journal/local-ai-app-stack-selection/).
