codex-memory-manager

Extract recent Codex conversations and update memory files and the AGENTS index.

4|2|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/LaiTszKin/apollo-toolkit --skill codex-memory-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-memory-manager
Source: https://github.com/LaiTszKin/apollo-toolkit/tree/main/codex-memory-manager
Command: npx skills add https://github.com/LaiTszKin/apollo-toolkit --skill codex-memory-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates durable Codex memory management by learning from recent conversations and updating memory files and the AGENTS index. It enables consistent recall of user preferences across sessions without re-ingesting transient instructions.

Core Features & Use Cases

  • Extracts the last 24 hours of Codex conversations and stores categorized memory under ~/.codex/memory/*.md.
  • Updates the AGENTS memory index at the end of ~/.codex/AGENTS.md to reflect new or updated memory categories.
  • Distills stable user preferences from conversations and maintains a normalized memory index to speed up future agent responses.

Quick Start

Run the memory manager to extract recent Codex conversations, persist memory files, and refresh the AGENTS memory index.

Frequently Asked Questions about codex-memory-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist user preferences from Codex conversations across sessions?

To persist user preferences from Codex conversations, you can automate durable memory management by extracting the last 24 hours of session data and writing categorized memory files. This captures stable preferences without requiring manual re-entry of transient instructions.

How does automated memory management for Codex agents work?

Automated memory management for Codex works by reading session stores at ~/.codex/sessions and ~/.codex/archived_sessions, distilling stable user preferences, and writing categorized memory files to ~/.codex/memory/*.md. It then updates the AGENTS memory index for future recall.

What is the best way to organize Codex memory files for consistent agent recall?

The best way to organize Codex memory files is by categorizing them into structured markdown files under ~/.codex/memory/*.md. This normalized index speeds up future agent responses by maintaining stable preferences separately from transient session instructions.

Do I need to configure anything to extract preferences from the last 24 hours of Codex sessions?

You do not need extensive configuration to extract preferences from the last 24 hours of Codex sessions. The process reads existing session stores at ~/.codex/sessions and ~/.codex/archived_sessions directly, requiring no additional dependencies to begin capturing and storing memory.

Can I update the AGENTS.md memory index automatically from recent chat history?

Yes, you can update the AGENTS.md memory index automatically from recent chat history. A dedicated synchronization script rewrites the end of ~/.codex/AGENTS.md to reflect newly extracted or updated memory categories from your latest Codex interactions.

Why does my Codex agent forget my preferences between different conversations?

Your Codex agent forgets preferences because session instructions are transient and not stored durably. By automating memory extraction from recent conversations and updating the memory index, the agent gains consistent recall of your stable preferences across sessions.