Skip to main content
reopt Handbook
reopt Handbook
Advanced Codex Usage

Foundation

Setup and LoginConfigMemories

Safety and Operations

ApprovalsSecurity

Workflow

Slash CommandsPrompts and SkillsExec and AutomationThread LifecycleCloud TasksMulti-Agent Workflows

Extensions and IDE

Codex App and IDEMCP IntegrationModels and ReasoningGovernance and Rollout

Verification

VerificationUpdates
Handbook›Advanced Codex Usage›Memories
한국어English

Memories

Operate Codex memories and persistent facts without accumulating stale context.

Key takeaways

  • Memories cut repeated explanation but can preserve stale assumptions, so treat them as operational knowledge with lifecycle rules.
  • Classify by risk: personal preferences are low, repository facts medium, and policy rules or temporary context high (and dangerous when stale).
  • Store durable facts only, prefer repository docs for shared knowledge, and delete any memory that contradicts current source files.
  • Never store secrets, private customer data, or credentials in memory.
  • Apply the three-month test: if a fact would not still be correct in three months, put it in the task brief instead of persistent memory.

Memories can reduce repeated explanation, but they can also preserve outdated assumptions. Treat memories as operational knowledge with lifecycle rules.

Memory Types

TypeExampleRisk
Personal preferencePreferred response style or editor habitLow
Repository factBuild command, package manager, folder conventionMedium
Policy ruleApproval or security requirementHigh
Temporary contextCurrent project plan or migration stateHigh when stale

Operating Rules

  • Store durable facts, not temporary guesses.
  • Prefer repository docs for shared knowledge.
  • Review memories after major project or policy changes.
  • Delete memories that contradict current source files.
  • Do not store secrets, private customer data, or credentials.

Quality Check

Ask whether the memory would still be correct three months from now. If not, put it in the task brief instead of persistent memory.

Related docs

Cmd. /memories

Codex Command Master · Configure memory use and generation for Codex sessions.

Cmd. /memory

Claude Code Command Master · Manages CLAUDE.md and auto memory. Saved project instructions can affect later sessions.

Access Control and Secrets

AI Security and Compliance Operations · Govern human, service, and agent permissions with least privilege and rotation.

Project Rule Documents

Agentic Documentation · Design AGENTS.md, CLAUDE.md, and path-scoped rules without conflicts or drift.

Prompts and Skills

Design prompts, repository instructions, and reusable skills for repeatable Codex work.

Config

Design Codex configuration layers, profiles, and safe defaults for team usage.

Approvals

Design approval and sandbox policies for safe Codex autonomy.

On this page

Memory TypesOperating RulesQuality Check