Hasty Briefsbeta

Reverse engineering Codex CLI to get GPT-5-Codex-Mini to draw me a pelican

14 days ago
  • #Rust
  • #reverse-engineering
  • #OpenAI
  • OpenAI released GPT-5-Codex-Mini, a compact version of GPT-5-Codex, accessible via Codex CLI and VS Code extension.
  • The author reverse-engineered the Codex CLI tool, written in Rust, to directly prompt the new model.
  • A new sub-command 'codex prompt' was added to interact with the model directly, bypassing some default behaviors.
  • The tool was tested by generating SVG images of a pelican riding a bicycle using different model versions.
  • A '--debug' option was implemented to inspect API requests and responses, revealing OpenAI's private API endpoint.