Ask Codex
ask_codexDelegate a single implementation, investigation, or verification task to a saved Codex worker in an isolated Git worktree; no mailbox or thread management needed.
Instructions
Send one bounded implementation, investigation, or verification task to a saved Codex worker in an isolated worktree. This is the simple everyday entry point; no mailbox or thread management is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | What Codex should do. | |
| threadId | No | Optional stable task ID. Generated when omitted. | |
| projectPath | No | Absolute path to the repository. Defaults to this session's project directory. | |
| useWorktree | No | Use an isolated Git worktree. Defaults true. | |
| waitSeconds | No | How long this call waits for Codex. Defaults to 240 seconds. If Codex is still working, the result arrives in the coordinator's mailbox. | |
| coordinatorAgent | No | Agent that receives the result. Defaults to this conversation's registered agent, else claude-main. | |
| includeUncommitted | No | Copy the main checkout's uncommitted changes into the worktree. |