How ChatGPT, Claude Code, and Gemini memory mechanisms differ

A comparison of ChatGPT Memory Sources, Claude Code memory and Auto Memory, and Gemini Saved info plus Google ecosystem context.

“Memory” is becoming increasingly important in AI products. It marks the shift from one-off conversations to long-term collaboration: you do not need to reintroduce your background, repeat your preferences, or ask the model to understand the same project again and again.

But memory does not mean the same thing in every product. ChatGPT, Claude Code, and Gemini all try to help AI remember longer, but their goals, storage locations, transparency, and use cases are very different.

As of May 7, 2026, they can be roughly understood as three types:

  • ChatGPT is more like personal assistant memory.
  • Claude Code is more like engineering project memory.
  • Gemini is more like Google ecosystem context.

ChatGPT: long-term preferences around the person

ChatGPT memory is mainly designed for personal collaboration. It cares about who you are, what you prefer, and what you work on over time.

OpenAI currently separates ChatGPT memory into saved memories and chat history.

saved memories are important pieces of information ChatGPT stores, such as your name, preferences, goals, common tech stack, and writing habits. You can explicitly ask it to remember something, and it may also save information from conversation when it thinks it will be useful later.

chat history lets ChatGPT reference past conversations when answering. It does not mean every chat becomes a permanent memory. Instead, ChatGPT can search past conversations for relevant context when needed.

So ChatGPT’s core logic is: understand the same user across sessions.

Typical examples include:

  • “Keep code examples concise for me.”
  • “I mainly use Python and TypeScript.”
  • “I am writing a Hugo blog about AI tools.”
  • “I prefer conclusions first, then details.”

These memories are not bound to one project. They follow the account and the user’s working habits.

Memory Sources: making personalization more visible

OpenAI emphasized Memory sources in its May 2026 update.

The purpose is not to add another type of memory, but to show users what sources ChatGPT referenced when personalizing a response. According to OpenAI help documents, Memory Sources may show:

  • Past chats.
  • Saved memories.
  • Custom instructions.
  • Files in the file library.
  • Emails from connected Gmail.

Files and Gmail visibility depend on plan, region, and connection status. OpenAI also states that Memory sources may not show every factor that influenced a response, but they help users understand and manage personalization.

This matters. The more AI can “remember you,” the more users need to know what it used to answer. Otherwise personalization becomes a black box: it seems to know you, but you do not know why.

ChatGPT’s advantage is cross-session, cross-topic understanding of personal preferences. The risk is that memories can become outdated, or users may forget an old memory is still affecting answers. It is worth periodically cleaning saved memories and old chats.

Claude Code: around codebases and engineering rules

Claude Code memory is more engineering-oriented. It cares less about a user’s everyday preferences and more about how this codebase should be changed.

Claude Code has two memory mechanisms that are easy to confuse:

  • Explicit project memory: CLAUDE.md.
  • Automatic project memory: Auto Memory.

CLAUDE.md is the most basic and stable project memory file. It can live at the project root or inside subdirectories. Claude Code reads these files as project instructions and operating rules.

Good content for CLAUDE.md includes:

  • Common build, test, and lint commands.
  • Code style and naming rules.
  • Project architecture notes.
  • Module boundaries and risky areas.
  • Team conventions and commit workflow.

If CLAUDE.md is stored in the repository, it can be committed to Git and shared as a team agent guide. This is completely different from ChatGPT’s cloud-based personal memory.

Claude Code Auto Memory: accumulating project experience

Claude Code also has Auto Memory. Its goal is to let Claude automatically accumulate project knowledge across sessions without requiring users to write every note manually.

According to Claude Code documentation, Auto Memory lets Claude save notes while working, such as build commands, debugging discoveries, architecture notes, code style preferences, and workflow habits. It does not save every session, but judges what may be useful later.

One common misconception is that Auto Memory writes by default to .claude/memory.md in the project root. Official documentation says each project has its own memory directory under the user’s home directory, with a path like:

1
~/.claude/projects/<project>/memory/

MEMORY.md loads the first 200 lines or 25KB at the start of each conversation, while detailed content may be split into other topic files. Auto Memory files are local Markdown files, and users can view, edit, or delete them through /memory.

This makes Claude Code memory more like a local project knowledge base. It is closer to the codebase than ChatGPT’s personal memory, and more dynamic than a plain CLAUDE.md.

But Auto Memory is local to the machine. It does not naturally follow the repository to other machines or cloud environments. For team-shared stable rules, put them in the repository’s CLAUDE.md.

Gemini: around Google ecosystem context

Gemini’s memory logic is different again.

Gemini also supports saved information and past-chat references. Google help documents say users can save information about life, work, or preferences, and Gemini can reference past chats before answering. When it uses this information, the response may show sources such as Your saved info or Previous chats.

But Gemini’s differentiation is not only “saving a few preferences.” It is Google ecosystem integration.

With user authorization and feature availability, Gemini can access context from connected Google apps such as Gmail, Google Drive, Docs, and Sheets. Its advantage is not making users teach it every item manually, but turning existing Google account data into searchable work context.

A typical difference:

  • ChatGPT remembers: “I have been repairing an LTO tape drive recently.”
  • Gemini may find the purchase confirmation email in Gmail or read repair notes from Drive.

This does not mean Gemini can unconditionally read all Google data. It depends on account type, region, permissions, connected apps, Keep Activity settings, and product availability. Enterprise and school accounts may also be controlled by Google Workspace administrators.

More accurately, Gemini memory is a combination of saved info, past chats, and connected Google ecosystem data.

Core differences

Dimension ChatGPT Claude Code Gemini
Core object Person and preferences Project and codebase Google account and ecosystem data
Typical memory Preferences, background, long-term goals Architecture, commands, conventions, debugging experience Saved info, past chats, Gmail/Drive/Docs context
Storage form Memory and chat context in OpenAI account CLAUDE.md, MEMORY.md, local Markdown files Google account activity, saved info, connected app data
Transparency Memory sources show part of the source Markdown files can be opened and edited Managed through source prompts, Gemini Apps Activity, and Google settings
Cross-project ability Strong, follows user account Weak, mainly follows project or local project memory Strong, depends on Google data and permissions
Team sharing Not suitable for direct sharing CLAUDE.md can be shared through Git Mainly depends on Workspace and permissions
Best for Personal preferences and long-term assistant behavior Long-term coding projects and agent collaboration Google Workspace retrieval and cross-tool work

How to choose

If you want AI to remember who you are, what style you prefer, and how you usually work, ChatGPT memory is more suitable.

It is good for saving personal preferences such as writing style, tech stack, answer format, professional background, and long-term project direction. Its focus is reducing self-introduction cost so each new conversation can start faster.

If you want AI to remember how a codebase should be changed, which commands work, and which traps to avoid, Claude Code is more suitable.

Put stable rules into CLAUDE.md for team sharing. Let Auto Memory assist with dynamic experience. Important decisions should still be organized into documentation or CLAUDE.md, not left only in local automatic memory.

If most of your materials live in Gmail, Drive, Docs, and Sheets, Gemini’s ecosystem context has an advantage.

It is useful for finding old emails, organizing Drive documents, and connecting calendar and office materials. The key to using Gemini is not repeatedly reminding it in chat, but making sure the relevant app connections, permissions, and activity settings are correct.

A practical division of labor

You can divide them like this:

  • ChatGPT remembers general personal preferences.
  • Claude Code remembers engineering knowledge for a repository.
  • Gemini retrieves materials from your Google ecosystem.

In other words, ChatGPT is like a personal secretary, Claude Code is like a senior engineer inside the project, and Gemini is like an indexer for your Google account.

There is no absolute winner. They have different goals.

The biggest mistake is mixing them together. Personal preferences do not always belong in project memory; project architecture does not always belong in cloud personal memory; and Google ecosystem retrieval does not mean the model has truly understood you long-term.

Short Take

The next stage of AI memory is not simply “remember more.” Memory needs layers, visibility, and control.

ChatGPT focuses on cross-session personalization. Claude Code focuses on code project continuity. Gemini focuses on Google ecosystem context. Good long-term AI collaboration does not put all information into one black box; it keeps different kinds of memory in the right places.

Put personal preferences in personal memory, engineering rules in the codebase, and historical materials in the original document and email systems. AI’s job is to call the right context when needed, not mix everything into one pile.

记录并分享
Built with Hugo
Theme Stack designed by Jimmy