What problem does it solve?
It helps you offload multi-file, iterative coding and debugging work when you need higher-quality implementation than a single prompt can reliably produce.
Core Features & Use Cases
- Complex project delegation: Use OpenAI Codex CLI to read, edit, and run code locally to implement features end-to-end.
- Non-interactive execution for automation: Run codex exec to integrate coding tasks into a larger workflow with consistent invocation.
- Controlled safety and scope: Choose approval modes and sandbox policies to limit risk during autonomous changes.
Use case example: You have a TypeScript service that fails multiple tests; delegate the fix and refactor work to codex exec in a workspace-write sandbox, then save the final results to a file.
Quick Start
Delegate a feature implementation by asking: codex exec --full-auto -C /path/to/project "Implement the feature described in TODO.md".