pro tip: disable Claude Code "auto memory" to improve its quality
you can do so by typing "/memory", select auto memory and turn it off. this can also be done with setting env var CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
why?
i've seen so many times that stale memory caused the agent to make bad decisions. the information it puts into those memory files are inherently stale in a constantly-evolving project, and the agent would often trust the memory instead of looking up latest information
it stores memory into a claude-only location that other agents don't share. this is anthropic deliberately trying to create vendor lock-in. as a user, it's much better to disable "auto memory" and make claude store memory into standard locations such as AGENTS.md or AGENTS.local.md that is agent-agnostic and portable
from:https://x.com/kunchenguid/status/2067728608584675465?s=46