Codex does not expose a separate local semantic memory store comparable to mnemo. Its durable, user-controlled memory-like surface is instruction aggregation from AGENTS.md / AGENTS.override.md files plus configured fallback filenames.
OpenAI’s agent-loop documentation describes Codex adding user instructions from $CODEX_HOME and then from folders between the Git/project root and the current working directory, subject to a default 32 KiB project-doc budget. The Codex source describes the same discovery path and concatenation model.
Global/user scope:
$CODEX_HOME/AGENTS.override.md, otherwise $CODEX_HOME/AGENTS.md.$CODEX_HOME is normally ~/.codex.Project scope:
AGENTS.override.md, then AGENTS.md, then configured project_doc_fallback_filenames..git when no custom project_root_markers are configured.project_doc_max_bytes.MEMORY.md-style index: hierarchy affects which instruction files are loaded, not where separate memory bodies are stored.Recommended import order:
AGENTS.md and nested project AGENTS.md files.AGENTS.override.md only with explicit opt-in because it may be personal or temporary.$CODEX_HOME files only with explicit user-scope import.Suggested mapping:
config.pattern.decision.discovery.Important importer behavior: