Start a new Codex thread
start_codex_threadStart a new Codex session in a given directory, providing an optional prompt, title, and model to begin the task immediately.
Instructions
Start a Codex task. In Desktop mode include the initial prompt to create and assign a visible task atomically; use delegate_to_codex to also wait for its reply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute working directory for the new Codex session | |
| name | No | Optional title to show for the new Codex session | |
| model | No | Model override, e.g. gpt-5.6-luna | |
| prompt | No | Initial task; required with CODEX_BRIDGE_DESKTOP_TASKS=1, starts immediately |