Your Agent Remembered the Old Number. How to Correct What It Remembers A developer published a guide on correcting stale facts in AI agent memory, explaining that a correction typically adds a new fact without removing the old one, which can persist across multiple storage locations. The writeup maps where memory lives in Claude Code (CLAUDE.md files plus auto memory under ~/.claude/projects//memory/), ChatGPT (saved memories, past chats, custom instructions, files and connected apps) and Gemini CLI (GEMINI.md files and per-project folders), and offers a read-only Python script that scans Markdown memory files for old and new values and reports each file's modified timestamp. Two months ago the public API allowed 100 requests per minute. Then the limit dropped to 60, you told your agent, and it said it would remember. Today it sizes a retry loop for 100 again. The agent didn't ignore you. Most likely it now remembers both numbers. A correction usually adds a new fact. It doesn't always remove the old one, and the old one can live in several places at once. This article is about that cleanup: where a remembered fact actually lives, how to find every copy of it, and how to correct or expire it so it stops coming back. An earlier article covered how to scope memory and when to forget https://dev.to/promptmaster/your-agents-memory-needs-a-scope-what-to-keep-where-and-when-to-forget-3hfh . This one starts after the damage is done: a wrong fact is already stored. Before you can correct a memory, you need to know where it is. Three tools document this clearly. Claude Code keeps two kinds of memory. CLAUDE.md files are instructions you write. Auto memory is notes Claude writes itself, and the memory docs https://code.claude.com/docs/en/memory list feedback "corrections you give Claude and approaches you confirm" as one of the note types. Each project gets a folder at ~/.claude/projects/