Claude Code memory vs Codex, Cursor and Copilot memory A comparison of AI coding assistant memory features published October 28, 2026, checked against vendor documentation for Claude Code 2.1.312, Codex CLI 0.165.0, GitHub Copilot Memory and Cursor, finds none of the four tools stores what a team has decided. Claude Code auto memory keeps per-repository notes at ~/.claude/projects//memory/ and loads the first 200 lines or 25KB of MEMORY.md at session start, while Codex memories sit under ~/.codex/memories/, are off by default and drop out of consolidation after 30 days unused; GitHub Copilot Memory is the only one with a shared layer, expiring each fact 90 days after it was last confirmed, and Cursor removed Memories in version 2.1. OpenAI advises keeping required team guidance in AGENTS.md or checked-in documentation and treating memories as a recall layer rather than the only source for rules that must always apply. Blog Claude Code memory vs Codex, Cursor and Copilot memory Published: October 28, 2026 Claude Code auto memory is a folder of notes per repository, kept on your machine. Codex memories are local files under ~/.codex , off by default. Copilot Memory keeps per repository facts on GitHub and lets each one expire 90 days after it was last confirmed. Cursor removed Memories in 2.1, and only its Automations and Projects keep notes now. None of them holds what your team decided. Every fact below was checked against the vendor's own documentation on 28 October 2026: Claude Code 2.1.312, Codex CLI 0.165.0, GitHub's Copilot Memory docs, and Cursor's docs and changelog. These features change monthly. If you read this later, check the linked page before you trust a row. Each tool also has its own note with the settings and the edge cases: Claude Code auto memory https://gethrbr.com/blog/claude-code-auto-memory , Codex memories https://gethrbr.com/blog/codex-memories , GitHub Copilot Memory https://gethrbr.com/blog/github-copilot-memory and what happened to Cursor Memories https://gethrbr.com/blog/cursor-memories . What is Claude Code auto memory? Claude Code has two memory systems. CLAUDE.md files are instructions you write. Auto memory is notes Claude writes itself while it works. The Claude Code memory docs https://code.claude.com/docs/en/memory list four kinds of note: user your role and preferences , feedback corrections you gave , project decisions and deadlines the code does not show and reference where to look outside the repo . It lives at ~/.claude/projects/