Skip to main content
Generates a codex.md file from stored memories, formatted for OpenAI Codex.

Parameters

includeWorking
boolean
default:"false"
Include working memory in the output. By default, only rule and long-term memories are included.

Behavior

  1. Fetches all rule layer memories
  2. Fetches long_term memories as supplementary knowledge
  3. Optionally includes working memories if includeWorking is true
  4. Formats them into Codex’s codex.md format

Returns

The generated file content as text, ready to be saved as codex.md.