OpenAI has recently published a detailed architecture description of the Codex App Server, a bidirectional protocol that decouples the Codex coding agent's core logic from its various client surfaces.
For now, it does not support navigation properties, complex types, owned types, shadow properties, or inheritance, but they are in the roadmap.