GitHub - aperoc/codex-plus: Turbo charged OpenAI Codex.

1 min read Original article ↗

Codex Plus (Codex+)

Turbocharged OpenAI Codex for headless workflows.

I use codex exec a lot, but it struggles with its built-in telemetry support, which is insufficient for debugging and optimization.

codex-plus provides a CLI entry point that mirrors the codex exec interface but is implemented on top of the TypeScript SDK (@openai/codex-sdk).

It exports the full session log to a remote OpenTelemetry collector after each run which can then be debugged and optimized through codex-plus-log-viewer.

Usage

export CODEX_PLUS_OTEL_ENDPOINT='http://localhost:4318/v1/logs'
codex-plus exec --json 'What is 1+1?'

codex-plus-log-viewer

Codex Plus Log Viewer (Upload data/logs.json into the local log viewer at http://localhost:4173.)

Setup

npm i -g @aperoc/codex-plus
# Optional: Local OTEL service
cd otel-service && docker-compose up

WIP

  1. Ralph Wiggum mode
codex-plus exec --json \
    --max-iter $MAX_ITER \
    --exit-condition $EXIT_CONDITION \
    $TASK