codex
Send tasks to an autonomous agent that handles complex software engineering work, including file operations, shell commands, codebase searches, and end-to-end project execution.
Instructions
Send a task to an autonomous Codex agent. It reads/writes files, runs shell commands, searches codebases, and handles complex software engineering tasks end-to-end. Returns the result text plus a thread_id for follow-ups via codex_reply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Task or question for Codex | |
| cwd | No | Working directory (overrides CODEX_CWD) | |
| model | No | Model override (e.g. "gpt-5-codex", "o3", "codex-1") | |
| additionalDirs | No | Extra directories the agent can access for this invocation | |
| effort | No | Reasoning effort override | |
| sandboxMode | No | Sandbox mode override (can only tighten, never loosen) | |
| approvalPolicy | No | Approval policy override (can only tighten, never loosen) | |
| networkAccess | No | Enable network access from sandbox | |
| webSearchMode | No | Web search mode | |
| instructions | No | Additional instructions (prepended to prompt) |