ox-adapter-codex

command
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

detect.go — detection and diagnostics for codex adapter.

ox-adapter-codex is the external adapter binary for OpenAI Codex CLI sessions.

Codex stores sessions as JSONL in ~/.codex/sessions/YYYY/MM/DD/. Entry types: session_meta, turn_context, response_item, event_msg. Only response_item carries conversation data.

serve.go — serve mode handler for codex adapter.

session.go — session reading, parsing, discovery, and types for codex adapter.

Codex CLI stores sessions as JSONL in ~/.codex/sessions/<session-id>.jsonl. Each line is a JSON object with "type" field: "user", "assistant", "function_call", "function_call_output". Tool entries have "name", "arguments" (JSON string), and "call_id" for correlation. Multiple function_call/function_call_output pairs may appear consecutively and are merged into single tool entries by mergeToolEntries().

Format reference: https://github.com/openai/codex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL