Expand description
Codex SDK-mode shim runtime: communicates with Codex via JSONL events
from codex exec --json instead of screen-scraping a PTY.
Unlike the Claude SDK runtime (persistent subprocess with stdin NDJSON),
Codex uses a spawn-per-message model: each SendMessage launches a
new codex exec --json subprocess. Multi-turn context is preserved via
codex exec resume <thread_id>.
Emits the same Command/Event protocol to the orchestrator as the
PTY runtime, making it transparent to all upstream consumers.
Functionsยง
- run_
codex_ sdk - Run the Codex SDK-mode shim. This function does not return until the shim exits.