Cross-Agent Task Runner — OpenAI Codex CLI
Procedures
Step 1: Self-Call Detection
- Check for
codexin process ancestry (no dedicated env var exists for Codex CLI). - If detected, stop and inform the user: "Cannot invoke Codex from within Codex. Use a different target CLI."
Step 2: Execute Shared Procedure
- Read
references/shared-procedure.mdfor the core workflow (mode inference, context gathering, prompt construction, result presentation). - Read
references/cli-codex.mdfor Codex-specific flags, model selection heuristics, and version compatibility matrix. - Follow the shared procedure using the Codex-specific details.