Start Codex Agent
agent_startLaunch a background Codex subagent with a self-contained prompt, returning immediately so it continues working independently while you proceed with other tasks.
Instructions
Dispatch a Codex worker: creates an independent thread and starts its first turn. Returns as soon as the turn is accepted; the worker keeps running in the background whether or not you watch it. Treat this like spawning a background subagent — issue several in one message to run a fleet, alongside any host-native subagents you also want, then go do other work and collect with agent_result. Do not follow this call with agent_wait. The prompt should be a complete, self-contained task including the acceptance criteria, since the worker cannot see your conversation. Common fields are provided directly; threadOptions and turnOptions pass additional app-server fields through, with direct fields taking precedence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory for this worker. Defaults to the directory this MCP server was started in, which is usually not the repository you are working on, so pass it explicitly. | |
| label | No | A short supervisor-facing worker label. | |
| model | No | Codex model id. Omit to use the configured default. | |
| config | No | Thread-scoped Codex config overrides. | |
| effort | No | Reasoning effort: typically low, medium, high, or ultra when the selected model supports it. | |
| prompt | Yes | The complete initial task for the worker. | |
| sandbox | No | Filesystem authority. Use read-only for investigation and review workers; workspace-write only when the worker is meant to edit files. | |
| ephemeral | No | Leave no thread log. Ephemeral workers cannot be resumed after this process restarts, and the app-server will not name their in-progress turn, so a timed-out turn is stopped bluntly rather than by id. Prefer the default for anything long-running. | |
| permissions | No | Named permission profile. Do not combine with sandbox. | |
| personality | No | ||
| serviceTier | No | Optional Codex service tier. | |
| turnOptions | No | Advanced turn/start fields passed through to app-server. | |
| outputSchema | No | JSON Schema constraining the first turn's final response. | |
| threadOptions | No | Advanced thread/start fields passed through to app-server. | |
| approvalPolicy | No | Who approves the worker's commands. on-request surfaces approvals to you via agent_result and agent_request_resolve; never runs unattended within the sandbox. | |
| baseInstructions | No | ||
| approvalsReviewer | No | ||
| developerInstructions | No | ||
| runtimeWorkspaceRoots | No |