codex_execute
Launch an autonomous Codex subagent to handle coding, refactoring, testing, and file edits, streaming progress and tracking token savings.
Instructions
Spins up an OpenAI Codex subagent to autonomously execute coding, refactoring, testing, and file editing tasks with live streaming progress and token savings tracking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | Run task asynchronously in background. RECOMMENDED in Claude Desktop for tasks taking >45s to avoid 60s client timeouts. Check status with codex_check_task or agy_check_task. | |
| model | No | Model to use for Codex (e.g. gpt-5.6-luna, gpt-5.6-terra, gpt-reserve). Default is gpt-5.6-luna. | gpt-5.6-luna |
| sandbox | No | Sandbox policy for command execution. | danger-full-access |
| instructions | Yes | Detailed step-by-step instructions for Codex subagent. Specify target paths, constraints, and requirements. | |
| workspace_dir | No | Target workspace directory path (MANDATORY in Claude Desktop to point to the project repo). Defaults to current working directory. | |
| timeout_seconds | No | Max execution time in seconds (default: 600). | |
| include_git_diff | No | Include git status and diff statistics of modified files. | |
| reasoning_effort | No | Reasoning effort for Codex model. |