Add memory functionality similar to Claude code
Resolved 💬 5 comments Opened Sep 2, 2025 by jasonwei1002 Closed Sep 4, 2025
💡 Likely answer: A maintainer (gpeal, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
Hope there is a maintainable global memory file for easy reuse
Are you interested in implementing this feature?
_No response_
Additional information
_No response_
5 Comments
Global memory would be great. Here is a proposal:
EDIT:
~/.codex/AGENTS.mdis actually already working!<details><summary>Previous proposal</summary>
Proposal: Implementing
AGENTS.mdas Global Memory in~/.codex/To address the need for persistent, maintainable memory in Codex CLI (similar to Claude code), I propose introducing a global
AGENTS.mdfile located in the user's home directory under~/.codex/. This file would serve as a centralized, human-editable memory resource, allowing agents and tools to reference, update, and reuse context across projects.Key Points
~/.codex/AGENTS.mdThis location ensures user-level persistence and avoids polluting individual repositories.
AGENTS.mdto build its working memory./memoryslash command.Benefits
Example
AGENTS.mdStructure</details>
You've perfectly articulated what I wanted to say👍
In the documentation
~/.codex/AGENTS.mdis mentioned. But my experiments show that it does not seem to work.AGENTS.md is the correct answer
https://agents.md/
I disagree with my commentors before. What we need for codex is something like cline memory bank read here https://docs.cline.bot/prompting/cline-memory-bank this should be automatically setup and the folder should be configurable in settings.