How Codex Manages Its Own Memory: Models, Rust Code, and Autonomous Writes
OpenAI's Codex coding assistant features a cross-session memory subsystem that can autonomously add, modify, merge, and delete persistent memories without requiring user approval for each action. The system operates as a two-model background pipeline: one model extracts reusable information from coding sessions, while a second consolidates that data into a file-based memory workspace. Lifecycle decisions such as scheduling, candidate selection, and pruning are handled by deterministic Rust and SQLite code, while the language models handle semantic judgments about what information is useful or outdated. Forgetting is not a single operation but a set of independent mechanisms, including thread deletion, consolidation-driven removal, and a full memory reset. The analysis is based on Codex commit 8444cf63b50a8a88521e0d2970d49f659b48eac7, reviewed on August 25, 2026; the feature is implemented but remains off by default.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in